pub struct OpusSpecificBox<'a> {
pub version: u8,
pub output_channel_count: u8,
pub pre_skip: u16,
pub input_sample_rate: u32,
pub output_gain: i16,
pub channel_mapping_family: u8,
pub channel_mapping_table: Option<ChannelMappingTable<'a>>,
}isobmff only.Expand description
Opus Specific Box
Encapsulation of Opus in ISO Base Media File Format - 4.3.2
Fields§
§version: u8Shall be set to 0.
output_channel_count: u8Shall be set to the same value as the Output Channel Count field in the identification header defined in Ogg Opus.
pre_skip: u16Indicates the number of the priming samples, that is, the number of samples at 48000 Hz to discard from the decoder output when starting playback.
input_sample_rate: u32Shall be set to the same value as the Input Sample Rate field in the identification header defined in Ogg Opus.
output_gain: i16Shall be set to the same value as the Output Gain field in the identification header define in Ogg Opus.
channel_mapping_family: u8Shall be set to the same value as the Channel Mapping Family field in the identification header defined in Ogg Opus.
channel_mapping_table: Option<ChannelMappingTable<'a>>The optional channel mapping table contained in this box.
Only present if channel_mapping_family is not 0.
Trait Implementations§
Source§impl<'a> Debug for OpusSpecificBox<'a>
impl<'a> Debug for OpusSpecificBox<'a>
Source§impl<'a> Deserialize<'a> for OpusSpecificBox<'a>
impl<'a> Deserialize<'a> for OpusSpecificBox<'a>
Source§fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
Source§impl<'a> DeserializeSeed<'a, BoxHeader> for OpusSpecificBox<'a>
impl<'a> DeserializeSeed<'a, BoxHeader> for OpusSpecificBox<'a>
Source§fn deserialize_seed<R>(reader: R, _seed: BoxHeader) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize_seed<R>(reader: R, _seed: BoxHeader) -> Result<Self>where
R: ZeroCopyReader<'a>,
Source§impl<'a> IsoBox for OpusSpecificBox<'a>
impl<'a> IsoBox for OpusSpecificBox<'a>
Source§fn add_header_size(payload_size: usize) -> usize
fn add_header_size(payload_size: usize) -> usize
Source§fn box_header(&self) -> BoxHeader
fn box_header(&self) -> BoxHeader
BoxHeader for this box.Source§fn serialize_box_header<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn serialize_box_header<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
IsoBox::box_header to the given writer.