Android-cuttlefish cvd tool
Classes | Macros | Typedefs | Functions
image.h File Reference
#include <utils/Compat.h>
#include <string>
#include <vector>
#include <fec/io.h>
#include <fec/ecc.h>
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  image
 
struct  image_proc_ctx
 

Macros

#define IMAGE_MIN_THREADS   1
 
#define IMAGE_MAX_THREADS   128
 
#define INFO(x...)    fprintf(stderr, x);
 
#define FATAL(x...)
 
#define unlikely(x)   __builtin_expect(!!(x), 0)
 

Typedefs

typedef void(* image_proc_func) (image_proc_ctx *)
 

Functions

bool image_load (const std::vector< std::string > &filename, image *ctx)
 
bool image_save (const std::string &filename, image *ctx)
 
bool image_ecc_new (const std::string &filename, image *ctx)
 
bool image_ecc_load (const std::string &filename, image *ctx)
 
bool image_ecc_save (image *ctx)
 
bool image_process (image_proc_func f, image *ctx)
 
void image_init (image *ctx)
 
void image_free (image *ctx)
 
uint8_t image_get_interleaved_byte (uint64_t i, image *ctx)
 
void image_set_interleaved_byte (uint64_t i, image *ctx, uint8_t value)
 

Macro Definition Documentation

◆ FATAL

#define FATAL (   x...)
Value:
{ \
fprintf(stderr, x); \
exit(1); \
}

◆ IMAGE_MAX_THREADS

#define IMAGE_MAX_THREADS   128

◆ IMAGE_MIN_THREADS

#define IMAGE_MIN_THREADS   1

◆ INFO

#define INFO (   x...)     fprintf(stderr, x);

◆ unlikely

#define unlikely (   x)    __builtin_expect(!!(x), 0)

Typedef Documentation

◆ image_proc_func

typedef void(* image_proc_func) (image_proc_ctx *)

Function Documentation

◆ image_ecc_load()

bool image_ecc_load ( const std::string &  filename,
image ctx 
)

◆ image_ecc_new()

bool image_ecc_new ( const std::string &  filename,
image ctx 
)

◆ image_ecc_save()

bool image_ecc_save ( image ctx)

◆ image_free()

void image_free ( image ctx)

◆ image_get_interleaved_byte()

uint8_t image_get_interleaved_byte ( uint64_t  i,
image ctx 
)
inline

◆ image_init()

void image_init ( image ctx)

◆ image_load()

bool image_load ( const std::vector< std::string > &  filename,
image ctx 
)

◆ image_process()

bool image_process ( image_proc_func  f,
image ctx 
)

◆ image_save()

bool image_save ( const std::string &  filename,
image ctx 
)

◆ image_set_interleaved_byte()

void image_set_interleaved_byte ( uint64_t  i,
image ctx,
uint8_t  value 
)
inline