[vlc-devel] [PATCH 1/2] Add Hap fourcc

Jean-Baptiste Kempf jb at videolan.org
Fri Feb 5 16:25:24 CET 2016


Both applied.


On 03 Feb, Vittorio Giovara wrote :
> ---
>  include/vlc_fourcc.h           | 1 +
>  modules/codec/avcodec/fourcc.c | 5 ++++-
>  src/misc/fourcc_list.h         | 5 +++++
>  3 files changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
> index 1b971db..1415b40 100644
> --- a/include/vlc_fourcc.h
> +++ b/include/vlc_fourcc.h
> @@ -175,6 +175,7 @@
>  #define VLC_CODEC_TDSC            VLC_FOURCC('T','D','S','C')
>  #define VLC_CODEC_HQX             VLC_FOURCC('C','H','Q','X')
>  #define VLC_CODEC_HQ_HQA          VLC_FOURCC('C','U','V','C')
> +#define VLC_CODEC_HAP             VLC_FOURCC('H','A','P','1')
>  
>  /***********
>   * Chromas
> diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
> index edf66c5..67482d4 100644
> --- a/modules/codec/avcodec/fourcc.c
> +++ b/modules/codec/avcodec/fourcc.c
> @@ -266,7 +266,10 @@ static const struct
>  #if LIBAVCODEC_VERSION_CHECK( 56, 23, 0, 35, 100 )
>      { VLC_CODEC_HQ_HQA, AV_CODEC_ID_HQ_HQA, VIDEO_ES },
>  #endif
> -    /* AV_CODEC_ID_HAP */
> +
> +#if LIBAVCODEC_VERSION_CHECK( 57, 9, 0, 13, 100 )
> +    { VLC_CODEC_HAP, AV_CODEC_ID_HAP, VIDEO_ES },
> +#endif
>      /* AV_CODEC_ID_DDS */
>  #if LIBAVCODEC_VERSION_CHECK( 56, 31, 0, 46, 100 )
>      { VLC_CODEC_G2M2, AV_CODEC_ID_G2M, VIDEO_ES },
> diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h
> index 4789f88..a48de54 100644
> --- a/src/misc/fourcc_list.h
> +++ b/src/misc/fourcc_list.h
> @@ -711,6 +711,11 @@ static const staticentry_t p_list_video[] = {
>  
>      B(VLC_CODEC_HQ_HQA, "Canopus HQ"),
>  
> +    B(VLC_CODEC_HAP, "Vidvox Hap"),
> +        A("Hap1"),
> +        E("Hap5", "Vidvox Hap Alpha"),
> +        E("HapY", "Vidvox Hap Q"),
> +
>      /* */
>      B(VLC_CODEC_YV12, "Planar 4:2:0 YVU"),
>          A("YV12"),
> -- 
> 2.6.4
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the vlc-devel mailing list