#[cfg(feature="decoder_ts102366")]
mod ts102366;
+#[cfg(feature="decoders")]
const DECODERS: &[DecoderInfo] = &[
#[cfg(feature="decoder_cinepak")]
DecoderInfo { name: "cinepak", get_decoder: cinepak::get_decoder },
];
/// Registers all available codecs provided by this crate.
+#[cfg(feature="decoders")]
pub fn generic_register_all_decoders(rd: &mut RegisteredDecoders) {
for decoder in DECODERS.iter() {
rd.add_decoder(*decoder);
#[cfg(feature="encoder_zmbv")]
mod zmbvenc;
+#[cfg(feature="encoders")]
const ENCODERS: &[EncoderInfo] = &[
#[cfg(feature="encoder_cinepak")]
EncoderInfo { name: "cinepak", get_encoder: cinepakenc::get_encoder },
];
/// Registers all available encoders provided by this crate.
+#[cfg(feature="encoders")]
pub fn generic_register_all_encoders(re: &mut RegisteredEncoders) {
for encoder in ENCODERS.iter() {
re.add_encoder(*encoder);
extern crate nihav_codec_support;
extern crate nihav_registry;
-#[cfg(feature="decoders")]
+#[cfg(any(feature="decoders", feature="encoders"))]
#[allow(clippy::needless_range_loop)]
#[allow(clippy::single_match)]
#[allow(clippy::unreadable_literal)]
#[cfg(feature="decoder_asao")]
mod asao;
+#[cfg(feature="decoders")]
const DECODERS: &[DecoderInfo] = &[
#[cfg(feature="decoder_flv263")]
DecoderInfo { name: "flv263", get_decoder: flv263::get_decoder },
];
/// Registers all available codecs provided by this crate.
+#[cfg(feature="decoders")]
pub fn flash_register_all_decoders(rd: &mut RegisteredDecoders) {
for decoder in DECODERS.iter() {
rd.add_decoder(*decoder);
#[cfg(feature="encoder_flv_adpcm")]
mod adpcmenc;
+#[cfg(feature="encoders")]
const ENCODERS: &[EncoderInfo] = &[
#[cfg(feature="encoder_flv_adpcm")]
EncoderInfo { name: "flv-adpcm", get_encoder: adpcmenc::get_encoder },
];
/// Registers all available encoders provided by this crate.
+#[cfg(feature="encoders")]
pub fn flash_register_all_encoders(re: &mut RegisteredEncoders) {
for encoder in ENCODERS.iter() {
re.add_encoder(*encoder);