Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android - Rgba8888 support #553

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

vongohren
Copy link

@vongohren vongohren commented Feb 6, 2025

Description

This adds support for RGBA_8888 format as CameraX supports this. Ref #550

So it solves #550

  • feat: support rgba8888 output

Checklist

Before creating any Pull Request, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).

  • 📕 I read the Contributing page.
  • 🤝 I match the actual coding style.
  • ✅ I ran flutter analyze without any issues.

Breaking Change

This should not be a breaking change: https://github.com/vongohren/CamerAwesome/pull/1/files#diff-2be105d4e5b13f6f54a34dce7bb62ef5a3a7bcb2f64587e662af5d0306bc57f8R65, as it falls back to the default option

Analyze

I ran flutter analyze and it outputed files I have not touched so I decided to ignore them. Here is current output

Analyzing CamerAwesome...                                               

   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          example/lib/ai_analysis_barcode.dart:131:36 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          example/lib/custom_awesome_ui.dart:37:53 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          example/lib/custom_awesome_ui.dart:39:42 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          example/lib/custom_awesome_ui.dart:51:49 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          example/lib/custom_theme.dart:38:59 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          example/lib/custom_theme.dart:40:48 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          example/lib/custom_theme.dart:52:61 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          example/lib/multi_camera.dart:175:49 • deprecated_member_use
   info • 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead •
          lib/src/orchestrator/states/camera_state.dart:83:51 • deprecated_member_use
   info • 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead •
          lib/src/orchestrator/states/camera_state.dart:127:12 • deprecated_member_use
   info • 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead •
          lib/src/orchestrator/states/photo_camera_state.dart:75:52 • deprecated_member_use
   info • 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead •
          lib/src/orchestrator/states/video_camera_state.dart:38:52 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          lib/src/widgets/awesome_sensor_type_selector.dart:74:32 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          lib/src/widgets/awesome_sensor_type_selector.dart:144:33 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          lib/src/widgets/buttons/awesome_capture_button.dart:113:36 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          lib/src/widgets/buttons/awesome_capture_button.dart:138:36 • deprecated_member_use
   info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss •
          lib/src/widgets/preview/picture_in_picutre_config.dart:41:45 • deprecated_member_use
          

* auto: gradle updates by android studio

* feat: support rgba8888 output
@vongohren vongohren changed the title Rgba8888 support (#1) Android - Rgba8888 support Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant