#[repr(u32)]
pub enum FourCc {
Show 219 variants Rgb332, Rgb444, Argb444, Xrgb444, Rgba444, Rgbx444, Abgr444, Xbgr444, Bgra444, Bgrx444, Rgb555, Argb555, Xrgb555, Rgba555, Rgbx555, Abgr555, Xbgr555, Bgra555, Bgrx555, Rgb565, Rgb555x, Argb555x, Xrgb555x, Rgb565x, Bgr666, Bgr24, Rgb24, Bgr32, Abgr32, Xbgr32, Bgra32, Bgrx32, Rgb32, Rgba32, Rgbx32, Argb32, Xrgb32, Grey, Y4, Y6, Y10, Y12, Y14, Y16, Y16be, Y10bpack, Y10p, Ipu3Y10, Pal8, Uv8, Yuyv, Yyuv, Yvyu, Uyvy, Vyuy, Y41p, Yuv444, Yuv555, Yuv565, Yuv24, Yuv32, Ayuv32, Xyuv32, Vuya32, Vuyx32, M420, Nv12, Nv21, Nv16, Nv61, Nv24, Nv42, Nv12m, Nv21m, Nv16m, Nv61m, Yuv410, Yvu410, Yuv411p, Yuv420, Yvu420, Yuv422p, Yuv420m, Yvu420m, Yuv422m, Yvu422m, Yuv444m, Yvu444m, Nv12_4l4, Nv12_16l16, Nv12_32l32, Nv12mt, Nv12mt16x16, Nv12m8l128, Nv12m10be8l128, Sbggr8, Sgbrg8, Sgrbg8, Srggb8, Sbggr10, Sgbrg10, Sgrbg10, Srggb10, Sbggr10p, Sgbrg10p, Sgrbg10p, Srggb10p, Sbggr10alaw8, Sgbrg10alaw8, Sgrbg10alaw8, Srggb10alaw8, Sbggr10dpcm8, Sgbrg10dpcm8, Sgrbg10dpcm8, Srggb10dpcm8, Sbggr12, Sgbrg12, Sgrbg12, Srggb12, Sbggr12p, Sgbrg12p, Sgrbg12p, Srggb12p, Sbggr14, Sgbrg14, Sgrbg14, Srggb14, Sbggr14p, Sgbrg14p, Sgrbg14p, Srggb14p, Sbggr16, Sgbrg16, Sgrbg16, Srggb16, Hsv24, Hsv32, Mjpeg, Jpeg, Dv, Mpeg, H264, H264NoSc, H264Mvc, H263, Mpeg1, Mpeg2, Mpeg2Slice, Mpeg4, Xvid, Vc1AnnexG, Vc1AnnexL, Vp8, Vp8Frame, Vp9, Vp9Frame, Hevc, Fwht, FwhtStateless, H264Slice, Cpia1, Wnva, Sn9c10x, Sn9c20xI420, Pwc1, Pwc2, Et61x251, Spca501, Spca505, Spca508, Spca561, Pac207, Mr97310a, Jl2005bcd, Sn9c2028, Sq905c, Pjpg, Ov511, Ov518, Stv0680, Tm6000, CitYyvyuy, Konica420, Jpgl, Se401, S5cUyvyJpg, Y8i, Y12i, Z16, Mt21c, Mm21, Inzi, Cnf4, Hi240, Qc08c, Qc10c, Ipu3Sbggr10, Ipu3Sgbrg10, Ipu3Sgrbg10, Ipu3Srggb10, SdrCu8, SdrCu16le, SdrCs8, SdrCs14le, SdrRu12le, SdrPcu16be, SdrPcu18be, SdrPcu20be, TchDeltaTd16, TchDeltaTd08, TchTu16, TchTu08, MetaVsp1Hgo, MetaVsp1Hgt, MetaUvc, MetaD4xx, MetaVivid, MetaRkIsp1Params, MetaRkIsp1Stat3a,
}

Variants§

§

Rgb332

8 RGB-3-3-2

§

Rgb444

16 xxxxrrrr ggggbbbb

§

Argb444

16 aaaarrrr ggggbbbb

§

Xrgb444

16 xxxxrrrr ggggbbbb

§

Rgba444

16 rrrrgggg bbbbaaaa

§

Rgbx444

16 rrrrgggg bbbbxxxx

§

Abgr444

16 aaaabbbb ggggrrrr

§

Xbgr444

