Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
imgbuf.cc File Reference
#include "msg.h"
#include "imgbuf.hh"
#include "dw/core.hh"
#include "dw/image.hh"
Include dependency graph for imgbuf.cc:

Go to the source code of this file.

Functions

static uchar_tImgbuf_rgb_line (const uchar_t *buf, DilloImgType type, uchar_t *cmap, uint_t width, uint_t y)
 
void a_Imgbuf_ref (void *v_imgbuf)
 Increment reference count for an Imgbuf.
 
void a_Imgbuf_unref (void *v_imgbuf)
 Decrement reference count for an Imgbuf.
 
void * a_Imgbuf_new (void *layout, int img_type, uint_t width, uint_t height, double gamma)
 Create a new Imgbuf.
 
int a_Imgbuf_last_reference (void *v_imgbuf)
 Last reference for this Imgbuf?
 
void a_Imgbuf_update (void *v_imgbuf, const uchar_t *buf, DilloImgType type, uchar_t *cmap, uint_t width, uint_t height, uint_t y)
 Update the root buffer of an imgbuf.
 
void a_Imgbuf_new_scan (void *v_imgbuf)
 Reset for a new scan from a multiple-scan image.
 

Variables

static size_t linebuf_size = 0
 
static uchar_tlinebuf = NULL
 

Function Documentation

◆ a_Imgbuf_last_reference()

int a_Imgbuf_last_reference ( void *  v_imgbuf)

Last reference for this Imgbuf?

Definition at line 113 of file imgbuf.cc.

Referenced by a_Dicache_cleanup(), and a_Dicache_unref().

◆ a_Imgbuf_new()

void * a_Imgbuf_new ( void *  layout,
int  img_type,
uint_t  width,
uint_t  height,
double  gamma 
)

Create a new Imgbuf.

Definition at line 93 of file imgbuf.cc.

References dRealloc(), layout, linebuf, linebuf_size, MSG_ERR, and dw::core::Imgbuf::RGB.

Referenced by a_Dicache_set_parms().

◆ a_Imgbuf_new_scan()

void a_Imgbuf_new_scan ( void *  v_imgbuf)

Reset for a new scan from a multiple-scan image.

Definition at line 135 of file imgbuf.cc.

Referenced by a_Dicache_new_scan().

◆ a_Imgbuf_ref()

void a_Imgbuf_ref ( void *  v_imgbuf)

Increment reference count for an Imgbuf.

Definition at line 76 of file imgbuf.cc.

◆ a_Imgbuf_unref()

void a_Imgbuf_unref ( void *  v_imgbuf)

Decrement reference count for an Imgbuf.

Definition at line 84 of file imgbuf.cc.

Referenced by a_Dicache_freeall(), and Dicache_remove().

◆ a_Imgbuf_update()

void a_Imgbuf_update ( void *  v_imgbuf,
const uchar_t buf,
DilloImgType  type,
uchar_t cmap,
uint_t  width,
uint_t  height,
uint_t  y 
)

Update the root buffer of an imgbuf.

Definition at line 121 of file imgbuf.cc.

References dReturn_if_fail, and Imgbuf_rgb_line().

Referenced by a_Dicache_write().

◆ Imgbuf_rgb_line()

static uchar_t * Imgbuf_rgb_line ( const uchar_t buf,
DilloImgType  type,
uchar_t cmap,
uint_t  width,
uint_t  y 
)
static

Variable Documentation

◆ linebuf

uchar_t* linebuf = NULL
static

Definition at line 23 of file imgbuf.cc.

Referenced by a_Imgbuf_new(), and Imgbuf_rgb_line().

◆ linebuf_size

size_t linebuf_size = 0
static

Definition at line 22 of file imgbuf.cc.

Referenced by a_Imgbuf_new().