| synopsis || return value || arguments || prev || next |
Overload navigation: 1, 2, 3, 4
bool pull_stripe( kdu_int16 * stripe_bufs[], int stripe_heights[], int * sample_gaps=NULL, int * row_gaps=NULL, int * precisions=NULL, bool * is_signed=NULL)
[Declared in "../apps/support/kdu_stripe_decompressor.h"]
Same as the first form of the overloaded pull_stripe function, except in the following respects:
Although Kakadu can decompress image sample values with more than 16 bits of precision, we do not currently provide any higher precision versions of the pull_stripe function to accurately represent high bit-depth sample data (you can still decompress high precision data, representing the results either as bytes or 16-bit words). Higher precision variants of the pull_stripe function could very easily be added if required, although there are very few applications which are able to meaningfully utilize image sample data with more than 16 bits of real precision.
True until all samples of all image components have been decompressed and returned, at which point the function returns false.
See description of the first form of the pull_stripe function.
See description of the first form of the pull_stripe function.
See description of the first form of the pull_stripe function.
See description of the first form of the pull_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.
If NULL, the samples recovered for each component, c, will 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 used for that component; if false, the component samples have an unsigned representation in the range 0 to 2^{ precisions[c]}-1. What this means is that the function adds 2^{ precisions[c]-1} to 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, although this means that the kdu_int16 sample values are really being treated as unsigned short integers ( kdu_uint16).
| top || synopsis || return value || arguments || prev || next |