X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-registry%2Fsrc%2Fregister.rs;h=fac4e04f500b431ee47b0b78f22454f0dd1c03ae;hb=8d91d85f878bac4d415d313cebe450865a520f35;hp=fdf9e83d855485c44968a1a0d1488e00dee7ebdd;hpb=87927c5732b39bb23209486bed8d7bb7fc56b92e;p=nihav.git diff --git a/nihav-registry/src/register.rs b/nihav-registry/src/register.rs index fdf9e83..fac4e04 100644 --- a/nihav-registry/src/register.rs +++ b/nihav-registry/src/register.rs @@ -41,6 +41,8 @@ pub const CODEC_CAP_REORDER:u32 = 0x0004; pub const CODEC_CAP_HYBRID:u32 = 0x0008; /// Codec capability flag for codecs with scalability features. pub const CODEC_CAP_SCALABLE:u32 = 0x0010; +/// Codec capability flag for codecs with complex frame reordering. +pub const CODEC_CAP_COMPLEX_REORDER:u32 = 0x0020; /// Codec description structure. #[derive(Clone)] @@ -225,6 +227,8 @@ static CODEC_REGISTER: &'static [CodecDescription] = &[ desc!(audio; "bmv-audio", "BMV audio"), desc!(video; "bmv3-video", "DW Noir BMV video"), desc!(audio; "bmv3-audio", "DW Noir BMV audio"), + desc!(video; "fst-video", "FutureVision video"), + desc!(audio; "fst-audio", "FutureVision audio"), desc!(video; "midivid", "MidiVid"), desc!(video; "midivid3", "MidiVid 3"), desc!(video-ll; "midivid-ll", "MidiVid Lossless"), @@ -254,6 +258,8 @@ static CODEC_REGISTER: &'static [CodecDescription] = &[ desc!(audio-ll; "flac", "Free Lossless Audio Codec"), desc!(audio-ll; "tta", "True Audio codec"), desc!(audio-hyb; "wavpack", "WavPack"), + + desc!(video; "h264", "ITU H.264", CODEC_CAP_COMPLEX_REORDER | CODEC_CAP_HYBRID), ]; static AVI_VIDEO_CODEC_REGISTER: &'static [(&[u8;4], &str)] = &[ @@ -333,6 +339,8 @@ static MOV_VIDEO_CODEC_REGISTER: &'static [(&[u8;4], &str)] = &[ (b"VP30", "vp3"), (b"VP31", "vp3"), + + (b"avc1", "h264"), ]; static MOV_AUDIO_CODEC_REGISTER: &'static [(&[u8;4], &str)] = &[ @@ -354,6 +362,8 @@ static MOV_AUDIO_CODEC_REGISTER: &'static [(&[u8;4], &str)] = &[ (b"QDM2", "qdesign-music2"), (b"Qclp", "qualcomm-purevoice"), //(b".mp3", "mpeg-layer3"), + + (b"mp4a", "aac"), ]; /// Returns video codec short name for provided FOURCC (used in AVI format).