| synopsis || arguments || prev || next |

kdu_line_buf::set_ints

Java: Kdu_line_buf::Set_ints

Overload navigation: 1, 2

bool set_ints( kdu_int16 * buffer, int first_idx, int num_samples)

Java: boolean Set_ints( short[] buffer, int first_idx, int num_samples)

[Declared in "../coresys/common/kdu_sample_processing.h"]

Go to class description.


Synopsis

Returns false if the object does not hold a 16-bit sample representation (either fixed point or absolute integers). Otherwise, returns true and copies the integer samples from the supplied buffer. The first sample in buffer is stored first_idx positions from the start of the line. There may be little or no checking that the sample range represented by first_idx and num_samples is legal, so be careful.

For native C/C++ interfacing, it is more efficient to explicitly access the internal buffer using get_buf16.


Arguments

buffer [kdu_int16 *]

first_idx [int]

num_samples [int]


| top || synopsis || arguments || prev || next |