The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

img16.c - implements 16-bit images

SYNOPSIS

  i_img *im = i_img_16_new(i_img_dim x, i_img_dim y, int channels);
  # use like a normal image

DESCRIPTION

Implements 16-bit/sample images.

This basic implementation is required so that we have some larger sample image type to work with.

IIM_base_16bit_direct

Base structure used to initialize a 16-bit/sample image.

Internal.

im_img_16_new(ctx, x, y, ch) =category Image creation/destruction =synopsis i_img *img = im_img_16_new(aIMCTX, width, height, channels); =synopsis i_img *img = i_img_16_new(width, height, channels);

Create a new 16-bit/sample image.

Returns the image on success, or NULL on failure.

Also callable as i_img_16_new(x, y, ch)

i_img_to_rgb16(im)

Returns a 16-bit/sample version of the supplied image.

Returns the image on success, or NULL on failure.

i_psamp_d16(i_img *im, i_img_dim l, i_img_dim r, i_img_dim y, const i_sample_t *samps, int *chans, int chan_count)

Writes sample values to im for the horizontal line (l, y) to (r-1,y) for the channels specified by chans, an array of int with chan_count elements.

Returns the number of samples written (which should be (r-l) * bits_set(chan_mask)

i_psampf_d16(i_img *im, i_img_dim l, i_img_dim r, i_img_dim y, const i_fsample_t *samps, int *chans, int chan_count)

Writes sample values to im for the horizontal line (l, y) to (r-1,y) for the channels specified by chans, an array of int with chan_count elements.

Returns the number of samples written (which should be (r-l) * bits_set(chan_mask)

AUTHOR

Tony Cook <tony@develop-help.com>

SEE ALSO

Imager(3)

1 POD Error

The following errors were encountered while parsing the POD:

Around line 218:

Unknown directive: =category