pub struct VisualSampleEntry {Show 13 fields
pub sample_entry: SampleEntry,
pub pre_defined: u16,
pub reserved1: u16,
pub pre_defined2: [u32; 3],
pub width: u16,
pub height: u16,
pub horiz_resolution: FixedU32<U16>,
pub vert_resolution: FixedU32<U16>,
pub reserved2: u32,
pub frame_count: u16,
pub compressor_name: [u8; 32],
pub depth: u16,
pub pre_defined4: i16,
}Expand description
Fields§
§sample_entry: SampleEntryThe sample entry that this box inherits from.
pre_defined: u16Pre-defined 16 bits, must be 0.
reserved1: u16Reserved 16 bits, must be 0.
pre_defined2: [u32; 3]Pre-defined 3 * 32 bits, must be 0.
width: u16The maximum visual width and height of the stream described by this sample description, in pixels.
height: u16See width.
horiz_resolution: FixedU32<U16>Must be set to 0x00480000 (72 dpi).
vert_resolution: FixedU32<U16>Must be set to 0x00480000 (72 dpi).
reserved2: u32Reserved 32 bits, must be 0.
frame_count: u16How many frames of compressed video are stored in each sample. The default is 1, for one frame per sample; it may be more than 1 for multiple frames per sample.
compressor_name: [u8; 32]A name, for informative purposes. It is formatted in a fixed 32-byte field, with the first byte set to the number of bytes to be displayed, followed by that number of bytes of displayable data encoded using UTF-8, and then padding to complete 32 bytes total (including the size byte). The field may be set to 0.
depth: u16One of the following values:
0x0018: images are in colour with no alpha.
pre_defined4: i16Pre-defined 16 bits, must be -1.
Implementations§
Source§impl VisualSampleEntry
impl VisualSampleEntry
Sourcepub fn new(
sample_entry: SampleEntry,
width: u16,
height: u16,
compressor_name: [u8; 32],
) -> Self
pub fn new( sample_entry: SampleEntry, width: u16, height: u16, compressor_name: [u8; 32], ) -> Self
Creates a new VisualSampleEntry with the given parameters.