X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvlc_fourcc.h;h=fd7d24a861fa4ff6115b447bdbd711589d59061e;hb=f659703fb4033420e0607d34bc7cd880a5802ea7;hp=407b57d894a7e8eded478d1fe5bc5d60661c078a;hpb=287ccf14085d974b8ad2c5d238fb6c95d1fc660f;p=vlc diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h index 407b57d894..fd7d24a861 100644 --- a/include/vlc_fourcc.h +++ b/include/vlc_fourcc.h @@ -113,6 +113,8 @@ #define VLC_CODEC_FRWU VLC_FOURCC('F','R','W','U') #define VLC_CODEC_AMV VLC_FOURCC('A','M','V',' ') #define VLC_CODEC_INDEO5 VLC_FOURCC('I','V','5','0') +#define VLC_CODEC_VP8 VLC_FOURCC('V','P','8','0') +#define VLC_CODEC_JPEG2000 VLC_FOURCC('J','P','2','K') /* Planar YUV 4:1:0 Y:V:U */ @@ -400,6 +402,29 @@ VLC_EXPORT( bool, vlc_fourcc_IsYUV, ( vlc_fourcc_t ) ); */ VLC_EXPORT( bool, vlc_fourcc_AreUVPlanesSwapped, (vlc_fourcc_t , vlc_fourcc_t ) ); +/** + * Chroma related information. + */ +typedef struct { + unsigned plane_count; + struct { + struct { + unsigned num; + unsigned den; + } w; + struct { + unsigned num; + unsigned den; + } h; + } p[4]; + unsigned pixel_size; +} vlc_chroma_description_t; + +/** + * It returns a vlc_chroma_description_t describing the request fourcc or NULL + * if not found. + */ +VLC_EXPORT( const vlc_chroma_description_t *, vlc_fourcc_GetChromaDescription, ( vlc_fourcc_t fourcc ) ); #endif /* _VLC_FOURCC_H */