Skip to main content

extract_cog_f32_window_zero_heap

Function extract_cog_f32_window_zero_heap 

Source
pub fn extract_cog_f32_window_zero_heap(
    bytes: &[u8],
    header: &CogIfdHeader,
    out_elevations_m: &mut [f32],
) -> usize
Expand description

Extracts floating-point elevation values from an uncompressed COG tile or strip with zero heap allocation.

Decodes either IEEE-754 32-bit float (sample_format = 3) or 16-bit signed integer (sample_format = 2) samples into out_elevations_m. Returns the number of elevation samples written.