Commit 6ea973fc authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec_align_dimensions2: support 12 & 14 bit planar colorspaces

Reviewed-by: 's avatarJean First <jeanfirst@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4251a0b8
......@@ -185,18 +185,34 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
case PIX_FMT_YUV420P9BE:
case PIX_FMT_YUV420P10LE:
case PIX_FMT_YUV420P10BE:
case PIX_FMT_YUV420P12LE:
case PIX_FMT_YUV420P12BE:
case PIX_FMT_YUV420P14LE:
case PIX_FMT_YUV420P14BE:
case PIX_FMT_YUV422P9LE:
case PIX_FMT_YUV422P9BE:
case PIX_FMT_YUV422P10LE:
case PIX_FMT_YUV422P10BE:
case PIX_FMT_YUV422P12LE:
case PIX_FMT_YUV422P12BE:
case PIX_FMT_YUV422P14LE:
case PIX_FMT_YUV422P14BE:
case PIX_FMT_YUV444P9LE:
case PIX_FMT_YUV444P9BE:
case PIX_FMT_YUV444P10LE:
case PIX_FMT_YUV444P10BE:
case PIX_FMT_YUV444P12LE:
case PIX_FMT_YUV444P12BE:
case PIX_FMT_YUV444P14LE:
case PIX_FMT_YUV444P14BE:
case PIX_FMT_GBRP9LE:
case PIX_FMT_GBRP9BE:
case PIX_FMT_GBRP10LE:
case PIX_FMT_GBRP10BE:
case PIX_FMT_GBRP12LE:
case PIX_FMT_GBRP12BE:
case PIX_FMT_GBRP14LE:
case PIX_FMT_GBRP14BE:
w_align = 16; //FIXME assume 16 pixel per macroblock
h_align = 16 * 2; // interlaced needs 2 macroblocks height
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment