libnsgif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
decode_gif.c File Reference
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "../include/libnsgif.h"

Macros

#define BYTES_PER_PIXEL   4
 
#define MAX_IMAGE_BYTES   (48 * 1024 * 1024)
 

Functions

static void * bitmap_create (int width, int height)
 
static void bitmap_set_opaque (void *bitmap, bool opaque)
 
static bool bitmap_test_opaque (void *bitmap)
 
static unsigned char * bitmap_get_buffer (void *bitmap)
 
static void bitmap_destroy (void *bitmap)
 
static void bitmap_modified (void *bitmap)
 
static unsigned char * load_file (const char *path, size_t *data_size)
 
static void warning (const char *context, gif_result code)
 
static void write_ppm (FILE *fh, const char *name, gif_animation *gif)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define BYTES_PER_PIXEL   4
#define MAX_IMAGE_BYTES   (48 * 1024 * 1024)

Function Documentation

static void* bitmap_create ( int  width,
int  height 
)
static
static void bitmap_destroy ( void *  bitmap)
static
static unsigned char* bitmap_get_buffer ( void *  bitmap)
static
static void bitmap_modified ( void *  bitmap)
static
static void bitmap_set_opaque ( void *  bitmap,
bool  opaque 
)
static
static bool bitmap_test_opaque ( void *  bitmap)
static
static unsigned char* load_file ( const char *  path,
size_t *  data_size 
)
static
int main ( int  argc,
char *  argv[] 
)
static void warning ( const char *  context,
gif_result  code 
)
static
static void write_ppm ( FILE *  fh,
const char *  name,
gif_animation gif 
)
static