[FFmpeg-devel] [PATCH 9/9] libvpxdec: add 440 pixfmts.
James Zern
jzern at google.com
Thu May 7 03:25:06 CEST 2015
On Wed, May 6, 2015 at 9:05 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> ---
> libavcodec/libvpxdec.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
This part is fine if the rest is wanted at all.
> diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
> index 75231f8..11f7be1 100644
> --- a/libavcodec/libvpxdec.c
> +++ b/libavcodec/libvpxdec.c
> @@ -72,6 +72,9 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
> case VPX_IMG_FMT_I422:
> avctx->pix_fmt = AV_PIX_FMT_YUV422P;
> return 0;
> + case VPX_IMG_FMT_I440:
> + avctx->pix_fmt = AV_PIX_FMT_YUV440P;
> + return 0;
> case VPX_IMG_FMT_I444:
> avctx->pix_fmt = AV_PIX_FMT_YUV444P;
> return 0;
> @@ -96,6 +99,16 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
> } else {
> return AVERROR_INVALIDDATA;
> }
> + case VPX_IMG_FMT_I44016:
> + if (img->bit_depth == 10) {
> + avctx->pix_fmt = AV_PIX_FMT_YUV440P10LE;
> + return 0;
> + } else if (img->bit_depth == 12) {
> + avctx->pix_fmt = AV_PIX_FMT_YUV440P12LE;
> + return 0;
> + } else {
> + return AVERROR_INVALIDDATA;
> + }
> case VPX_IMG_FMT_I44416:
> if (img->bit_depth == 10) {
> avctx->pix_fmt = AV_PIX_FMT_YUV444P10LE;
> --
> 2.1.2
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list