16 xxxxbbbb ggggrrrr

§

Bgra444

16 bbbbgggg rrrraaaa

§

Bgrx444

16 bbbbgggg rrrrxxxx

§

Rgb555

16 RGB-5-5-5

§

Argb555

16 ARGB-1-5-5-5

§

Xrgb555

16 XRGB-1-5-5-5

§

Rgba555

16 RGBA-5-5-5-1

§

Rgbx555

16 RGBX-5-5-5-1

§

Abgr555

16 ABGR-1-5-5-5

§

Xbgr555

16 XBGR-1-5-5-5

§

Bgra555

16 BGRA-5-5-5-1

§

Bgrx555

16 BGRX-5-5-5-1

§

Rgb565

16 RGB-5-6-5

§

Rgb555x

16 RGB-5-5-5 BE

§

Argb555x

16 ARGB-5-5-5 BE

§

Xrgb555x

16 XRGB-5-5-5 BE

§

Rgb565x

16 RGB-5-6-5 BE

§

Bgr666

18 BGR-6-6-6

§

Bgr24

24 BGR-8-8-8

§

Rgb24

24 RGB-8-8-8

§

Bgr32

32 BGR-8-8-8-8

§

Abgr32

32 BGRA-8-8-8-8

§

Xbgr32

32 BGRX-8-8-8-8

§

Bgra32

32 ABGR-8-8-8-8

§

Bgrx32

32 XBGR-8-8-8-8

§

Rgb32

32 RGB-8-8-8-8

§

Rgba32

32 RGBA-8-8-8-8

§

Rgbx32

32 RGBX-8-8-8-8

§

Argb32

32 ARGB-8-8-8-8

§

Xrgb32

32 XRGB-8-8-8-8

§

Grey

8 Greyscale

§

Y4

4 Greyscale

§

Y6

6 Greyscale

§

Y10

10 Greyscale

§

Y12

12 Greyscale

§

Y14

14 Greyscale

§

Y16

16 Greyscale

§

Y16be

16 Greyscale BE

§

Y10bpack

10 Greyscale bit-packed

§

Y10p

10 Greyscale, MIPI RAW10 packed

§

Ipu3Y10

IPU3 packed 10-bit greyscale

§

Pal8

8 8-bit palette

§

Uv8

8 UV 4:4

§

Yuyv

16 YUV 4:2:2

§

Yyuv

16 YUV 4:2:2

§

Yvyu

16 YVU 4:2:2

§

Uyvy

16 YUV 4:2:2

§

Vyuy

16 YUV 4:2:2

§

Y41p

12 YUV 4:1:1

§

Yuv444

16 xxxxyyyy uuuuvvvv

§

Yuv555

16 YUV-5-5-5

§

Yuv565

16 YUV-5-6-5

§

Yuv24

24 YUV-8-8-8

§

Yuv32

32 YUV-8-8-8-8

§

Ayuv32

32 AYUV-8-8-8-8

§

Xyuv32

32 XYUV-8-8-8-8

§

Vuya32

32 VUYA-8-8-8-8

§

Vuyx32

32 VUYX-8-8-8-8

§

M420

12 YUV 4:2:0 2 lines y, 1 line uv interleaved

§

Nv12

12 Y/CbCr 4:2:0

§

Nv21

12 Y/CrCb 4:2:0

§

Nv16

16 Y/CbCr 4:2:2

§

Nv61

16 Y/CrCb 4:2:2

§

Nv24

24 Y/CbCr 4:4:4

§

Nv42

24 Y/CrCb 4:4:4

§

Nv12m

12 Y/CbCr 4:2:0

§

Nv21m

21 Y/CrCb 4:2:0

§

Nv16m

16 Y/CbCr 4:2:2

§

Nv61m

16 Y/CrCb 4:2:2

§

Yuv410

9 YUV 4:1:0

§

Yvu410

9 YVU 4:1:0

§

Yuv411p

12 YVU411 planar

§

Yuv420

12 YUV 4:2:0

§

Yvu420

12 YVU 4:2:0

§

Yuv422p

16 YVU422 planar

§

Yuv420m

12 YUV420 planar

§

Yvu420m

12 YVU420 planar

§

Yuv422m

16 YUV422 planar

§

Yvu422m

16 YVU422 planar

§

Yuv444m

24 YUV444 planar

§

Yvu444m

24 YVU444 planar

§

Nv12_4l4

