Class: Origami::Filter::DCT
- Inherits:
-
Object
- Object
- Origami::Filter::DCT
- 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
Instance Method Summary collapse
-
#decode(stream) ⇒ Object
DCTDecode implies that data is a JPEG image container.
- #encode(stream) ⇒ Object
-
#initialize(parameters = {}) ⇒ DCT
constructor
A new instance of DCT.
Methods included from Origami::Filter
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 |