X-Git-Url: https://git.nihav.org/?p=nihav-tool.git;a=blobdiff_plain;f=src%2Ffrmwriter.rs;h=d4ea654f707d970e80fc2bec919709432c537d14;hp=ac0c7b516c44eda4eb9de991014278c2f3f4924b;hb=cd9ece3c2316fe74631e33347328dfe3d8d21a65;hpb=3660c127f52a92862248464767a3d92cf63aa182 diff --git a/src/frmwriter.rs b/src/frmwriter.rs index ac0c7b5..d4ea654 100644 --- a/src/frmwriter.rs +++ b/src/frmwriter.rs @@ -7,7 +7,7 @@ use std::cell::Ref; pub fn write_pgmyuv(pfx: &str, strno: usize, num: u64, frm: Ref) { 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); @@ -48,7 +48,7 @@ pub fn write_pgmyuv(pfx: &str, strno: usize, num: u64, frm: Ref) { } pub fn write_palppm(pfx: &str, strno: usize, num: u64, frm: Ref) { - 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);