#[repr(C)]
pub struct GDALRasterIOExtraArg { pub nVersion: c_int, pub eResampleAlg: Type, pub pfnProgress: GDALProgressFunc, pub pProgressData: *mut c_void, pub bFloatingPointWindowValidity: c_int, pub dfXOff: f64, pub dfYOff: f64, pub dfXSize: f64, pub dfYSize: f64, }
Expand description

Structure to pass extra arguments to RasterIO() method, must be initialized with INIT_RASTERIO_EXTRA_ARG @since GDAL 2.0

Fields

nVersion: c_int

Version of structure (to allow future extensions of the structure)

eResampleAlg: Type

Resampling algorithm

pfnProgress: GDALProgressFunc

Progress callback

pProgressData: *mut c_void

Progress callback user data

bFloatingPointWindowValidity: c_int

Indicate if dfXOff, dfYOff, dfXSize and dfYSize are set. Mostly reserved from the VRT driver to communicate a more precise source window. Must be such that dfXOff - nXOff < 1.0 and dfYOff - nYOff < 1.0 and nXSize - dfXSize < 1.0 and nYSize - dfYSize < 1.0

dfXOff: f64

Pixel offset to the top left corner. Only valid if bFloatingPointWindowValidity = TRUE

dfYOff: f64

Line offset to the top left corner. Only valid if bFloatingPointWindowValidity = TRUE

dfXSize: f64

Width in pixels of the area of interest. Only valid if bFloatingPointWindowValidity = TRUE

dfYSize: f64

Height in pixels of the area of interest. Only valid if bFloatingPointWindowValidity = TRUE

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.