#[repr(transparent)]pub struct AVPixelFormat(pub i32);
Expand description
Pixel formats used in FFmpeg’s AVPixelFormat
enumeration.
This enum represents different ways pixels can be stored in memory, including packed, planar, and hardware-accelerated formats.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/pixfmt_8h.html
Tuple Fields§
§0: i32
Implementations§
Source§impl AVPixelFormat
impl AVPixelFormat
Sourcepub const None: Self
pub const None: Self
No pixel format specified or unknown format.
Corresponds to AV_PIX_FMT_NONE
.
Sourcepub const Yuv420p: Self
pub const Yuv420p: Self
Planar YUV 4:2:0 format, 12 bits per pixel.
Each plane is stored separately, with 1 Cr & Cb sample per 2x2 Y samples.
Corresponds to AV_PIX_FMT_YUV420P
.
Sourcepub const Yuyv422: Self
pub const Yuyv422: Self
Packed YUV 4:2:2 format, 16 bits per pixel.
Stored as Y0 Cb Y1 Cr.
Corresponds to AV_PIX_FMT_Yuyv422
.
Sourcepub const Rgb24: Self
pub const Rgb24: Self
Packed RGB format, 8 bits per channel (24bpp).
Stored as RGBRGB…
Corresponds to AV_PIX_FMT_RGB24
.
Sourcepub const Bgr24: Self
pub const Bgr24: Self
Packed BGR format, 8 bits per channel (24bpp).
Stored as BGRBGR…
Corresponds to AV_PIX_FMT_BGR24
.
Sourcepub const Yuv422p: Self
pub const Yuv422p: Self
Planar YUV 4:2:2 format, 16 bits per pixel.
Each plane is stored separately, with 1 Cr & Cb sample per 2x1 Y samples.
Corresponds to AV_PIX_FMT_YUV422P
.
Sourcepub const Yuv444p: Self
pub const Yuv444p: Self
Planar YUV 4:4:4 format, 24 bits per pixel.
Each plane is stored separately, with 1 Cr & Cb sample per 1x1 Y samples.
Corresponds to AV_PIX_FMT_YUV444P
.
Sourcepub const Gray8: Self
pub const Gray8: Self
8-bit grayscale format, 8 bits per pixel.
Corresponds to AV_PIX_FMT_GRAY8
.
Sourcepub const MonoWhite: Self
pub const MonoWhite: Self
1-bit monochrome format, 0 is white, 1 is black.
Pixels are stored in bytes, ordered from the most significant bit.
Corresponds to AV_PIX_FMT_MonoWhite
.
Sourcepub const MonoBlack: Self
pub const MonoBlack: Self
1-bit monochrome format, 0 is black, 1 is white.
Pixels are stored in bytes, ordered from the most significant bit.
Corresponds to AV_PIX_FMT_MonoBlack
.
Sourcepub const Rgb565Be: Self
pub const Rgb565Be: Self
Packed RGB 5:6:5 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_RGB565BE
Sourcepub const Rgb565Le: Self
pub const Rgb565Le: Self
Packed RGB 5:6:5 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_RGB565LE
Sourcepub const Rgb555Be: Self
pub const Rgb555Be: Self
Packed RGB 5:5:5 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_RGB555BE
Sourcepub const Rgb555Le: Self
pub const Rgb555Le: Self
Packed RGB 5:5:5 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_RGB555LE
Sourcepub const Bgr565Be: Self
pub const Bgr565Be: Self
Packed BGR 5:6:5 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_BGR565BE
Sourcepub const Bgr565Le: Self
pub const Bgr565Le: Self
Packed BGR 5:6:5 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_BGR565LE
Sourcepub const Bgr555Be: Self
pub const Bgr555Be: Self
Packed BGR 5:5:5 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_BGR555BE
Sourcepub const Bgr555Le: Self
pub const Bgr555Le: Self
Packed BGR 5:5:5 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_BGR555LE
Sourcepub const Yuv420p16Be: Self
pub const Yuv420p16Be: Self
Planar YUV 4:2:0 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_YUV420P16BE
Sourcepub const Yuv420p16Le: Self
pub const Yuv420p16Le: Self
Planar YUV 4:2:0 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_YUV420P16LE
Sourcepub const Yuv422p16Be: Self
pub const Yuv422p16Be: Self
Planar YUV 4:2:2 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_YUV422P16BE
Sourcepub const Yuv422p16Le: Self
pub const Yuv422p16Le: Self
Planar YUV 4:2:2 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_YUV422P16LE
Sourcepub const Yuv444p16Be: Self
pub const Yuv444p16Be: Self
Planar YUV 4:4:4 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_YUV444P16BE
Sourcepub const Yuv444p16Le: Self
pub const Yuv444p16Le: Self
Planar YUV 4:4:4 format, 16 bits per pixel.
Corresponds to: AV_PIX_FMT_YUV444P16LE
Sourcepub const Rgb48Be: Self
pub const Rgb48Be: Self
Packed RGB 16:16:16 format, 48 bits per pixel.
Corresponds to: AV_PIX_FMT_RGB48BE
Sourcepub const Rgb48Le: Self
pub const Rgb48Le: Self
Packed RGB 16:16:16 format, 48 bits per pixel.
Corresponds to: AV_PIX_FMT_RGB48LE
Sourcepub const Rgba64Be: Self
pub const Rgba64Be: Self
Packed RGBA 16:16:16:16 format, 64 bits per pixel.
Corresponds to: AV_PIX_FMT_RGBA64BE
Sourcepub const Rgba64Le: Self
pub const Rgba64Le: Self
Packed RGBA 16:16:16:16 format, 64 bits per pixel.
Corresponds to: AV_PIX_FMT_RGBA64LE
Sourcepub const Bgra64Be: Self
pub const Bgra64Be: Self
Packed BGRA 16:16:16:16 format, 64 bits per pixel.
Corresponds to: AV_PIX_FMT_BGRA64BE
Sourcepub const Bgra64Le: Self
pub const Bgra64Le: Self
Packed BGRA 16:16:16:16 format, 64 bits per pixel.
Corresponds to: AV_PIX_FMT_BGRA64LE
Trait Implementations§
Source§impl Clone for AVPixelFormat
impl Clone for AVPixelFormat
Source§fn clone(&self) -> AVPixelFormat
fn clone(&self) -> AVPixelFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more