Sha256: f857f00f37d84fe9d4280f86a9a8461e42b74e0200bc466632b62203f8c50806
Contents?: true
Size: 1.48 KB
Versions: 10
Compression:
Stored size: 1.48 KB
Contents
=begin = File filters/dct.rb = Info This file is part of Origami, PDF manipulation framework for Ruby Copyright (C) 2010 Guillaume Delugré <guillaume@security-labs.org> All right reserved. 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) stream end # # DCTDecode implies that data is a JPEG image container. # Just returns the raw JPEG image as is. # def decode(stream) stream end end end end
Version data entries
10 entries across 10 versions & 1 rubygems