X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-registry%2Fsrc%2Fregister.rs;h=0accdd4e6263307ab0986bf4a452381d0e22421c;hb=55d852316872154db020827bd833fff7d5b49604;hp=d0a1d576e26a5c407d18113932538e6956220f8d;hpb=b2689495d6f78aa0c0fbf006dae5a185b7c79d7d;p=nihav.git diff --git a/nihav-registry/src/register.rs b/nihav-registry/src/register.rs index d0a1d57..0accdd4 100644 --- a/nihav-registry/src/register.rs +++ b/nihav-registry/src/register.rs @@ -31,11 +31,16 @@ impl fmt::Display for CodecType { } } -const CODEC_CAP_INTRAONLY:u32 = 0x0001; -const CODEC_CAP_LOSSLESS:u32 = 0x0002; -const CODEC_CAP_REORDER:u32 = 0x0004; -const CODEC_CAP_HYBRID:u32 = 0x0008; -const CODEC_CAP_SCALABLE:u32 = 0x0010; +/// Codec capability flag for intra-only codecs. +pub const CODEC_CAP_INTRAONLY:u32 = 0x0001; +/// Codec capability flag for lossless codecs. +pub const CODEC_CAP_LOSSLESS:u32 = 0x0002; +/// Codec capability flag for codecs with frame reordering. +pub const CODEC_CAP_REORDER:u32 = 0x0004; +/// Codec capability flag for codecs that can be both lossy and lossless. +pub const CODEC_CAP_HYBRID:u32 = 0x0008; +/// Codec capability flag for codecs with scalability features. +pub const CODEC_CAP_SCALABLE:u32 = 0x0010; /// Codec description structure. #[derive(Clone)] @@ -185,7 +190,7 @@ static CODEC_REGISTER: &'static [CodecDescription] = &[ desc!(video; "qt-rle", "Apple Animation"), desc!(video; "apple-video", "Apple video"), desc!(video; "sorenson-video", "Sorenson Video"), - desc!(video; "sorenson-video3", "Sorenson Video 3"), + desc!(video; "sorenson-video3", "Sorenson Video 3", CODEC_CAP_REORDER), desc!(audio; "mace-3", "MACE 3:1"), desc!(audio; "mace-6", "MACE 6:1"), desc!(audio; "ima-adpcm-qt", "IMA ADPCM (Apple variant)"), @@ -221,6 +226,8 @@ static CODEC_REGISTER: &'static [CodecDescription] = &[ desc!(video-ll; "midivid-ll", "MidiVid Lossless"), desc!(video; "vmd-video", "VMD video"), desc!(audio; "vmd-audio", "VMD audio"), + desc!(video; "vxvideo", "Actimagine Vx"), + desc!(audio; "vxaudio", "Actimagine Sx"), desc!(video; "smacker-video", "Smacker video"), desc!(audio; "smacker-audio", "Smacker audio"),