[Libav-user] Handling PIX_FMT_YUV422P10 in my code

Bruce Wheaton bruce at spearmorgan.com
Tue Oct 11 22:49:49 CEST 2011

I noticed that a few codecs (DNxHD, ProRes and v210 support this pixel format now). That's great, but I can't find much information about it. I tried to trace where it's being handled in swsscale, and it seems that it's actually a 16-bit format, with unused bits, much like the rarely seen 16-bit planar format. That seems to be borne out by looking at the raw pixels coming out of the decode function?

Is that right? An array of 16-bit integers, of which only 10 bits are used? So I should just need to scale it to make peak white 1023 instead of 65535?


More information about the Libav-user mailing list