Android-cuttlefish cvd tool
Macros | Functions
image.cpp File Reference
#include <fec.h>
#include <assert.h>
#include <android-base/file.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <openssl/sha.h>
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sparse/sparse.h>
#include "image.h"
Include dependency graph for image.cpp:

Macros

#define _LARGEFILE64_SOURCE
 

Functions

void image_init (image *ctx)
 
void image_free (image *ctx)
 
static void calculate_rounds (uint64_t size, image *ctx)
 
static int process_chunk (void *priv, const void *data, size_t len)
 
static void file_image_load (const std::vector< int > &fds, image *ctx)
 
bool image_load (const std::vector< std::string > &filenames, 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)
 
static void * process (void *cookie)
 
bool image_process (image_proc_func func, image *ctx)
 

Macro Definition Documentation

◆ _LARGEFILE64_SOURCE

#define _LARGEFILE64_SOURCE

Function Documentation

◆ calculate_rounds()

static void calculate_rounds ( uint64_t  size,
image ctx 
)
static

◆ file_image_load()

static void file_image_load ( const std::vector< int > &  fds,
image ctx 
)
static

◆ 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_init()

void image_init ( image ctx)

◆ image_load()

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

◆ image_process()

bool image_process ( image_proc_func  func,
image ctx 
)

◆ image_save()

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

◆ process()

static void * process ( void *  cookie)
static

◆ process_chunk()

static int process_chunk ( void *  priv,
const void *  data,
size_t  len 
)
static