Enum FourCc

Source
#[repr(u32)]
pub enum FourCc {
Show 219 variants Rgb332 = 826_427_218, Rgb444 = 875_836_498, Argb444 = 842_093_121, Xrgb444 = 842_093_144, Rgba444 = 842_088_786, Rgbx444 = 842_094_674, Abgr444 = 842_089_025, Xbgr444 = 842_089_048, Bgra444 = 842_088_775, Bgrx444 = 842_094_658, Rgb555 = 1_329_743_698, Argb555 = 892_424_769, Xrgb555 = 892_424_792, Rgba555 = 892_420_434, Rgbx555 = 892_426_322, Abgr555 = 892_420_673, Xbgr555 = 892_420_696, Bgra555 = 892_420_418, Bgrx555 = 892_426_306, Rgb565 = 1_346_520_914, Rgb555x = 1_363_298_130, Argb555x = 3_039_908_417, Xrgb555x = 3_039_908_440, Rgb565x = 1_380_075_346, Bgr666 = 1_213_351_746, Bgr24 = 861_030_210, Rgb24 = 859_981_650, Bgr32 = 877_807_426, Abgr32 = 875_713_089, Xbgr32 = 875_713_112, Bgra32 = 875_708_754, Bgrx32 = 875_714_642, Rgb32 = 876_758_866, Rgba32 = 875_708_993, Rgbx32 = 875_709_016, Argb32 = 875_708_738, Xrgb32 = 875_714_626, Grey = 1_497_715_271, Y4 = 540_291_161, Y6 = 540_422_233, Y10 = 540_029_273, Y12 = 540_160_345, Y14 = 540_291_417, Y16 = 540_422_489, Y16be = 2_687_906_137, Y10bpack = 1_110_454_617, Y10p = 1_345_335_641, Ipu3Y10 = 2_033_414_249, Pal8 = 944_521_552, Uv8 = 540_563_029, Yuyv = 1_448_695_129, Yyuv = 1_448_434_009, Yvyu = 1_431_918_169, Uyvy = 1_498_831_189, Vyuy = 1_498_765_654, Y41p = 1_345_401_945, Yuv444 = 875_836_505, Yuv555 = 1_331_058_009, Yuv565 = 1_347_835_225, Yuv24 = 861_295_961, Yuv32 = 878_073_177, Ayuv32 = 1_448_433_985, Xyuv32 = 1_448_434_008, Vuya32 = 1_096_373_590, Vuyx32 = 1_482_249_558, M420 = 808_596_557, Nv12 = 842_094_158, Nv21 = 825_382_478, Nv16 = 909_203_022, Nv61 = 825_644_622, Nv24 = 875_714_126, Nv42 = 842_290_766, Nv12m = 842_091_854, Nv21m = 825_380_174, Nv16m = 909_200_718, Nv61m = 825_642_318, Yuv410 = 961_959_257, Yvu410 = 961_893_977, Yuv411p = 1_345_401_140, Yuv420 = 842_093_913, Yvu420 = 842_094_169, Yuv422p = 1_345_466_932, Yuv420m = 842_091_865, Yvu420m = 825_380_185, Yuv422m = 909_200_729, Yvu422m = 825_642_329, Yuv444m = 875_711_833, Yvu444m = 842_288_473, Nv12_4l4 = 842_093_654, Nv12_16l16 = 842_091_848, Nv12_32l32 = 842_093_651, Nv12mt = 842_091_860, Nv12mt16x16 = 842_091_862, Nv12m8l128 = 842_088_782, Nv12m10be8l128 = 2_989_577_294, Sbggr8 = 825_770_306, Sgbrg8 = 1_196_573_255, Sgrbg8 = 1_195_528_775, Srggb8 = 1_111_967_570, Sbggr10 = 808_535_874, Sgbrg10 = 808_534_599, Sgrbg10 = 808_534_338, Srggb10 = 808_535_890, Sbggr10p = 1_094_795_888, Sgbrg10p = 1_094_797_168, Sgrbg10p = 1_094_805_360, Srggb10p = 1_094_799_984, Sbggr10alaw8 = 943_800_929, Sgbrg10alaw8 = 943_802_209, Sgrbg10alaw8 = 943_810_401, Srggb10alaw8 = 943_805_025, Sbggr10dpcm8 = 943_800_930, Sgbrg10dpcm8 = 943_802_210, Sgrbg10dpcm8 = 808_535_106, Srggb10dpcm8 = 943_805_026, Sbggr12 = 842_090_306, Sgbrg12 = 842_089_031, Sgrbg12 = 842_088_770, Srggb12 = 842_090_322, Sbggr12p = 1_128_481_392, Sgbrg12p = 1_128_482_672, Sgrbg12p = 1_128_490_864, Srggb12p = 1_128_485_488, Sbggr14 = 875_644_738, Sgbrg14 = 875_643_463, Sgrbg14 = 875_647_559, Srggb14 = 875_644_754, Sbggr14p = 1_162_166_896, Sgbrg14p = 1_162_168_176, Sgrbg14p = 1_162_176_368, Srggb14p = 1_162_170_992, Sbggr16 = 844_257_602, Sgbrg16 = 909_197_895, Sgrbg16 = 909_201_991, Srggb16 = 909_199_186, Hsv24 = 861_295_432, Hsv32 = 878_072_648, Mjpeg = 1_196_444_237, Jpeg = 1_195_724_874, Dv = 1_685_288_548, Mpeg = 1_195_724_877, H264 = 875_967_048, H264NoSc = 826_496_577, H264Mvc = 875_967_053, H263 = 859_189_832, Mpeg1 = 826_757_197, Mpeg2 = 843_534_413, Mpeg2Slice = 1_395_803_981, Mpeg4 = 877_088_845, Xvid = 1_145_656_920, Vc1AnnexG = 1_194_410_838, Vc1AnnexL = 1_278_296_918, Vp8 = 808_996_950, Vp8Frame = 1_178_095_702, Vp9 = 809_062_486, Vp9Frame = 1_178_161_238, Hevc = 1_129_727_304, Fwht = 1_414_027_078, FwhtStateless = 1_213_679_187, H264Slice = 875_967_059, Cpia1 = 1_095_323_715, Wnva = 1_096_175_191, Sn9c10x = 808_532_307, Sn9c20xI420 = 808_597_843, Pwc1 = 826_496_848, Pwc2 = 843_274_064, Et61x251 = 892_483_141, Spca501 = 825_242_963, Spca505 = 892_351_827, Spca508 = 942_683_475, Spca561 = 825_636_179, Pac207 = 925_905_488, Mr97310a = 808_530_765, Jl2005bcd = 808_602_698, Sn9c2028 = 1_481_527_123, Sq905c = 1_127_559_225, Pjpg = 1_196_444_240, Ov511 = 825_308_495, Ov518 = 942_749_007, Stv0680 = 808_990_291, Tm6000 = 808_865_108, CitYyvyuy = 1_448_364_355, Konica420 = 1_229_868_875, Jpgl = 1_279_742_026, Se401 = 825_242_707, S5cUyvyJpg = 1_229_141_331, Y8i = 541_669_465, Y12i = 1_228_026_201, Z16 = 540_422_490, Mt21c = 825_381_965, Mm21 = 825_380_173, Inzi = 1_230_655_049, Cnf4 = 877_022_787, Hi240 = 875_710_792, Qc08c = 1_127_755_857, Qc10c = 1_127_231_825, Ipu3Sbggr10 = 1_647_538_281, Ipu3Sgbrg10 = 1_731_424_361, Ipu3Sgrbg10 = 1_194_553_449, Ipu3Srggb10 = 1_915_973_737, SdrCu8 = 942_691_651, SdrCu16le = 909_202_755, SdrCs8 = 942_691_139, SdrCs14le = 875_647_811, SdrRu12le = 842_093_906, SdrPcu16be = 909_198_160, SdrPcu18be = 942_752_592, SdrPcu20be = 808_600_400, TchDeltaTd16 = 909_198_420, TchDeltaTd08 = 942_687_316, TchTu16 = 909_202_772, TchTu08 = 942_691_668, MetaVsp1Hgo = 1_213_223_766, MetaVsp1Hgt = 1_414_550_358, MetaUvc = 1_212_372_565, MetaD4xx = 1_482_175_556, MetaVivid = 1_146_505_558, MetaRkIsp1Params = 1_345_407_826, MetaRkIsp1Stat3a = 1_395_739_474,
}

