use nihav_core::frame::*;
use std::io::prelude::*;
use std::fs::File;
-use std::cell::Ref;
-pub fn write_pgmyuv(pfx: &str, strno: usize, num: u64, frm: Ref<NAFrame>) {
+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 mut ofile = File::create(name).unwrap();
}
}
-pub fn write_palppm(pfx: &str, strno: usize, num: u64, frm: Ref<NAFrame>) {
+pub fn write_palppm(pfx: &str, strno: usize, num: u64, frm: NAFrameRef) {
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();
}
}
-pub fn write_ppm(pfx: &str, strno: usize, num: u64, frm: Ref<NAFrame>) {
+pub fn write_ppm(pfx: &str, strno: usize, num: u64, frm: NAFrameRef) {
let name = format!("{}out{:02}_{:08}.ppm", pfx, strno, num);
let mut ofile = File::create(name).unwrap();
if let NABufferType::VideoPacked(ref buf) = frm.get_buffer() {