12 Y/CbCr 4:2:0 4x4 tiles

§

Nv12_16l16

12 Y/CbCr 4:2:0 16x16 tiles

§

Nv12_32l32

12 Y/CbCr 4:2:0 32x32 tiles

§

Nv12mt

12 Y/CbCr 4:2:0 64x32 tiles

§

Nv12mt16x16

12 Y/CbCr 4:2:0 16x16 tiles

§

Nv12m8l128

Y/CbCr 4:2:0 8x128 tiles

§

Nv12m10be8l128

Y/CbCr 4:2:0 10-bit 8x128 tiles

§

Sbggr8

8 BGBG.. GRGR..

§

Sgbrg8

8 GBGB.. RGRG..

§

Sgrbg8

8 GRGR.. BGBG..

§

Srggb8

8 RGRG.. GBGB..

§

Sbggr10

10 BGBG.. GRGR..

§

Sgbrg10

10 GBGB.. RGRG..

§

Sgrbg10

10 GRGR.. BGBG..

§

Srggb10

10 RGRG.. GBGB..

§

Sbggr10p

§

Sgbrg10p

§

Sgrbg10p

§

Srggb10p

§

Sbggr10alaw8

§

Sgbrg10alaw8

§

Sgrbg10alaw8

§

Srggb10alaw8

§

Sbggr10dpcm8

§

Sgbrg10dpcm8

§

Sgrbg10dpcm8

§

Srggb10dpcm8

§

Sbggr12

12 BGBG.. GRGR..

§

Sgbrg12

12 GBGB.. RGRG..

§

Sgrbg12

12 GRGR.. BGBG..

§

Srggb12

12 RGRG.. GBGB..

§

Sbggr12p

§

Sgbrg12p

§

Sgrbg12p

§

Srggb12p

§

Sbggr14

14 BGBG.. GRGR..

§

Sgbrg14

14 GBGB.. RGRG..

§

Sgrbg14

14 GRGR.. BGBG..

§

Srggb14

14 RGRG.. GBGB..

§

Sbggr14p

§

Sgbrg14p

§

Sgrbg14p

§

Srggb14p

§

Sbggr16

16 BGBG.. GRGR..

§

Sgbrg16

16 GBGB.. RGRG..

§

Sgrbg16

16 GRGR.. BGBG..

§

Srggb16

16 RGRG.. GBGB..

§

Hsv24

§

Hsv32

§

Mjpeg

Motion-JPEG

§

Jpeg

JFIF JPEG

§

Dv

1394

§

Mpeg

MPEG-1/2/4 Multiplexed

§

H264

H264 with start codes

§

H264NoSc

H264 without start codes

§

H264Mvc

H264 MVC

§

H263

H263

§

Mpeg1

MPEG-1 ES

§

Mpeg2

MPEG-2 ES

§

Mpeg2Slice

MPEG-2 parsed slice data

§

Mpeg4

MPEG-4 part 2 ES

§

Xvid

Xvid

§

Vc1AnnexG

SMPTE 421M Annex G compliant stream

§

Vc1AnnexL

SMPTE 421M Annex L compliant stream

§

Vp8

VP8

§

Vp8Frame

VP8 parsed frame

§

Vp9

VP9

§

Vp9Frame

VP9 parsed frame

§

Hevc

HEVC aka H.265

§

Fwht

Fast Walsh Hadamard Transform (vicodec)

§

FwhtStateless

Stateless FWHT (vicodec)

§

H264Slice

H264 parsed slices

§

Cpia1

cpia1 YUV

§

Wnva

Winnov hw compress

§

Sn9c10x

SN9C10x compression

§

Sn9c20xI420

SN9C20x YUV 4:2:0

§

Pwc1

pwc older webcam

§

Pwc2

pwc newer webcam

§

Et61x251

ET61X251 compression

§

Spca501

YUYV per line

§

Spca505

YYUV per line

§

Spca508

YUVY per line

§

Spca561

compressed GBRG bayer

§

Pac207

compressed BGGR bayer

§

Mr97310a

compressed BGGR bayer

§

Jl2005bcd

compressed RGGB bayer

§

Sn9c2028

compressed GBRG bayer

§

Sq905c

compressed RGGB bayer

§

Pjpg

Pixart 73xx JPEG

§

Ov511

ov511 JPEG

§

Ov518

ov518 JPEG

§

Stv0680

stv0680 bayer

§

