Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

nr-pixblock.cpp File Reference


Detailed Description

Allocation/Setup of NRPixBlock objects. Pixel store functions.

Authors: (C) 1999-2002 Lauris Kaplinski <lauris@kaplinski.com>

This code is in the Public Domain

Definition in file nr-pixblock.cpp.

#include <cstring>
#include <string>
#include <string.h>
#include <glib/gmem.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_1M   1048576
#define NR_1M_BLOCK   32
#define NR_256K   262144
#define NR_256K_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

NRPixBlocknr_pixblock_free (NRPixBlock *pb)
NRPixBlocknr_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_1M_free (unsigned char *px)
unsigned char * nr_pixelstore_1M_new (bool clear, unsigned char val)
void nr_pixelstore_256K_free (unsigned char *px)
unsigned char * nr_pixelstore_256K_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_1M_len = 0
static unsigned char ** nr_1M_px = NULL
static unsigned int nr_1M_size = 0
static unsigned int nr_256K_len = 0
static unsigned char ** nr_256K_px = NULL
static unsigned int nr_256K_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


Generated by  Doxygen 1.6.0   Back to index