Class: ZXing::FFI::QRCode::Decoder

Inherits:
Binarizer
  • Object
show all
Includes:
QRCode::Decoder
Defined in:
lib/zxing/ffi/qrcode/decoder.rb

Instance Attribute Summary

Attributes included from Binarizer

#native

Attributes inherited from Binarizer

#source

Instance Method Summary collapse

Methods included from QRCode::Decoder

new

Methods inherited from Binarizer

#black_matrix, #image

Constructor Details

#initialize(luminance_source) ⇒ Decoder

Returns a new instance of Decoder.



7
8
9
# File 'lib/zxing/ffi/qrcode/decoder.rb', line 7

def initialize luminance_source
  super ZXing::FFI::Library.Decoder_new(luminance_source.native), luminance_source
end