Tm6000

tm5600/tm60x0

§

CitYyvyuy

one line of Y then 1 line of VYUY

§

Konica420

YUV420 planar in blocks of 256 pixels

§

Jpgl

JPEG-Lite

§

Se401

se401 janggu compressed rgb

§

S5cUyvyJpg

S5C73M3 interleaved UYVY/JPEG

§

Y8i

Greyscale 8-bit L/R interleaved

§

Y12i

Greyscale 12-bit L/R interleaved

§

Z16

Depth data 16-bit

§

Mt21c

Mediatek compressed block mode

§

Mm21

Mediatek 8-bit block mode, two non-contiguous planes

§

Inzi

Intel Planar Greyscale 10-bit and Depth 16-bit

§

Cnf4

Intel 4-bit packed depth confidence information

§

Hi240

BTTV 8-bit dithered RGB

§

Qc08c

Qualcomm 8-bit compressed

§

Qc10c

Qualcomm 10-bit compressed

§

Ipu3Sbggr10

IPU3 packed 10-bit BGGR bayer

§

Ipu3Sgbrg10

IPU3 packed 10-bit GBRG bayer

§

Ipu3Sgrbg10

IPU3 packed 10-bit GRBG bayer

§

Ipu3Srggb10

IPU3 packed 10-bit RGGB bayer

§

SdrCu8

IQ u8

§

SdrCu16le

IQ u16le

§

SdrCs8

complex s8

§

SdrCs14le

complex s14le

§

SdrRu12le

real u12le

§

SdrPcu16be

planar complex u16be

§

SdrPcu18be

planar complex u18be

§

SdrPcu20be

planar complex u20be

§

TchDeltaTd16

16-bit signed deltas

§

TchDeltaTd08

8-bit signed deltas

§

TchTu16

16-bit unsigned touch data

§

TchTu08

8-bit unsigned touch data

§

MetaVsp1Hgo

R-Car VSP1 1-D Histogram

§

MetaVsp1Hgt

R-Car VSP1 2-D Histogram

§

MetaUvc

UVC Payload Header metadata

§

MetaD4xx

D4XX Payload Header metadata

§

MetaVivid

Vivid Metadata

§

MetaRkIsp1Params

Rockchip ISP1 3A Parameters

§

MetaRkIsp1Stat3a

Rockchip ISP1 3A Statistics

Implementations§

source§

impl FourCc

source

pub const ALL: &[Self] = _

Slice of all variants

source§

impl FourCc

source

pub fn is_rgb(self) -> bool

source

pub fn is_ycbcr(self) -> bool

source

pub fn is_hsv(self) -> bool

Trait Implementations§

source§

impl AsRef<[u8]> for FourCc

source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<[u8; 4]> for FourCc

source§

fn as_ref(&self) -> &[u8; 4]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<str> for FourCc

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<u32> for FourCc

source§

fn as_ref(&self) -> &u32

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for FourCc

source§

fn clone(&self) -> FourCc

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FourCc

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for FourCc

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<FourCc> for ColorSpace

source§

fn from(pixfmt: FourCc) -> Self

Converts to this type from the input type.
source§

impl From<FourCc> for PixFormat

source§

fn from(pixel_format: FourCc) -> Self

Converts to this type from the input type.
source§

impl FromStr for FourCc

§

type Err = ()

The associated error which can be returned from parsing.
source§

fn from_str(src: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl PartialEq<FourCc> for FourCc

source§

fn eq(&self, other: &FourCc) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> TryFrom<&'a [u8]> for FourCc

§

type Error = &'a [u8]

The type returned in the event of a conversion error.
source§

fn try_from(fourcc: &'a [u8]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a [u8; 4]> for FourCc

§

type Error = &'a [u8; 4]

The type returned in the event of a conversion error.
source§

fn try_from(fourcc: &'a [u8; 4]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for FourCc

§

type Error = &'a str

The type returned in the event of a conversion error.
source§

fn try_from(fourcc: &'a str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<[u8; 4]> for FourCc

§

type Error = [u8; 4]

The type returned in the event of a conversion error.
source§

fn try_from(fourcc: [u8; 4]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u32> for FourCc

§

type Error = u32

The type returned in the event of a conversion error.
source§

fn try_from(fourcc: u32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for FourCc

source§

impl Eq for FourCc

source§

impl StructuralEq for FourCc

source§

impl StructuralPartialEq for FourCc

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.