Poster of Linux kernelThe best gift for a Linux geek
FBLQRCOLDEPTHFR

FBLQRCOLDEPTHFR

Section: LqR library API reference (3) Updated: 10 Maj 2009
Local index Up
 

NAME

LqrColDepth - carver objects colour depth specification  

DESCRIPTION

The default LqrCarver object constructor lqr_carver_new uses a colour depth of 8 bits per channel, and therefore its input must be an array of unsigned chars. However, the LqrCarver objects can handle images of grater colour depth, if they are created with the lqr_carver_new_ext constructor. The possible colour depths are specified through variables of type LqrColDepth, which is an enum type; its possible values, and the type of the input buffer associated with them, are:

LQR_COLDEPTH_8I

use type guchar (8 bit unsigned integers) - the default

LQR_COLDEPTH_16I

use type guint16 (16 bit unsigned integers)

LQR_COLDEPTH_32F

use type gfloat (32 bit floating point)

LQR_COLDEPTH_64F

use type gdouble (64 bit floating point)

These values are also relevant when reading out a LqrCarver object with the functions lqr_carver_scan_ext or lqr_carver_scan_line_ext, since the readout buffer must be cast to the appropriate type to be actually read.

The colour depth of an LqrCarver object can be obtained with the function lqr_carver_get_col_depth.  

SEE ALSO

lqr_carver_new(3), lqr_carver_get_col_depth(3), lqr_carver_scan(3), lqr_carver_scan_line(3)  

COPYRIGHT

Copyright © 2007-2009 Carlo Baldassi


 

Index

NAME
DESCRIPTION
SEE ALSO
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 21:49:44 GMT, April 16, 2011