Authors: (C) 1999-2002 Lauris Kaplinski <lauris@kaplinski.com>
This code is in the Public Domain
Definition in file nr-pixblock.cpp.
#include <string.h>
#include <stdlib.h>
#include "nr-macros.h"
#include "nr-pixblock.h"
Go to the source code of this file.
Defines | |
#define | __NR_PIXBLOCK_C__ |
#define | NR_16K_BLOCK 32 |
#define | NR_4K_BLOCK 32 |
#define | NR_64K_BLOCK 32 |
#define | NR_TINY_MAX sizeof (unsigned char *) |
Size of buffer that needs no allocation (default 4). | |
Functions | |
NRPixBlock * | nr_pixblock_free (NRPixBlock *pb) |
NRPixBlock * | nr_pixblock_new (NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear) |
void | nr_pixblock_release (NRPixBlock *pb) |
void | nr_pixblock_setup (NRPixBlock *pb, NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear) |
void | nr_pixblock_setup_extern (NRPixBlock *pb, NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, unsigned char *px, int rs, bool empty, bool clear) |
void | nr_pixblock_setup_fast (NRPixBlock *pb, NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear) |
Returns pointer to pixel data. | |
void | nr_pixelstore_16K_free (unsigned char *px) |
unsigned char * | nr_pixelstore_16K_new (bool clear, unsigned char val) |
void | nr_pixelstore_4K_free (unsigned char *px) |
unsigned char * | nr_pixelstore_4K_new (bool clear, unsigned char val) |
void | nr_pixelstore_64K_free (unsigned char *px) |
unsigned char * | nr_pixelstore_64K_new (bool clear, unsigned char val) |
Variables | |
static unsigned int | nr_16K_len = 0 |
static unsigned char ** | nr_16K_px = NULL |
static unsigned int | nr_16K_size = 0 |
static unsigned int | nr_4K_len = 0 |
static unsigned char ** | nr_4K_px = NULL |
static unsigned int | nr_4K_size = 0 |
static unsigned int | nr_64K_len = 0 |
static unsigned char ** | nr_64K_px = NULL |
static unsigned int | nr_64K_size = 0 |