X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_fourcc.h;h=fd7d24a861fa4ff6115b447bdbd711589d59061e;hb=12ade3e3bc975d5426ba4af155b7372c31093b31;hp=ad686480c5d86347d73b7fd92daeb0a0d509350d;hpb=df7e8cf916417f2c609571c4aa8e2bbb1b92ea07;p=vlc diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h index ad686480c5..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 */ @@ -173,6 +175,8 @@ #define VLC_CODEC_CYUV VLC_FOURCC('c','y','u','v') /* 10-bit 4:2:2 Component YCbCr */ #define VLC_CODEC_V210 VLC_FOURCC('v','2','1','0') +/* Planar Y Packet UV (420) */ +#define VLC_CODEC_NV12 VLC_FOURCC('N','V','1','2') /* Image codec (video) */ #define VLC_CODEC_PNG VLC_FOURCC('p','n','g',' ') @@ -398,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 */