Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4fdc4ce9 authored by Chong Zhang's avatar Chong Zhang
Browse files

Support 10-bit YUV in color converter for thumbnails

Handle 10-bit source YUV in convertYUV420Planar(), drop to
to 8-bit and convert to RGB.

Also drop to 8-bit in SoftwareRenderer if the dataspace is
not BT2020 and PQ, in this case surfaceflinger will not
treat the buffer as Y410 and we have to send in YV12.

Bug:77892138

Test:
- Temporarily disable USE_LIBYUV in ColorConverter (force
  convertYUV420Planar), test HEIF decoding to ARGB/RGB565 works
- Disable HW VP9 decoding in media_codecs.xml, push test clip
  in bug and check playback as well as thumbnail in Photos.
- Check VP9 HDR playback in ExoPlayer with SoftVPX path enabled.

Change-Id: I8fd2a34c9d52a9a5b1160f42b7a6226d5c5f608c
parent 0c1f9148
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment