Skip to content

Tool to generate 10-bit HDR YUV in P010 colorspace? #64

Closed Answered by ram-mohan
gregbenz asked this question in Q&A
Discussion options

You must be logged in to vote

yuv420p10le and p010 are not identical. Both are 10 bits per component, except that in yuv420p10le, they are the present lsb 10 bits and msb 6 bits are zero and in p010 data is present in msb 10 bits and lsb 6 bits are zero. Also the chroma planes in p010 are interleaved.
https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/media/java/android/media/MediaCodecInfo.java;l=463

This could be a cause for the problem you are facing.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@gregbenz
Comment options

@ram-mohan
Comment options

@pmonck
Comment options

@ram-mohan
Comment options

Answer selected by gregbenz
@GrousexyHKCN
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants