introduce option handling for decoders
[nihav.git] / nihav-game / src / codecs / bmv.rs
index e94fbaff2a28160dd8018e34c5dbf5781cf5e8e2..2e423906262cb8f6cb4219b7fd6ca483a1429ab4 100644 (file)
@@ -220,6 +220,12 @@ impl NADecoder for BMVVideoDecoder {
     }
 }
 
+impl NAOptionHandler for BMVVideoDecoder {
+    fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+    fn set_options(&mut self, _options: &[NAOption]) { }
+    fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
 
 pub fn get_decoder_video() -> Box<dyn NADecoder + Send> {
     Box::new(BMVVideoDecoder::new())
@@ -299,6 +305,12 @@ impl NADecoder for BMVAudioDecoder {
     }
 }
 
+impl NAOptionHandler for BMVAudioDecoder {
+    fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+    fn set_options(&mut self, _options: &[NAOption]) { }
+    fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
 pub fn get_decoder_audio() -> Box<dyn NADecoder + Send> {
     Box::new(BMVAudioDecoder::new())
 }