Struct ac_ffmpeg::codec::bsf::BitstreamFilterBuilder
source · pub struct BitstreamFilterBuilder { /* private fields */ }
Expand description
A builder for bitstream filters.
Implementations§
source§impl BitstreamFilterBuilder
impl BitstreamFilterBuilder
sourcepub fn input_time_base(self, time_base: TimeBase) -> Self
pub fn input_time_base(self, time_base: TimeBase) -> Self
Set input time base. By default it’s in microseconds. All input packets will be rescaled to this time base before passing them to the filter.
sourcepub fn input_codec_parameters(self, codec_parameters: &CodecParameters) -> Self
pub fn input_codec_parameters(self, codec_parameters: &CodecParameters) -> Self
Set input codec parameters.
sourcepub fn output_time_base(self, time_base: TimeBase) -> Self
pub fn output_time_base(self, time_base: TimeBase) -> Self
Set output time base. By default it’s in microseconds. All output packets will use this time base.
sourcepub fn output_codec_parameters(self, codec_parameters: &CodecParameters) -> Self
pub fn output_codec_parameters(self, codec_parameters: &CodecParameters) -> Self
Set output codec parameters.
sourcepub fn build(self) -> Result<BitstreamFilter, Error>
pub fn build(self) -> Result<BitstreamFilter, Error>
Build the bitstream filter.