/// Returns codec description for the provided codec short name if it is found.
pub fn get_codec_description(name: &str) -> Option<&'static CodecDescription> {
- for reg in CODEC_REGISTER {
- if reg.name == name {
- return Some(reg);
- }
- }
- None
+ CODEC_REGISTER.iter().find(|®| reg.name == name)
}
static CODEC_REGISTER: &[CodecDescription] = &[
desc!(audio; "qdesign-music2", "QDesign Music v2"),
desc!(audio; "qualcomm-purevoice", "Qualcomm PureVoice"),
+ desc!(video-ll; "arm_rawvideo", "Acorn Replay Movie raw video formats"),
+ desc!(audio; "arm_rawaudio", "Acorn Replay Movie raw audio formats"),
+ desc!(video; "movinglines", "Acorn Moving Lines"),
+ desc!(video; "movingblocks", "Acorn Moving Blocks"),
+ desc!(video; "movingblockshq", "Acorn Moving Blocks HQ"),
+ desc!(video; "supermovingblocks", "Acorn Super Moving Blocks"),
+ desc!(video; "linepack", "Henrik Pedersen's LinePack"),
+ desc!(video; "movie16_3", "Henrik Pedersen's Movie 16:3"),
+ desc!(video; "escape100", "Eidos Escape 100"),
+ desc!(video; "escape102", "Eidos Escape 102"),
+ desc!(video; "escape122", "Eidos Escape 122"),
+ desc!(video; "escape124", "Eidos Escape 124"),
+ desc!(video; "escape130", "Eidos Escape 130"),
+
desc!(video; "truemotion1", "TrueMotion 1"),
desc!(video-im; "truemotionrt", "TrueMotion RT"),
desc!(video; "truemotion2", "TrueMotion 2"),
desc!(video; "gdv-video", "Gremlin Digital Video - video"),
desc!(audio; "gdv-audio", "Gremlin Digital Video - audio"),
+ desc!(video-im; "arxel-video", "Arxel Tribe Video"),
desc!(video; "beam-fcp", "Beam Software Animation"),
desc!(video; "beam-video", "Beam Software Video"),
desc!(video; "bmv-video", "BMV video"),
desc!(audio; "bmv-audio", "BMV audio"),
desc!(video; "bmv3-video", "DW Noir BMV video"),
desc!(audio; "bmv3-audio", "DW Noir BMV audio"),
+ desc!(video; "dp-sga", "Digital Pictures SGA video"),
desc!(video; "fable-imax", "Fable IMAX video"),
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"),
+ desc!(video-ll; "rbt-video", "Sierra Robot video"),
+ desc!(audio; "rbt-audio", "Sierra Robot audio"),
+ desc!(video; "seq-video", "Sierra Sequence video"),
desc!(video; "smushv1", "SMUSH Video paletted"),
desc!(video; "smushv2", "SMUSH Video 16-bit"),
desc!(video; "smush-iact", "SMUSH IACT Audio"),
desc!(audio-ll; "tta", "True Audio codec"),
desc!(audio-hyb; "wavpack", "WavPack"),
+ desc!(video-ll; "gif", "GIF"),
desc!(video-im; "jpeg", "JPEG"),
desc!(video; "h264", "ITU H.264", CODEC_CAP_COMPLEX_REORDER | CODEC_CAP_HYBRID),
desc!(video-im; "mwv1", "Aware MotionWavelets"),
+
+ desc!(video-im; "pgvv", "Radius Studio Video"),
];
static AVI_VIDEO_CODEC_REGISTER: &[(&[u8;4], &str)] = &[
(b"MV30", "midivid3"),
(b"MVLZ", "midivid-ll"),
+ (b"tmot", "truemotion1"),
(b"DUCK", "truemotion1"),
(b"TR20", "truemotionrt"),
(b"TM20", "truemotion2"),
(b"VP70", "vp7"),
(b"MWV1", "mwv1"),
+
+ (b"azpr", "apple-video"),
+ (b"PGVV", "pgvv"),
];
static WAV_CODEC_REGISTER: &[(u16, &str)] = &[