[vlc-devel] [PATCH] add IMM4 decoder

Steve Lhomme robux4 at ycbcr.xyz
Wed Aug 22 16:59:48 CEST 2018


Hi,


You should split the commit in 2. One that has the new VLC FourCC and 
one that adds the lavc mapping.


On 22/08/2018 16:17, Paul B Mahol wrote:
> ---
>   NEWS                           | 1 +
>   include/vlc_fourcc.h           | 1 +
>   modules/codec/avcodec/fourcc.c | 4 ++++
>   src/misc/fourcc_list.h         | 3 +++
>   4 files changed, 9 insertions(+)
>
> diff --git a/NEWS b/NEWS
> index 527c9da518..6bc94096de 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -25,6 +25,7 @@ Codecs:
>    * WebP image decoding
>    * Support for SMPTE-TT image profile
>    * Support for 16-bit greyscale
> + * Support IMM4 decoder
>   
>   Access:
>    * Enable SMB2 / SMB3 support on mobile ports with libsmb2
> diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
> index d5f8c208b0..871f01043a 100644
> --- a/include/vlc_fourcc.h
> +++ b/include/vlc_fourcc.h
> @@ -187,6 +187,7 @@
>   #define VLC_CODEC_SPEEDHQ         VLC_FOURCC('S','H','Q','2')
>   #define VLC_CODEC_PIXLET          VLC_FOURCC('p','x','l','t')
>   #define VLC_CODEC_MAGICYUV        VLC_FOURCC('M','8','Y','0')
> +#define VLC_CODEC_IMM4            VLC_FOURCC('I','M','M','4')
>   
>   /***********
>    * Chromas
> diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
> index 0844ca7013..7711090c03 100644
> --- a/modules/codec/avcodec/fourcc.c
> +++ b/modules/codec/avcodec/fourcc.c
> @@ -300,6 +300,10 @@ static const struct vlc_avcodec_fourcc video_codecs[] =
>   #if LIBAVCODEC_VERSION_CHECK( 57, 999, 999, 79, 100 )
>       { VLC_CODEC_FMVC, AV_CODEC_ID_FMVC },
>   #endif
> +
> +#if LIBAVCODEC_VERSION_CHECK( 58, 999, 999, 24, 100 )
> +    { VLC_CODEC_IMM4, AV_CODEC_ID_IMM4 },
> +#endif
>   };
>   
>   /*
> diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h
> index 284e2afb4d..296dad36a9 100644
> --- a/src/misc/fourcc_list.h
> +++ b/src/misc/fourcc_list.h
> @@ -1151,6 +1151,9 @@ static const staticentry_t p_list_video[] = {
>           A("M8Y2"),
>           A("M8Y4"),
>           A("M8YA"),
> +
> +    B(VLC_CODEC_IMM4, "Infinity IMM4"),
> +        A("IMM4"),
>   };
>   
>   static const staticentry_t p_list_audio[] = {
> -- 
> 2.17.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list