| synopsis || return value || arguments || prev || next |

kdu_stripe_compressor::push_stripe

Overload navigation: 1, 2, 3, 4, 5, 6, 7, 8

bool push_stripe( kdu_int16 * stripe_bufs[], int stripe_heights[], int * sample_gaps=NULL, int * row_gaps=NULL, int * precisions=NULL, bool * is_signed=NULL, int flush_period=0)

[Declared in "../apps/support/kdu_stripe_compressor.h"]

Go to class description.


Synopsis

Same as the first form of the overloaded push_stripe function, except in the following respects:


Return Value

True until all samples for all image components have been pushed in, at which point the function returns false.

Arguments

stripe_bufs[] [kdu_int16 *]

stripe_heights[] [int]

See description of the first form of the push_stripe function.

sample_gaps [int *]

See description of the first form of the push_stripe function.

row_gaps [int *]

See description of the first form of the push_stripe function.

precisions [int *]

See description of the first form of the push_stripe function, but note these two changes: the precision for any component may be as large as 16 (this is the default, if precisions is NULL); and the samples all have a nominally signed representation (not the unsigned representation assumed by the first form of the function), unless otherwise indicated by a non-NULL is_signed argument.

is_signed [bool *]

If NULL, the supplied samples for each component, c, are assumed to have a signed representation in the range -2^{ precisions[c]-1} to 2^{ precisions[c]-1}-1. Otherwise, this argument points to an array with one element for each component. If is_signed[c] is true, the default signed representation is assumed for that component; if false, the component samples are assumed to have an unsigned representation in the range 0 to 2^{ precisions[c]}-1. What this means is that the function subtracts 2^{ precisions[c]-1} from the samples of any component for which is_signed[c] is false. It is allowable to have precisions[c]=16 even if is_signed[c] is false, meaning that the input words are treated as though they were 16-bit unsigned words.

flush_period [int]

See description of the first form of the push_stripe function.


| top || synopsis || return value || arguments || prev || next |