Android-cuttlefish cvd tool
Namespaces | Functions
image.cpp File Reference
#include "cuttlefish/host/graphics_detector/image.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <fstream>
#include <iterator>
#include <string>
#include <utility>
#include <vector>
#include "cuttlefish/host/graphics_detector/expected.h"
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 (size_t w, size_t h, const uint8_t *rgbaPixels, const std::string &filename)
 
gfxstream::expected< YUV420Image, std::string > gfxstream::LoadYUV420FromBitmapFile (const std::string &filename)
 
RGBAImage gfxstream::FillWithColor (size_t width, size_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)