#[repr(transparent)]pub struct AVPictureType(pub i32);
Expand description
Picture types used in FFmpeg’s AVPictureType
.
Picture types define the role of a frame within a video compression scheme.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/avutil_8h.html
Tuple Fields§
§0: i32
Implementations§
Source§impl AVPictureType
impl AVPictureType
Sourcepub const None: Self
pub const None: Self
Undefined or unknown picture type.
- Used for: Uninitialized or unspecified frames.
- Equivalent to:
AV_PICTURE_TYPE_NONE
Sourcepub const Intra: Self
pub const Intra: Self
Intra-frame (I-frame): A self-contained frame that does not reference others.
- Used for: Keyframes in compressed video.
- Efficient for: Random access (seeking).
- Equivalent to:
AV_PICTURE_TYPE_I
Sourcepub const Predicted: Self
pub const Predicted: Self
Predicted frame (P-frame): Encodes differences relative to previous frames.
- Used for: Intermediate frames in video compression.
- Smaller than I-frames but requires previous frames for decoding.
- Equivalent to:
AV_PICTURE_TYPE_P
Sourcepub const BiPredicted: Self
pub const BiPredicted: Self
Bi-directional predicted frame (B-frame): Uses both past and future frames for prediction.
- Used for: High compression efficiency in video encoding.
- Requires both previous and future frames for decoding.
- Equivalent to:
AV_PICTURE_TYPE_B
Sourcepub const SpriteGmc: Self
pub const SpriteGmc: Self
Sprite (S-GMC) VOP in MPEG-4.
- Used for: Global motion compensation (GMC) in older MPEG-4 video.
- Equivalent to:
AV_PICTURE_TYPE_S
Sourcepub const SwitchingIntra: Self
pub const SwitchingIntra: Self
Switching Intra-frame (SI-frame): A special type of I-frame.
- Used for: Scalable video coding, ensuring smooth transitions.
- Equivalent to:
AV_PICTURE_TYPE_SI
Sourcepub const SwitchingPredicted: Self
pub const SwitchingPredicted: Self
Switching Predicted frame (SP-frame): A special type of P-frame.
- Used for: Scalable video coding, allowing switching between streams.
- Equivalent to:
AV_PICTURE_TYPE_SP
Trait Implementations§
Source§impl Clone for AVPictureType
impl Clone for AVPictureType
Source§fn clone(&self) -> AVPictureType
fn clone(&self) -> AVPictureType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AVPictureType
impl Debug for AVPictureType
Source§impl From<AVPictureType> for i32
impl From<AVPictureType> for i32
Source§fn from(value: AVPictureType) -> Self
fn from(value: AVPictureType) -> Self
Converts to this type from the input type.
Source§impl From<AVPictureType> for u32
impl From<AVPictureType> for u32
Source§fn from(value: AVPictureType) -> Self
fn from(value: AVPictureType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for AVPictureType
impl From<i32> for AVPictureType
Source§impl From<u32> for AVPictureType
impl From<u32> for AVPictureType
Source§impl Hash for AVPictureType
impl Hash for AVPictureType
Source§impl Ord for AVPictureType
impl Ord for AVPictureType
Source§fn cmp(&self, other: &AVPictureType) -> Ordering
fn cmp(&self, other: &AVPictureType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<i32> for AVPictureType
impl PartialEq<i32> for AVPictureType
Source§impl PartialEq for AVPictureType
impl PartialEq for AVPictureType
Source§impl PartialOrd for AVPictureType
impl PartialOrd for AVPictureType
impl Copy for AVPictureType
impl Eq for AVPictureType
impl StructuralPartialEq for AVPictureType
Auto Trait Implementations§
impl Freeze for AVPictureType
impl RefUnwindSafe for AVPictureType
impl Send for AVPictureType
impl Sync for AVPictureType
impl Unpin for AVPictureType
impl UnwindSafe for AVPictureType
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