struct Pixel
Defined at line 16 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_t blue, uint8_t green, uint8_t red, uint8_t alpha)
Defined at line 22 of file ../../src/ui/scenic/lib/utils/pixel.h
bool operator== (const Pixel & rhs)
Defined at line 27 of file ../../src/ui/scenic/lib/utils/pixel.h
Pixel FromUnormBgra (float blue, float green, float red, float alpha)
Defined at line 29 of file ../../src/ui/scenic/lib/utils/pixel.cc
Pixel FromVmo (const uint8_t * vmo_host, uint32_t stride, uint32_t x, uint32_t y, fuchsia::images2::PixelFormat type)
Defined at line 34 of file ../../src/ui/scenic/lib/utils/pixel.cc
Pixel FromVmo (const uint8_t * vmo_host, uint32_t stride, uint32_t x, uint32_t y, fuchsia::sysmem::PixelFormatType type)
Defined at line 46 of file ../../src/ui/scenic/lib/utils/pixel.cc
std::vector<uint8_t> ToRgb565 ()
Defined at line 47 of file ../../src/ui/scenic/lib/utils/pixel.h
void ToBgra (std::vector<uint8_t> & bytes)
Defined at line 53 of file ../../src/ui/scenic/lib/utils/pixel.h
Pixel FromVmoRgb565 (const uint8_t * vmo_host, uint32_t stride, uint32_t x, uint32_t y)
Defined at line 58 of file ../../src/ui/scenic/lib/utils/pixel.cc
std::vector<uint8_t> ToBgra ()
Defined at line 60 of file ../../src/ui/scenic/lib/utils/pixel.h
void ToRgba (std::vector<uint8_t> & bytes)
Defined at line 66 of file ../../src/ui/scenic/lib/utils/pixel.h
Pixel FromVmoBgra (const uint8_t * vmo_host, uint32_t stride, uint32_t x, uint32_t y)
Defined at line 79 of file ../../src/ui/scenic/lib/utils/pixel.cc
Pixel FromVmoRgba (const uint8_t * vmo_host, uint32_t stride, uint32_t x, uint32_t y)
Defined at line 71 of file ../../src/ui/scenic/lib/utils/pixel.cc
std::vector<uint8_t> ToRgba ()
Defined at line 73 of file ../../src/ui/scenic/lib/utils/pixel.h
float redF ()
Defined at line 79 of file ../../src/ui/scenic/lib/utils/pixel.h
float greenF ()
Defined at line 80 of file ../../src/ui/scenic/lib/utils/pixel.h
float blueF ()
Defined at line 81 of file ../../src/ui/scenic/lib/utils/pixel.h
float alphaF ()
Defined at line 82 of file ../../src/ui/scenic/lib/utils/pixel.h
std::vector<uint8_t> ToFormat (fuchsia::images2::PixelFormat type)
Defined at line 87 of file ../../src/ui/scenic/lib/utils/pixel.cc
bool operator!= (const Pixel & rhs)
Defined at line 88 of file ../../src/ui/scenic/lib/utils/pixel.h
bool operator< (const Pixel & other)
Defined at line 90 of file ../../src/ui/scenic/lib/utils/pixel.h
void ToFormat (fuchsia::images2::PixelFormat type, std::vector<uint8_t> & color)
Defined at line 93 of file ../../src/ui/scenic/lib/utils/pixel.cc
std::vector<uint8_t> ToFormat (fuchsia::sysmem::PixelFormatType type)
Defined at line 107 of file ../../src/ui/scenic/lib/utils/pixel.cc
void ToRgb565 (std::vector<uint8_t> & bytes)
Defined at line 118 of file ../../src/ui/scenic/lib/utils/pixel.cc
bool IsFormatSupported (fuchsia::images2::PixelFormat type)
Defined at line 125 of file ../../src/ui/scenic/lib/utils/pixel.cc
bool IsFormatSupported (fuchsia::sysmem::PixelFormatType type)
deprecated; use other overload just above
Defined at line 129 of file ../../src/ui/scenic/lib/utils/pixel.cc