Variants§

§

Rgb332 = 826_427_218

8 RGB-3-3-2

§

Rgb444 = 875_836_498

16 xxxxrrrr ggggbbbb

§

Argb444 = 842_093_121

16 aaaarrrr ggggbbbb

§

Xrgb444 = 842_093_144

16 xxxxrrrr ggggbbbb

§

Rgba444 = 842_088_786

16 rrrrgggg bbbbaaaa

§

Rgbx444 = 842_094_674

16 rrrrgggg bbbbxxxx

§

Abgr444 = 842_089_025

16 aaaabbbb ggggrrrr

§

Xbgr444 = 842_089_048

16 xxxxbbbb ggggrrrr

§

Bgra444 = 842_088_775

16 bbbbgggg rrrraaaa

§

Bgrx444 = 842_094_658

16 bbbbgggg rrrrxxxx

§

Rgb555 = 1_329_743_698

16 RGB-5-5-5

§

Argb555 = 892_424_769

16 ARGB-1-5-5-5

§

Xrgb555 = 892_424_792

16 XRGB-1-5-5-5

§

Rgba555 = 892_420_434

16 RGBA-5-5-5-1

§

Rgbx555 = 892_426_322

16 RGBX-5-5-5-1

§

Abgr555 = 892_420_673

16 ABGR-1-5-5-5

