pub struct SencBox {
pub flags: u32,
pub samples: Vec<SencSample>,
}Available on crate feature
decrypt-cenc only.Expand description
Sample Encryption Box (senc) - contains initialization vectors and subsample maps for all samples in a movie fragment.
Fields§
§flags: u32The flags from the box header (typically indicating whether subsamples are present).
samples: Vec<SencSample>Per-sample encryption parameters.
Implementations§
Source§impl SencBox
impl SencBox
Sourcepub fn new(
box_: &mut ParsedBox<'_>,
iv_size: u8,
constant_iv: Option<&[u8; 16]>,
) -> Result<Self>
pub fn new( box_: &mut ParsedBox<'_>, iv_size: u8, constant_iv: Option<&[u8; 16]>, ) -> Result<Self>
Parses a senc box from a ParsedBox.
§Arguments
box_- The parsed box to read from.iv_size- The IV size in bytes (fromtencdefault or per-sample IV size).constant_iv- An optional constant IV to use ifiv_sizeis zero.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SencBox
impl RefUnwindSafe for SencBox
impl Send for SencBox
impl Sync for SencBox
impl Unpin for SencBox
impl UnsafeUnpin for SencBox
impl UnwindSafe for SencBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more