#[non_exhaustive]pub enum VideoCodec {
SpeedHq420,
SpeedHq422,
SpeedHq422Alpha,
H264,
Hevc,
H264Alpha,
HevcAlpha,
}Expand description
A compressed video codec.
The codec, the StreamTier and stream protection together select the
FourCC a frame is sent with.
§Delivery
The SDK takes any compressed video frame and silently discards the ones it does not accept, so this module refuses to build or send those:
- A SpeedHQ frame begins with its quality, a byte below 100.
- An H.264 or HEVC picture on the preview stream is at most 640 pixels wide and 640 high.
Which frames reach a receiver also depends on the order they are sent in;
see CompressedSender.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SpeedHq420
SpeedHQ 4:2:0.
SpeedHq422
SpeedHQ 4:2:2.
SpeedHq422Alpha
SpeedHQ 4:2:2 with alpha.
H264
H.264 in a packet envelope.
Hevc
HEVC in a packet envelope.
H264Alpha
H.264 with alpha in a packet envelope.
HevcAlpha
HEVC with alpha in a packet envelope.
Implementations§
Source§impl VideoCodec
impl VideoCodec
Sourcepub fn envelope_codec(self) -> Option<EnvelopeCodec>
pub fn envelope_codec(self) -> Option<EnvelopeCodec>
The envelope codec that frames this codec’s payload. SpeedHQ frames have no envelope.
Trait Implementations§
Source§impl Clone for VideoCodec
impl Clone for VideoCodec
impl Copy for VideoCodec
Source§impl Debug for VideoCodec
impl Debug for VideoCodec
impl Eq for VideoCodec
Source§impl Hash for VideoCodec
impl Hash for VideoCodec
Source§impl PartialEq for VideoCodec
impl PartialEq for VideoCodec
impl StructuralPartialEq for VideoCodec
Auto Trait Implementations§
impl Freeze for VideoCodec
impl RefUnwindSafe for VideoCodec
impl Send for VideoCodec
impl Sync for VideoCodec
impl Unpin for VideoCodec
impl UnsafeUnpin for VideoCodec
impl UnwindSafe for VideoCodec
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