§

Xbgr555 = 892_420_696

16 XBGR-1-5-5-5

§

Bgra555 = 892_420_418

16 BGRA-5-5-5-1

§

Bgrx555 = 892_426_306

16 BGRX-5-5-5-1

§

Rgb565 = 1_346_520_914

16 RGB-5-6-5

§

Rgb555x = 1_363_298_130

16 RGB-5-5-5 BE

§

Argb555x = 3_039_908_417

16 ARGB-5-5-5 BE

§

Xrgb555x = 3_039_908_440

16 XRGB-5-5-5 BE

§

Rgb565x = 1_380_075_346

16 RGB-5-6-5 BE

§

Bgr666 = 1_213_351_746

18 BGR-6-6-6

§

Bgr24 = 861_030_210

24 BGR-8-8-8

§

Rgb24 = 859_981_650

24 RGB-8-8-8

§

Bgr32 = 877_807_426

32 BGR-8-8-8-8

§

Abgr32 = 875_713_089

32 BGRA-8-8-8-8

§

Xbgr32 = 875_713_112

32 BGRX-8-8-8-8

§

Bgra32 = 875_708_754

32 ABGR-8-8-8-8

§

Bgrx32 = 875_714_642

32 XBGR-8-8-8-8

§

Rgb32 = 876_758_866

32 RGB-8-8-8-8

§

Rgba32 = 875_708_993

32 RGBA-8-8-8-8

§

Rgbx32 = 875_709_016

32 RGBX-8-8-8-8

§

Argb32 = 875_708_738

32 ARGB-8-8-8-8

§

Xrgb32 = 875_714_626

32 XRGB-8-8-8-8

§

Grey = 1_497_715_271

8 Greyscale

§

Y4 = 540_291_161

4 Greyscale

§

Y6 = 540_422_233

6 Greyscale

§

Y10 = 540_029_273

10 Greyscale

§

Y12 = 540_160_345

12 Greyscale

§

Y14 = 540_291_417

14 Greyscale

§

Y16 = 540_422_489

16 Greyscale

§

Y16be = 2_687_906_137

16 Greyscale BE

§

Y10bpack = 1_110_454_617

10 Greyscale bit-packed

§

Y10p = 1_345_335_641

10 Greyscale, MIPI RAW10 packed

§

Ipu3Y10 = 2_033_414_249

IPU3 packed 10-bit greyscale

§

Pal8 = 944_521_552

8 8-bit palette

