aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-duck/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2023-03-14 11:11:31 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2023-03-14 11:11:31 +0100
commit2757a0289c980aeba002609c777815b51ace8e56 (patch)
tree0872e7aa66fb001aa034b44f16ae1dcdfec3293f /nihav-duck/src
parent5f9bf7648f667952b787c77afde07d23ac7c01de (diff)
downloadnihav-2757a0289c980aeba002609c777815b51ace8e56.tar.gz
introduce a way for encoder to manifest its capabilities
Diffstat (limited to 'nihav-duck/src')
-rw-r--r--nihav-duck/src/codecs/truemotionrtenc.rs1
-rw-r--r--nihav-duck/src/codecs/vp6enc/mod.rs1
-rw-r--r--nihav-duck/src/codecs/vp7enc/mod.rs1
3 files changed, 3 insertions, 0 deletions
diff --git a/nihav-duck/src/codecs/truemotionrtenc.rs b/nihav-duck/src/codecs/truemotionrtenc.rs
index c80a4b8..47236dd 100644
--- a/nihav-duck/src/codecs/truemotionrtenc.rs
+++ b/nihav-duck/src/codecs/truemotionrtenc.rs
@@ -181,6 +181,7 @@ impl NAEncoder for TMRTEncoder {
}
}
}
+ fn get_capabilities(&self) -> u64 { ENC_CAPS_PARAMCHANGE }
fn init(&mut self, stream_id: u32, encinfo: EncodeParameters) -> EncoderResult<NAStreamRef> {
match encinfo.format {
NACodecTypeInfo::None => Err(EncoderError::FormatError),
diff --git a/nihav-duck/src/codecs/vp6enc/mod.rs b/nihav-duck/src/codecs/vp6enc/mod.rs
index d706fe7..9eea91d 100644
--- a/nihav-duck/src/codecs/vp6enc/mod.rs
+++ b/nihav-duck/src/codecs/vp6enc/mod.rs
@@ -680,6 +680,7 @@ impl NAEncoder for VP6Encoder {
}
}
}
+ fn get_capabilities(&self) -> u64 { 0 }
fn init(&mut self, stream_id: u32, encinfo: EncodeParameters) -> EncoderResult<NAStreamRef> {
match encinfo.format {
NACodecTypeInfo::None => Err(EncoderError::FormatError),
diff --git a/nihav-duck/src/codecs/vp7enc/mod.rs b/nihav-duck/src/codecs/vp7enc/mod.rs
index 8a31f10..a73a571 100644
--- a/nihav-duck/src/codecs/vp7enc/mod.rs
+++ b/nihav-duck/src/codecs/vp7enc/mod.rs
@@ -280,6 +280,7 @@ impl NAEncoder for VP7Encoder {
}
}
}
+ fn get_capabilities(&self) -> u64 { 0 }
fn init(&mut self, stream_id: u32, encinfo: EncodeParameters) -> EncoderResult<NAStreamRef> {
match encinfo.format {
NACodecTypeInfo::None => Err(EncoderError::FormatError),