mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-28 07:29:14 +00:00
Add pixel formats for 9- and 10-bit yuv420p.
Also add support for these formats in libswscale. Needed for high bit depth h264 decoding. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
af0b2d6736
commit
d4497f6dfb
7 changed files with 120 additions and 1 deletions
|
@ -143,6 +143,10 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int l
|
|||
case PIX_FMT_YUVJ440P:
|
||||
case PIX_FMT_YUVJ444P:
|
||||
case PIX_FMT_YUVA420P:
|
||||
case PIX_FMT_YUV420P9LE:
|
||||
case PIX_FMT_YUV420P9BE:
|
||||
case PIX_FMT_YUV420P10LE:
|
||||
case PIX_FMT_YUV420P10BE:
|
||||
w_align= 16; //FIXME check for non mpeg style codecs and use less alignment
|
||||
h_align= 16;
|
||||
if(s->codec_id == CODEC_ID_MPEG2VIDEO || s->codec_id == CODEC_ID_MJPEG || s->codec_id == CODEC_ID_AMV || s->codec_id == CODEC_ID_THP || s->codec_id == CODEC_ID_H264)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue