pub fn write_pgmyuv(pfx: &str, strno: usize, num: u64, frm: NAFrameRef) {
if let NABufferType::None = frm.get_buffer() { return; }
- let name = format!("{}out{:02}_{:08}.pgm", pfx, strno, num);
+ let name = format!("{}{:02}_{:08}.pgm", pfx, strno, num);
let mut ofile = File::create(name).unwrap();
let buf = frm.get_buffer().get_vbuf().unwrap();
let is_flipped = buf.get_info().is_flipped();
}
pub fn write_palppm(pfx: &str, strno: usize, num: u64, frm: NAFrameRef) {
- let name = format!("{}out{:02}_{:08}.ppm", pfx, strno, num);
+ let name = format!("{}{:02}_{:08}.ppm", pfx, strno, num);
let mut ofile = File::create(name).unwrap();
let buf = frm.get_buffer().get_vbuf().unwrap();
let (w, h) = buf.get_dimensions(0);
}
pub fn write_ppm(pfx: &str, strno: usize, num: u64, frm: NAFrameRef) {
- let name = format!("{}out{:02}_{:08}.ppm", pfx, strno, num);
+ let name = format!("{}{:02}_{:08}.ppm", pfx, strno, num);
let mut ofile = File::create(name).unwrap();
let info = frm.get_buffer().get_video_info().unwrap();
let flipped = info.is_flipped();