pub struct Mp3Granule {Show 14 fields
pub part2_3_length: u16,
pub big_values: u16,
pub global_gain: u16,
pub scalefac_compress: u16,
pub window_switching: bool,
pub block_type: u8,
pub mixed_block: bool,
pub table_select: [u8; 3],
pub subblock_gain: [u8; 3],
pub region0_count: u8,
pub region1_count: u8,
pub preflag: bool,
pub scalefac_scale: bool,
pub count1table_select: bool,
}Expand description
Granule side information
Fields§
§part2_3_length: u16Number of bits in the main data for this granule
big_values: u16Number of values in the big value region
global_gain: u16Global gain value
scalefac_compress: u16Scalefactor compression index
window_switching: boolWindow switching flag
block_type: u8Block type (0=normal, 1=start, 2=short, 3=stop)
mixed_block: boolMixed block flag
table_select: [u8; 3]Huffman table selection for regions (3 regions)
subblock_gain: [u8; 3]Subblock gain for short blocks
region0_count: u8Region0 count (number of bands in region 0)
region1_count: u8Region1 count
preflag: boolPreflag (boosts high-frequency scalefactors)
scalefac_scale: boolScalefactor scale (0 or 1)
count1table_select: boolCount1 table selection (0 or 1)
Trait Implementations§
Source§impl Clone for Mp3Granule
impl Clone for Mp3Granule
Source§fn clone(&self) -> Mp3Granule
fn clone(&self) -> Mp3Granule
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Mp3Granule
impl Debug for Mp3Granule
Source§impl Default for Mp3Granule
impl Default for Mp3Granule
Source§fn default() -> Mp3Granule
fn default() -> Mp3Granule
Returns the “default value” for a type. Read more
Source§impl PartialEq for Mp3Granule
impl PartialEq for Mp3Granule
impl Copy for Mp3Granule
impl Eq for Mp3Granule
impl StructuralPartialEq for Mp3Granule
Auto Trait Implementations§
impl Freeze for Mp3Granule
impl RefUnwindSafe for Mp3Granule
impl Send for Mp3Granule
impl Sync for Mp3Granule
impl Unpin for Mp3Granule
impl UnwindSafe for Mp3Granule
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)