Sha256: 99ca482bdaa5be9a2e60fbfc0f1c03c3f0539cd5e44cee66babf5c456c073516

Contents?: true

Size: 712 Bytes

Versions: 1

Compression:

Stored size: 712 Bytes

Contents

module WebpFfi
  module C
    # enum
    WebpImageHint = enum(:webp_hint_default, 0,
      :webp_hint_picture,
      :webp_hint_photo,
      :webp_hint_graph,
      :webp_hint_last)
    # struct
    class FfiWebpConfig < FFI::Struct
      layout  :lossless, :int,
        :quality, :float,
        :method, :int
    end
   
    # webp lib functions
    attach_function :decoder_version, [:pointer], :void
    attach_function :encoder_version, [:pointer], :void
    attach_function :webp_get_info, [:pointer, :size_t, :pointer, :pointer], :int
    attach_function :webp_decode, [:string, :string], :int
    attach_function :webp_encode, [:string, :string], :int

    attach_function :test, [:int], :int
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webp-ffi-0.1.0 lib/webp_ffi/c.rb