package gdal

  1. Overview
  2. Docs
exception Wrong_dimensions
type offset_t = {
  1. block : int * int;
  2. offset : int * int;
}
val make_block_offset : block:(int * int) -> offset:(int * int) -> offset_t
val pixel_of_block_offset : ('a, 'b) t -> offset_t -> int * int
val block_of_pixel_offset : ('a, 'b) t -> int -> int -> offset_t
val get_block_count : ('a, 'b) t -> int * int
val get_size : ('a, 'b) t -> int * int
val read : ?data:('v, 'e, Bigarray.c_layout) Bigarray.Array2.t -> ('v, 'e) t -> i:int -> j:int -> ('v, 'e, Bigarray.c_layout) Bigarray.Array2.t
val write : ('v, 'e) t -> i:int -> j:int -> ('v, 'e, Bigarray.c_layout) Bigarray.Array2.t -> unit
val iter : ('v, 'e) t -> read:bool -> write:bool -> (int -> int -> ('v, 'e, Bigarray.c_layout) Bigarray.Array2.t -> unit) -> unit
val iter_read : ('v, 'e) t -> (int -> int -> ('v, 'e, Bigarray.c_layout) Bigarray.Array2.t -> unit) -> unit
val iter_write : ('v, 'e) t -> (int -> int -> ('v, 'e, Bigarray.c_layout) Bigarray.Array2.t -> unit) -> unit
OCaml

Innovation. Community. Security.