Replies: 2 comments
-
Maybe I misunderstand, but isn't that the stride you're looking at? What does |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah my bad, this is my first time working with video encoders. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I'm trying to decode a raspberry pi captured bitstream which happens to be in
YUV420
format.After decoding the Y, U and V components lengths are:
YUV420
byte array should have a1920 * 1080 * 3 / 2 = 3110400
size, but with the decoded components I'd end up with a2142720 + 535680 + 535680 = 3214080
length array, and at that point I'm lost at how to build a valid decoded byte array.Could you please help me understand where the discrepancy is coming from? Thank you.
Note that if I
write_rgb
instead of trying to manually compose the YUV420 byte array, I manage to send the output asBGR3
.Beta Was this translation helpful? Give feedback.
All reactions