X-Git-Url: https://git.nihav.org/?p=nihav-tool.git;a=blobdiff_plain;f=src%2Ffrmwriter.rs;fp=src%2Ffrmwriter.rs;h=5b50b816b20a340bca3f478c9e7f28e24f72c700;hp=f3221d09a2b440b8d8556616b34cd966c9f641a2;hb=7437145d254f1852f5b594e56e20124761bb5b02;hpb=7c6134ccc50772924bd4f6b917fe3dead9fc8e5e diff --git a/src/frmwriter.rs b/src/frmwriter.rs index f3221d0..5b50b81 100644 --- a/src/frmwriter.rs +++ b/src/frmwriter.rs @@ -6,7 +6,7 @@ use std::fs::File; 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(); @@ -96,7 +96,7 @@ pub fn write_pgmyuv(pfx: &str, strno: usize, num: u64, frm: NAFrameRef) { } 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); @@ -131,7 +131,7 @@ pub fn write_palppm(pfx: &str, strno: usize, num: u64, frm: NAFrameRef) { } 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();