Sha256: c1a9aaf9c7efcad18ff25969cbabef42a85dcf83cc565d5620705216a8a07252
Contents?: true
Size: 1.64 KB
Versions: 7
Compression:
Stored size: 1.64 KB
Contents
=begin This file is part of Origami, PDF manipulation framework for Ruby Copyright (C) 2016 Guillaume Delugré. Origami is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Origami is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Origami. If not, see <http://www.gnu.org/licenses/>. =end module Origami module Filter # # Class representing a Filter used to encode and decode data with DCT (JPEG) compression algorithm. # class DCT include Filter class DecodeParms < Dictionary include StandardObject field :ColorTransform, :Type => Integer end def initialize(parameters = {}) super(DecodeParms.new(parameters)) end def encode(stream) raise NotImplementedError.new("DCT filter is not supported", input_data: stream) end # # DCTDecode implies that data is a JPEG image container. # def decode(stream) raise NotImplementedError.new("DCT filter is not supported", input_data: stream) end end end end
Version data entries
7 entries across 7 versions & 2 rubygems