X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-registry%2Fsrc%2Fregister.rs;h=177cf0604546f6797abaa29dff5d4115e6c4f0bd;hb=2793026bf4b826c25ef8fc52fe63a5cd2774d779;hp=b9f8d8135a632d2e69ddc22e5622225ffac1b931;hpb=03c406ea8acbaa3d0914005fec6cb896d5cdc144;p=nihav.git diff --git a/nihav-registry/src/register.rs b/nihav-registry/src/register.rs index b9f8d81..177cf06 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)] @@ -146,6 +151,8 @@ pub fn get_codec_description(name: &str) -> Option<&'static CodecDescription> { static CODEC_REGISTER: &'static [CodecDescription] = &[ desc!(audio-ll; "pcm", "PCM"), + desc!(audio; "alaw", "A-law PCM"), + desc!(audio; "ulaw", "mu-law PCM"), desc!(video-im; "indeo1", "Intel Raw IF09"), desc!(video-im; "indeo2", "Intel Indeo 2"), @@ -179,6 +186,18 @@ static CODEC_REGISTER: &'static [CodecDescription] = &[ desc!(audio; "ms-adpcm", "MS ADPCM"), desc!(audio; "ima-adpcm-ms", "IMA ADPCM (MS variant)"), + desc!(video; "qt-smc", "Apple Graphics"), + 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", 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)"), + desc!(audio; "qdesign-music", "QDesign Music"), + desc!(audio; "qdesign-music2", "QDesign Music v2"), + desc!(audio; "qualcomm-purevoice", "Qualcomm PureVoice"), + desc!(video; "truemotion1", "TrueMotion 1"), desc!(video-im; "truemotionrt", "TrueMotion RT"), desc!(video; "truemotion2", "TrueMotion 2"), @@ -292,6 +311,9 @@ static MOV_VIDEO_CODEC_REGISTER: &'static [(&[u8;4], &str)] = &[ (b"mjpa", "mjpeg-a"), (b"mjpb", "mjpeg-b"), (b"svqi", "sorenson-video"), + (b"SVQ1", "sorenson-video"), + (b"svq3", "sorenson-video3"), + (b"SVQ3", "sorenson-video3"), (b"IV31", "indeo3"), (b"IV32", "indeo3"),