§

Uv8 = 540_563_029

8 UV 4:4

§

Yuyv = 1_448_695_129

16 YUV 4:2:2

§

Yyuv = 1_448_434_009

16 YUV 4:2:2

§

Yvyu = 1_431_918_169

16 YVU 4:2:2

§

Uyvy = 1_498_831_189

16 YUV 4:2:2

§

Vyuy = 1_498_765_654

16 YUV 4:2:2

§

Y41p = 1_345_401_945

12 YUV 4:1:1

§

Yuv444 = 875_836_505

16 xxxxyyyy uuuuvvvv

§

Yuv555 = 1_331_058_009

16 YUV-5-5-5

§

Yuv565 = 1_347_835_225

16 YUV-5-6-5

§

Yuv24 = 861_295_961

24 YUV-8-8-8

§

Yuv32 = 878_073_177

32 YUV-8-8-8-8

§

Ayuv32 = 1_448_433_985

32 AYUV-8-8-8-8

§

Xyuv32 = 1_448_434_008

32 XYUV-8-8-8-8

§

Vuya32 = 1_096_373_590

32 VUYA-8-8-8-8

§

Vuyx32 = 1_482_249_558

32 VUYX-8-8-8-8

§

M420 = 808_596_557

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

§

Nv12 = 842_094_158

12 Y/CbCr 4:2:0

§

Nv21 = 825_382_478

12 Y/CrCb 4:2:0

§

Nv16 = 909_203_022

16 Y/CbCr 4:2:2

§

Nv61 = 825_644_622

16 Y/CrCb 4:2:2

§

Nv24 = 875_714_126

24 Y/CbCr 4:4:4

§

Nv42 = 842_290_766

24 Y/CrCb 4:4:4

§

Nv12m = 842_091_854

12 Y/CbCr 4:2:0

§

Nv21m = 825_380_174

21 Y/CrCb 4:2:0

§

Nv16m = 909_200_718

16 Y/CbCr 4:2:2

§

Nv61m = 825_642_318

16 Y/CrCb 4:2:2

§

Yuv410 = 961_959_257

9 YUV 4:1:0

§

Yvu410 = 961_893_977

9 YVU 4:1:0

§

Yuv411p = 1_345_401_140

12 YVU411 planar

§

Yuv420 = 842_093_913

12 YUV 4:2:0

§

Yvu420 = 842_094_169

12 YVU 4:2:0

§

Yuv422p = 1_345_466_932

16 YVU422 planar

§

Yuv420m = 842_091_865

12 YUV420 planar

§

Yvu420m = 825_380_185

12 YVU420 planar

§

Yuv422m = 909_200_729

16 YUV422 planar

§

Yvu422m = 825_642_329

16 YVU422 planar

§

Yuv444m = 875_711_833

24 YUV444 planar

§

Yvu444m = 842_288_473

24 YVU444 planar

§

Nv12_4l4 = 842_093_654

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

§

Nv12_16l16 = 842_091_848

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

§

Nv12_32l32 = 842_093_651

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

§

Nv12mt = 842_091_860

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

§

Nv12mt16x16 = 842_091_862

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

§

Nv12m8l128 = 842_088_782

Y/CbCr 4:2:0 8x128 tiles

§

Nv12m10be8l128 = 2_989_577_294

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

§

Sbggr8 = 825_770_306

8 BGBG.. GRGR..

§

Sgbrg8 = 1_196_573_255

8 GBGB.. RGRG..

§

Sgrbg8 = 1_195_528_775

8 GRGR.. BGBG..

§

Srggb8 = 1_111_967_570

8 RGRG.. GBGB..

§

Sbggr10 = 808_535_874

10 BGBG.. GRGR..

§

Sgbrg10 = 808_534_599

10 GBGB.. RGRG..

§

Sgrbg10 = 808_534_338

10 GRGR.. BGBG..

§

Srggb10 = 808_535_890

10 RGRG.. GBGB..

§

Sbggr10p = 1_094_795_888

§

Sgbrg10p = 1_094_797_168

§

Sgrbg10p = 1_094_805_360

§

