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

kdu_line_buf::get_floats

Java: Kdu_line_buf::Get_floats

bool get_floats( float * buffer, int first_idx, int num_samples)

Java: boolean Get_floats( float[] 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 32-bit normalized (floating point) sample representation. Otherwise, returns true and copies the floating point samples into the supplied buffer. The first copied sample is 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_buf32.


Arguments

buffer [float *]

first_idx [int]

num_samples [int]


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