Android-cuttlefish cvd tool
Namespaces | Functions
image.cpp File Reference
#include "cuttlefish/host/graphics_detector/image.h"
#include <fstream>
#include <ostream>
Include dependency graph for image.cpp:

Namespaces

namespace  gfxstream
 
namespace  gfxstream::anonymous_namespace{image.cpp}
 

Functions

gfxstream::expected< RGBAImage, std::string > gfxstream::LoadRGBAFromBitmapFile (const std::string &filename)
 
gfxstream::expected< Ok, std::string > gfxstream::SaveRGBAToBitmapFile (uint32_t w, uint32_t h, const uint8_t *rgbaPixels, const std::string &filename)
 
gfxstream::expected< YUV420Image, std::string > gfxstream::LoadYUV420FromBitmapFile (const std::string &filename)
 
RGBAImage gfxstream::FillWithColor (uint32_t width, uint32_t height, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)
 
uint8_t gfxstream::anonymous_namespace{image.cpp}::Clamp (int x)
 
void gfxstream::anonymous_namespace{image.cpp}::ConvertRGBA8888PixelToYUV (const uint8_t r, const uint8_t g, const uint8_t b, uint8_t *out_y, uint8_t *out_u, uint8_t *out_v)
 
YUV420Image gfxstream::ConvertRGBA8888ToYUV420 (const RGBAImage &rgbaImage)
 
bool gfxstream::anonymous_namespace{image.cpp}::PixelsAreSimilar (uint32_t pixel1, uint32_t pixel2)
 
gfxstream::expected< Ok, std::vector< PixelDiff > > gfxstream::CompareImages (const RGBAImage &expected, const RGBAImage &actual)