struct Pixel
Defined at line 17 of file ../../src/ui/scenic/lib/utils/pixel.h
Represents a Pixel using the sRGB color space.
Public Members
uint8_t blue
uint8_t green
uint8_t red
uint8_t alpha
Public Methods
void Pixel (uint8_tblue,uint8_tgreen,uint8_tred,uint8_talpha)
Defined at line 23 of file ../../src/ui/scenic/lib/utils/pixel.h
bool operator== (const Pixel & rhs)
Defined at line 28 of file ../../src/ui/scenic/lib/utils/pixel.h
Pixel FromUnormBgra (floatblue,floatgreen,floatred,floatalpha)
Defined at line 29 of file ../../src/ui/scenic/lib/utils/pixel.cc
Pixel FromVmo (const uint8_t *vmo_host,uint32_tstride,uint32_tx,uint32_ty,fuchsia_images2::PixelFormattype)
Defined at line 34 of file ../../src/ui/scenic/lib/utils/pixel.cc
std::vector<uint8_t> ToRgb565 ()
Defined at line 44 of file ../../src/ui/scenic/lib/utils/pixel.h
Pixel FromVmoRgb565 (const uint8_t *vmo_host,uint32_tstride,uint32_tx,uint32_ty)
Defined at line 46 of file ../../src/ui/scenic/lib/utils/pixel.cc
void ToBgra (std::vector<uint8_t> & bytes)
Defined at line 50 of file ../../src/ui/scenic/lib/utils/pixel.h
std::vector<uint8_t> ToBgra ()
Defined at line 57 of file ../../src/ui/scenic/lib/utils/pixel.h
void ToRgba (std::vector<uint8_t> & bytes)
Defined at line 63 of file ../../src/ui/scenic/lib/utils/pixel.h
Pixel FromVmoBgra (const uint8_t *vmo_host,uint32_tstride,uint32_tx,uint32_ty)
Defined at line 67 of file ../../src/ui/scenic/lib/utils/pixel.cc
Pixel FromVmoRgba (const uint8_t *vmo_host,uint32_tstride,uint32_tx,uint32_ty)
Defined at line 59 of file ../../src/ui/scenic/lib/utils/pixel.cc
std::vector<uint8_t> ToRgba ()
Defined at line 70 of file ../../src/ui/scenic/lib/utils/pixel.h
std::vector<uint8_t> ToFormat (fuchsia_images2::PixelFormat type)
Defined at line 75 of file ../../src/ui/scenic/lib/utils/pixel.cc
float redF ()
Defined at line 76 of file ../../src/ui/scenic/lib/utils/pixel.h
float greenF ()
Defined at line 77 of file ../../src/ui/scenic/lib/utils/pixel.h
float blueF ()
Defined at line 78 of file ../../src/ui/scenic/lib/utils/pixel.h
float alphaF ()
Defined at line 79 of file ../../src/ui/scenic/lib/utils/pixel.h
void ToFormat (fuchsia_images2::PixelFormat type, std::vector<uint8_t> & color)
Defined at line 81 of file ../../src/ui/scenic/lib/utils/pixel.cc
bool operator!= (const Pixel & rhs)
Defined at line 83 of file ../../src/ui/scenic/lib/utils/pixel.h
bool operator< (const Pixel & other)
Defined at line 85 of file ../../src/ui/scenic/lib/utils/pixel.h
void ToRgb565 (std::vector<uint8_t> & bytes)
Defined at line 95 of file ../../src/ui/scenic/lib/utils/pixel.cc
bool IsFormatSupported (fuchsia_images2::PixelFormat type)
Defined at line 102 of file ../../src/ui/scenic/lib/utils/pixel.cc