generic_register_all_demuxers(&mut dmx_reg);
let mut dec_reg = RegisteredDecoders::new();
generic_register_all_codecs(&mut dec_reg);
- test_file_decoding("avi", "assets/TalkingHead_352x288.avi", Some(10), true, false, None/*Some("clv")*/, &dmx_reg, &dec_reg);
-// test_file_decoding("avi", "assets/basketball.avi", None/*Some(10)*/, true, false, Some("clv1"));
+ test_file_decoding("avi", "assets/Misc/TalkingHead_352x288.avi", Some(10), true, false, None/*Some("clv")*/, &dmx_reg, &dec_reg);
+// test_file_decoding("avi", "assets/Misc/basketball.avi", None/*Some(10)*/, true, false, Some("clv1"));
//panic!("debug");
}
}
#[test]
fn test_avi_demux() {
- let mut file = File::open("assets/laser05.avi").unwrap();
+ let mut file = File::open("assets/Indeo/laser05.avi").unwrap();
let mut fr = FileReader::new_read(&mut file);
let mut br = ByteReader::new(&mut fr);
let mut dmx = AVIDemuxer::new(&mut br);
assert_eq!(reader.read_u24le().unwrap(), 0x010101u32);
assert_eq!(reader.read_u32le().unwrap(), 0x01010101u32);
assert_eq!(reader.read_u64le().unwrap(), 0x0101010101010101u64);
- let mut file = File::open("assets/MaoMacha.asx").unwrap();
+ let mut file = File::open("assets/Misc/MaoMacha.asx").unwrap();
let mut fr = FileReader::new_read(&mut file);
let mut br2 = ByteReader::new(&mut fr);
assert_eq!(br2.read_byte().unwrap(), 0x30);
let mut dec_reg = RegisteredDecoders::new();
game_register_all_codecs(&mut dec_reg);
-// let file = "assets/PERFECT.BMV";
-// let file = "assets/DW2-MOUSE.BMV";
- let file = "assets/WILDCAT.BMV";
+// let file = "assets/Game/PERFECT.BMV";
+// let file = "assets/Game/DW2-MOUSE.BMV";
+ let file = "assets/Game/WILDCAT.BMV";
test_file_decoding("bmv", file, Some(40), true, false, None, &dmx_reg, &dec_reg);
}
#[test]
let mut dec_reg = RegisteredDecoders::new();
game_register_all_codecs(&mut dec_reg);
- let file = "assets/PERFECT.BMV";
-// let file = "assets/DW2-MOUSE.BMV";
-// let file = "assets/WILDCAT.BMV";
+ let file = "assets/Game/PERFECT.BMV";
+// let file = "assets/Game/DW2-MOUSE.BMV";
+// let file = "assets/Game/WILDCAT.BMV";
test_decode_audio("bmv", file, None, "bmv", &dmx_reg, &dec_reg);
}
}
let mut dec_reg = RegisteredDecoders::new();
game_register_all_codecs(&mut dec_reg);
- test_file_decoding("gdv", "assets/intro1.gdv", Some(10), true, false, None, &dmx_reg, &dec_reg);
+ test_file_decoding("gdv", "assets/Game/intro1.gdv", Some(10), true, false, None, &dmx_reg, &dec_reg);
}
}
let mut dec_reg = RegisteredDecoders::new();
game_register_all_codecs(&mut dec_reg);
-// let file = "assets/1491.VMD";
- let file = "assets/128.vmd";
+// let file = "assets/Game/1491.VMD";
+ let file = "assets/Game/128.vmd";
test_file_decoding("vmd", file, Some(10), true, false, None/*Some("vmd")*/, &dmx_reg, &dec_reg);
}
#[test]
let mut dec_reg = RegisteredDecoders::new();
game_register_all_codecs(&mut dec_reg);
-// let file = "assets/1491.VMD";
- let file = "assets/128.vmd";
-// let file = "assets/1000.VMD";
-// let file = "assets/235.VMD";
+// let file = "assets/Game/1491.VMD";
+ let file = "assets/Game/128.vmd";
+// let file = "assets/Game/1000.VMD";
+// let file = "assets/Game/235.VMD";
test_decode_audio("vmd", file, None, "vmd", &dmx_reg, &dec_reg);
}
}
#[test]
fn test_bmv_demux() {
- let mut file = File::open("assets/DW2-MOUSE.BMV").unwrap();
+ let mut file = File::open("assets/Game/DW2-MOUSE.BMV").unwrap();
let mut fr = FileReader::new_read(&mut file);
let mut br = ByteReader::new(&mut fr);
let mut dmx = BMVDemuxer::new(&mut br);
#[test]
fn test_gdv_demux() {
- let mut file = File::open("assets/intro1.gdv").unwrap();
+ let mut file = File::open("assets/Game/intro1.gdv").unwrap();
let mut fr = FileReader::new_read(&mut file);
let mut br = ByteReader::new(&mut fr);
let mut dmx = GremlinVideoDemuxer::new(&mut br);
#[test]
fn test_vmd_demux() {
- let mut file = File::open("assets/128.vmd").unwrap();
- //let mut file = File::open("assets/1491.VMD").unwrap();
+ let mut file = File::open("assets/Game/128.vmd").unwrap();
+ //let mut file = File::open("assets/Game/1491.VMD").unwrap();
let mut fr = FileReader::new_read(&mut file);
let mut br = ByteReader::new(&mut fr);
let mut dmx = VMDDemuxer::new(&mut br);
let mut dec_reg = RegisteredDecoders::new();
indeo_register_all_codecs(&mut dec_reg);
-// let file = "assets/neal73_saber.avi";
-// let file = "assets/IMC/hvalen.avi";
- let file = "assets/IMC/8khz.avi";
-// let file = "assets/STsKlassFist-1a.avi";
-// let file = "assets/IMC/Angel Bday.avi";
+// let file = "assets/Indeo/neal73_saber.avi";
+// let file = "assets/Indeo/IMC/hvalen.avi";
+ let file = "assets/Indeo/IMC/8khz.avi";
+// let file = "assets/Indeo/STsKlassFist-1a.avi";
+// let file = "assets/Indeo/IMC/Angel Bday.avi";
test_decode_audio("avi", file, None, "imc", &dmx_reg, &dec_reg);
//test_file_decoding("avi", file, None, false, true, None);
}
let mut dec_reg = RegisteredDecoders::new();
indeo_register_all_codecs(&mut dec_reg);
- test_file_decoding("avi", "assets/laser05.avi", Some(10), true, false, None, &dmx_reg, &dec_reg);
+ test_file_decoding("avi", "assets/Indeo/laser05.avi", Some(10), true, false, None, &dmx_reg, &dec_reg);
}
}
let mut dec_reg = RegisteredDecoders::new();
indeo_register_all_codecs(&mut dec_reg);
- test_file_decoding("avi", "assets/iv32_example.avi", Some(10), true, false, None, &dmx_reg, &dec_reg);
+ test_file_decoding("avi", "assets/Indeo/iv32_example.avi", Some(10), true, false, None, &dmx_reg, &dec_reg);
}
}
let mut dec_reg = RegisteredDecoders::new();
indeo_register_all_codecs(&mut dec_reg);
- test_file_decoding("avi", "assets/IV4/volcano.avi", /*None*/Some(16), true, false, None/*Some("iv4")*/, &dmx_reg, &dec_reg);
+ test_file_decoding("avi", "assets/Indeo/IV4/volcano.avi", /*None*/Some(16), true, false, None/*Some("iv4")*/, &dmx_reg, &dec_reg);
//panic!("the end");
}
}
let mut dec_reg = RegisteredDecoders::new();
indeo_register_all_codecs(&mut dec_reg);
- test_file_decoding("avi", "assets/IV5/sample.avi", /*None*/Some(2), true, false, None, &dmx_reg, &dec_reg);
-// test_file_decoding("avi", "assets/IV5/W32mdl_1.avi", None/*Some(2)*/, true, false, Some("iv5"));
+ test_file_decoding("avi", "assets/Indeo/IV5/sample.avi", /*None*/Some(2), true, false, None, &dmx_reg, &dec_reg);
+// test_file_decoding("avi", "assets/Indeo/IV5/W32mdl_1.avi", None/*Some(2)*/, true, false, Some("iv5"));
//panic!("the end");
}
}
let mut dec_reg = RegisteredDecoders::new();
indeo_register_all_codecs(&mut dec_reg);
- test_file_decoding("avi", "assets/neal73_saber.avi", Some(16), true, false, None/*Some("i263")*/, &dmx_reg, &dec_reg);
+ test_file_decoding("avi", "assets/Indeo/neal73_saber.avi", Some(16), true, false, None/*Some("i263")*/, &dmx_reg, &dec_reg);
}
}