pub fn write_pgmyuv(pfx: &str, strno: usize, num: u64, frm: Ref<NAFrame>) {
if let NABufferType::None = frm.get_buffer() { return; }
- let name = format!("{}out{:02}_{:04}.pgm", pfx, strno, num);
+ let name = format!("{}out{:02}_{:08}.pgm", 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_palppm(pfx: &str, strno: usize, num: u64, frm: Ref<NAFrame>) {
- let name = format!("{}out{:02}_{:04}.ppm", pfx, strno, num);
+ let name = format!("{}out{: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);
}
let name = args[cur_arg].as_str();
cur_arg += 1;
-println!(" name = {} arg pos {}/{}", name, cur_arg, args.len());
if cur_arg < args.len() {
lastpts = Some(u64::from_str_radix(args[cur_arg].as_str(), 10).unwrap());
}
};
}
}
- if pkt.get_pts() != None && pkt.get_pts() == lastpts { break; }
+ if pkt.get_pts() != None && pkt.get_pts() >= lastpts { break; }
}
//panic!("end");
}