Srggb10p = 1_094_799_984

§

Sbggr10alaw8 = 943_800_929

§

Sgbrg10alaw8 = 943_802_209

§

Sgrbg10alaw8 = 943_810_401

§

Srggb10alaw8 = 943_805_025

§

Sbggr10dpcm8 = 943_800_930

§

Sgbrg10dpcm8 = 943_802_210

§

Sgrbg10dpcm8 = 808_535_106

§

Srggb10dpcm8 = 943_805_026

§

Sbggr12 = 842_090_306

12 BGBG.. GRGR..

§

Sgbrg12 = 842_089_031

12 GBGB.. RGRG..

§

Sgrbg12 = 842_088_770

12 GRGR.. BGBG..

§

Srggb12 = 842_090_322

12 RGRG.. GBGB..

§

Sbggr12p = 1_128_481_392

§

Sgbrg12p = 1_128_482_672

§

Sgrbg12p = 1_128_490_864

§

Srggb12p = 1_128_485_488

§

Sbggr14 = 875_644_738

14 BGBG.. GRGR..

§

Sgbrg14 = 875_643_463

14 GBGB.. RGRG..

§

Sgrbg14 = 875_647_559

14 GRGR.. BGBG..

§

Srggb14 = 875_644_754

14 RGRG.. GBGB..

§

Sbggr14p = 1_162_166_896

§

Sgbrg14p = 1_162_168_176

§

Sgrbg14p = 1_162_176_368

§

Srggb14p = 1_162_170_992

§

Sbggr16 = 844_257_602

16 BGBG.. GRGR..

§

Sgbrg16 = 909_197_895

16 GBGB.. RGRG..

§

Sgrbg16 = 909_201_991

16 GRGR.. BGBG..

§

Srggb16 = 909_199_186

16 RGRG.. GBGB..

§

Hsv24 = 861_295_432

§

Hsv32 = 878_072_648

§

Mjpeg = 1_196_444_237

Motion-JPEG

§

Jpeg = 1_195_724_874

JFIF JPEG

§

Dv = 1_685_288_548

1394

§

Mpeg = 1_195_724_877

MPEG-1/2/4 Multiplexed

§

H264 = 875_967_048

H264 with start codes

§

H264NoSc = 826_496_577

H264 without start codes

§

H264Mvc = 875_967_053

H264 MVC

§

H263 = 859_189_832

H263

§

Mpeg1 = 826_757_197

MPEG-1 ES

§

Mpeg2 = 843_534_413

MPEG-2 ES

§

Mpeg2Slice = 1_395_803_981

MPEG-2 parsed slice data

§

Mpeg4 = 877_088_845

MPEG-4 part 2 ES

§

Xvid = 1_145_656_920

Xvid

§

Vc1AnnexG = 1_194_410_838

SMPTE 421M Annex G compliant stream

§

Vc1AnnexL = 1_278_296_918

SMPTE 421M Annex L compliant stream

§

Vp8 = 808_996_950

VP8

§

Vp8Frame = 1_178_095_702

VP8 parsed frame

§

Vp9 = 809_062_486

VP9

§

Vp9Frame = 1_178_161_238

VP9 parsed frame

§

Hevc = 1_129_727_304

HEVC aka H.265

§

Fwht = 1_414_027_078

Fast Walsh Hadamard Transform (vicodec)

§

FwhtStateless = 1_213_679_187

Stateless FWHT (vicodec)

§

H264Slice = 875_967_059

H264 parsed slices

§

Cpia1 = 1_095_323_715

cpia1 YUV

§

Wnva = 1_096_175_191

Winnov hw compress

§

Sn9c10x = 808_532_307

SN9C10x compression

§

Sn9c20xI420 = 808_597_843

SN9C20x YUV 4:2:0

§

Pwc1 = 826_496_848

pwc older webcam

§

Pwc2 = 843_274_064

pwc newer webcam

§

Et61x251 = 892_483_141

ET61X251 compression

§

Spca501 = 825_242_963

YUYV per line

§

Spca505 = 892_351_827

YYUV per line

§

Spca508 = 942_683_475

YUVY per line

