Logo Search packages:      
Sourcecode: inkscape version File versions

nr-pixblock.h File Reference


Detailed Description

Pixel block structure. Used for low-level rendering.

Authors: (C) 1999-2002 Lauris Kaplinski <lauris@kaplinski.com> (C) 2005 Ralf Stephan <ralf@ark.in-berlin.de> (some cleanup)

This code is in the Public Domain.

Definition in file nr-pixblock.h.

#include <libnr/nr-rect-l.h>
#include <libnr/nr-forward.h>

Go to the source code of this file.

Classes

struct  NRPixBlock
 The pixel block struct. More...

Enumerations

enum  NR_PIXBLOCK_MODE { NR_PIXBLOCK_MODE_A8, NR_PIXBLOCK_MODE_R8G8B8, NR_PIXBLOCK_MODE_R8G8B8A8N, NR_PIXBLOCK_MODE_R8G8B8A8P }
 Mode indicator. Hardcoded to max. 2 bits. More...
enum  NR_PIXBLOCK_SIZE {
  NR_PIXBLOCK_SIZE_TINY, NR_PIXBLOCK_SIZE_4K, NR_PIXBLOCK_SIZE_16K, NR_PIXBLOCK_SIZE_64K,
  NR_PIXBLOCK_SIZE_256K, NR_PIXBLOCK_SIZE_1M, NR_PIXBLOCK_SIZE_BIG, NR_PIXBLOCK_SIZE_STATIC
}
 Size indicator. Hardcoded to max. 3 bits. More...

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_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)
int return ((pb->mode==NR_PIXBLOCK_MODE_A8)?1:(pb->mode==NR_PIXBLOCK_MODE_R8G8B8)?3:4)
 Returns number of bytes per pixel (1, 3, or 4).


Generated by  Doxygen 1.6.0   Back to index