Sha256: 5f0ac933dcb0762ca96c5bf647135f3f942ea74d72e55060001e3c7ea700a9e6

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 KB

Contents

module FFI
  module GDAL
    #------------------------------------------------------------------------
    # Typedefs
    #------------------------------------------------------------------------
    typedef :pointer, :GDALWarpOperationH
    callback :GDALMaskFunc,
      [:pointer, :int, FFI::GDAL::GDALDataType, :int, :int, :int, :int, :pointer, :int, :pointer],
      :pointer

    #------------------------------------------------------------------------
    # Enums
    #------------------------------------------------------------------------
    GDALResampleAlg = enum :GRA_NearestNeighbor, 0,
      :GRA_Bilinear, 1,
      :GRA_Cubic, 2,
      :GRA_CubicSpline, 3,
      :GRA_Lanczos, 4,
      :GRA_Average, 5,
      :GRA_Mode, 6

    #------------------------------------------------------------------------
    # Functions
    #------------------------------------------------------------------------
    attach_function :GDALCreateWarpOptions, [], FFI::GDAL::GDALWarpOptions.ptr
    attach_function :GDALSerializeWarpOptions,
      [FFI::GDAL::GDALWarpOptions.ptr],
      FFI::GDAL::CPLXMLNode.ptr

    attach_function :GDALCreateWarpOperation,
      [FFI::GDAL::GDALWarpOptions.ptr],
      :GDALWarpOperationH
    attach_function :GDALDestroyWarpOperation, [:GDALWarpOperationH], :void

    attach_function :GDALChunkAndWarpImage,
      %i[GDALWarpOperationH int int int int],
      CPLErr
    attach_function :GDALChunkAndWarpMulti,
      %i[GDALWarpOperationH int int int int],
      CPLErr
    attach_function :GDALWarpRegion,
      %i[GDALWarpOperationH int int int int int int int int],
      CPLErr
    attach_function :GDALWarpRegionToBuffer,
      [:GDALWarpOperationH, :int, :int, :int, :int, :pointer, GDALDataType, :int, :int, :int, :int],
      CPLErr
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta3 lib/ffi/gdal/warper_h.rb
ffi-gdal-1.0.0.beta1 lib/ffi/gdal/warper_h.rb