Sha256: 80eb512b7b0df0f2d39a4afa15c44a030da0c2dd769c85eea240502c10901f01

Contents?: true

Size: 577 Bytes

Versions: 6

Compression:

Stored size: 577 Bytes

Contents

class PSD
  module ImageFormat
    # Some method overrides for layer images.
    module LayerRLE
      private

      def parse_byte_counts!
        byte_counts = []
        height.times do
          byte_counts << (@header.big? ? @file.read_int : @file.read_short)
        end

        return byte_counts
      end

      def parse_channel_data!
        @line_index = 0

        PSD.logger.debug "Parsing RLE channel ##{@ch_info[:id]}: file position = #{@file.tell}, image position = #{@chan_pos}, line = #{@line_index}"
        decode_rle_channel
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
psd-3.9.0 lib/psd/image_formats/layer_rle.rb
psd-3.8.0 lib/psd/image_formats/layer_rle.rb
psd-3.7.0 lib/psd/image_formats/layer_rle.rb
psd-3.6.0 lib/psd/image_formats/layer_rle.rb
psd-3.5.0 lib/psd/image_formats/layer_rle.rb
psd-3.4.0 lib/psd/image_formats/layer_rle.rb