1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-07-11 14:30:22 +02:00

avcodec/sheervideo: supports some other 8bit formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol
2016-06-09 15:30:27 +02:00
parent e826ceeb55
commit 0c7fa152b9

View File

@ -2277,6 +2277,7 @@ static int decode_frame(AVCodecContext *avctx,
build_vlc(&s->vlc[1], l_g_rgbi, 256); build_vlc(&s->vlc[1], l_g_rgbi, 256);
} }
break; break;
case MKTAG('A', 'Y', 'B', 'R'):
case MKTAG('A', 'Y', 'b', 'R'): case MKTAG('A', 'Y', 'b', 'R'):
avctx->pix_fmt = AV_PIX_FMT_YUVA444P; avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
s->decode_frame = decode_aybr; s->decode_frame = decode_aybr;
@ -2285,6 +2286,7 @@ static int decode_frame(AVCodecContext *avctx,
build_vlc(&s->vlc[1], l_u_ybr, 256); build_vlc(&s->vlc[1], l_u_ybr, 256);
} }
break; break;
case MKTAG('A', 'y', 'B', 'R'):
case MKTAG('A', 'y', 'b', 'R'): case MKTAG('A', 'y', 'b', 'R'):
avctx->pix_fmt = AV_PIX_FMT_YUVA444P; avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
s->decode_frame = decode_aybri; s->decode_frame = decode_aybri;
@ -2293,6 +2295,7 @@ static int decode_frame(AVCodecContext *avctx,
build_vlc(&s->vlc[1], l_u_ybri, 256); build_vlc(&s->vlc[1], l_u_ybri, 256);
} }
break; break;
case MKTAG(' ', 'Y', 'B', 'R'):
case MKTAG(' ', 'Y', 'b', 'R'): case MKTAG(' ', 'Y', 'b', 'R'):
avctx->pix_fmt = AV_PIX_FMT_YUV444P; avctx->pix_fmt = AV_PIX_FMT_YUV444P;
s->decode_frame = decode_ybr; s->decode_frame = decode_ybr;
@ -2301,6 +2304,7 @@ static int decode_frame(AVCodecContext *avctx,
build_vlc(&s->vlc[1], l_u_ybr, 256); build_vlc(&s->vlc[1], l_u_ybr, 256);
} }
break; break;
case MKTAG(' ', 'y', 'B', 'R'):
case MKTAG(' ', 'y', 'b', 'R'): case MKTAG(' ', 'y', 'b', 'R'):
avctx->pix_fmt = AV_PIX_FMT_YUV444P; avctx->pix_fmt = AV_PIX_FMT_YUV444P;
s->decode_frame = decode_ybri; s->decode_frame = decode_ybri;