§

Spca561 = 825_636_179

compressed GBRG bayer

§

Pac207 = 925_905_488

compressed BGGR bayer

§

Mr97310a = 808_530_765

compressed BGGR bayer

§

Jl2005bcd = 808_602_698

compressed RGGB bayer

§

Sn9c2028 = 1_481_527_123

compressed GBRG bayer

§

Sq905c = 1_127_559_225

compressed RGGB bayer

§

Pjpg = 1_196_444_240

Pixart 73xx JPEG

§

Ov511 = 825_308_495

ov511 JPEG

§

Ov518 = 942_749_007

ov518 JPEG

§

Stv0680 = 808_990_291

stv0680 bayer

§

Tm6000 = 808_865_108

tm5600/tm60x0

§

CitYyvyuy = 1_448_364_355

one line of Y then 1 line of VYUY

§

Konica420 = 1_229_868_875

YUV420 planar in blocks of 256 pixels

§

Jpgl = 1_279_742_026

JPEG-Lite

§

Se401 = 825_242_707

se401 janggu compressed rgb

§

S5cUyvyJpg = 1_229_141_331

S5C73M3 interleaved UYVY/JPEG

§

Y8i = 541_669_465

Greyscale 8-bit L/R interleaved

§

Y12i = 1_228_026_201

Greyscale 12-bit L/R interleaved

§

Z16 = 540_422_490

Depth data 16-bit

§

Mt21c = 825_381_965

Mediatek compressed block mode

§

Mm21 = 825_380_173

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

§

Inzi = 1_230_655_049

Intel Planar Greyscale 10-bit and Depth 16-bit

§

Cnf4 = 877_022_787

Intel 4-bit packed depth confidence information

§

Hi240 = 875_710_792

BTTV 8-bit dithered RGB

§

Qc08c = 1_127_755_857

Qualcomm 8-bit compressed

§

Qc10c = 1_127_231_825

Qualcomm 10-bit compressed

§

Ipu3Sbggr10 = 1_647_538_281

IPU3 packed 10-bit BGGR bayer

§

Ipu3Sgbrg10 = 1_731_424_361

IPU3 packed 10-bit GBRG bayer

§

Ipu3Sgrbg10 = 1_194_553_449

IPU3 packed 10-bit GRBG bayer

§

Ipu3Srggb10 = 1_915_973_737

IPU3 packed 10-bit RGGB bayer

§

SdrCu8 = 942_691_651

IQ u8

§

SdrCu16le = 909_202_755

IQ u16le

§

SdrCs8 = 942_691_139

complex s8

§

SdrCs14le = 875_647_811

complex s14le

§

SdrRu12le = 842_093_906

real u12le

§

SdrPcu16be = 909_198_160

planar complex u16be

§

SdrPcu18be = 942_752_592

planar complex u18be

§

SdrPcu20be = 808_600_400

planar complex u20be

§

TchDeltaTd16 = 909_198_420

16-bit signed deltas

§

TchDeltaTd08 = 942_687_316

8-bit signed deltas

§

TchTu16 = 909_202_772

16-bit unsigned touch data

§

TchTu08 = 942_691_668

8-bit unsigned touch data

§

MetaVsp1Hgo = 1_213_223_766

R-Car VSP1 1-D Histogram

§

MetaVsp1Hgt = 1_414_550_358

R-Car VSP1 2-D Histogram

§

MetaUvc = 1_212_372_565

UVC Payload Header metadata

§

MetaD4xx = 1_482_175_556

D4XX Payload Header metadata

§

MetaVivid = 1_146_505_558

Vivid Metadata

§

MetaRkIsp1Params = 1_345_407_826

Rockchip ISP1 3A Parameters

§

MetaRkIsp1Stat3a = 1_395_739_474

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

Source§

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 for FourCc

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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 StructuralPartialEq for FourCc

Auto Trait Implementations§

§

impl Freeze for FourCc

§

impl RefUnwindSafe for FourCc

§

impl Send for FourCc

§

impl Sync for FourCc

§

impl Unpin for FourCc

§

impl UnwindSafe for FourCc

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

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

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.