-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gralloc: Allow devices to opt-in for YCrCb camera video encode
DeviceAsWebcam is using USAGE_VIDEO_ENCODE [1] for buffers and this results in combined usage: (VIDEO_ENCODER | CAMERA_OUTPUT). On some Qcom devices (verified on pyxis (sdm710)) and maybe others DeviceAsWebcam has red & blue colors swapped with HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS. When using HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS the output from DeviceAsWebcam has correct colors. [1] https://android.googlesource.com/platform/packages/services/DeviceAsWebcam/+/d079a82ba4f773210c01d488d2dfa1d4d25be8e2 Change-Id: I4376102e2b0eeaefed536eff29c315a71e469b57
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters