pub struct Encoded {
pub timestamp: Timestamp,
pub payload: Bytes,
}Expand description
One encoded video frame: a whole access unit in the codec’s wire framing
(Annex-B with in-band parameter sets), plus the presentation time of the raw
Frame it came from.
Named for what it holds rather than mirroring Frame, so the
two never read alike at a call site that handles both.
The encoder carries the timestamp through the codec rather than leaving the
caller to guess one at publish time, so a backend that buffers a frame or
drains a tail from Encoder::finish still stamps
each access unit with the time of the picture it encoded.
Fields§
§timestamp: TimestampPresentation timestamp, from the raw frame this was encoded from.
payload: BytesThe access unit, in the framing the matching catalog importer expects.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Encoded
impl RefUnwindSafe for Encoded
impl Send for Encoded
impl Sync for Encoded
impl Unpin for Encoded
impl UnsafeUnpin for Encoded
impl UnwindSafe for Encoded
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