Class: Origami::Filter::DCT

Inherits:
Object
  • Object
show all
Includes:
Origami::Filter
Defined in:
lib/origami/filters/dct.rb

Overview

Class representing a Filter used to encode and decode data with DCT (JPEG) compression algorithm.

Defined Under Namespace

Classes: DecodeParms

Constant Summary

Constants included from Origami::Filter

A85, AHx, CCF, Fl, RL

Instance Method Summary collapse

Methods included from Origami::Filter

included

Constructor Details

#initialize(parameters = {}) ⇒ DCT

Returns a new instance of DCT.



37
38
39
# File 'lib/origami/filters/dct.rb', line 37

def initialize(parameters = {})
    super(DecodeParms.new(parameters))
end

Instance Method Details

#decode(stream) ⇒ Object

DCTDecode implies that data is a JPEG image container.



48
49
50
# File 'lib/origami/filters/dct.rb', line 48

def decode(stream)
    raise NotImplementedError.new("DCT filter is not supported", input_data: stream)
end

#encode(stream) ⇒ Object



41
42
43
# File 'lib/origami/filters/dct.rb', line 41

def encode(stream)
    raise NotImplementedError.new("DCT filter is not supported", input_data: stream)
end