[FFmpeg-devel] [PATCH 2/2] swscale: add P010 input support
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Jan 7 13:11:12 CET 2016
Hendrik Leppkes <h.leppkes <at> gmail.com> writes:
> Microsoft specifically described the format to alias
> to P016 with less precision for simplicity, however I
> opted to convert to "true" 10-bit in sws by shifting
> so format selection algorithms don't get confused
> later, and actually treat it like 10-bit and not
> 16-bit.
Why don't you add P016 now and set bits_per_sample
in the decoder?
Especially since your conversion routine is missing
| AV_RL16(src + i * 2) >> 10
Carl Eugen
More information about the ffmpeg-devel
mailing list