let buf = alloc_video_buffer(out_info, 2)?;
self.lastfrm = Some(buf.get_vbuf().unwrap());
let buf = alloc_video_buffer(out_info, 2)?;
self.lastfrm = Some(buf.get_vbuf().unwrap());
fn get_supported_options(&self) -> &[NAOptionDefinition] { ENCODER_OPTS }
fn set_options(&mut self, options: &[NAOption]) {
for option in options.iter() {
fn get_supported_options(&self) -> &[NAOptionDefinition] { ENCODER_OPTS }
fn set_options(&mut self, options: &[NAOption]) {
for option in options.iter() {
"nstrips" => Some(NAValue::Int(self.nstrips as i64)),
"quant_mode" => Some(NAValue::String(self.qmode.to_string())),
_ => None,
"nstrips" => Some(NAValue::Int(self.nstrips as i64)),
"quant_mode" => Some(NAValue::String(self.qmode.to_string())),
_ => None,