Sha256: dce7e96ab30af3dc96fc9e38e2f7b70d2248cb5ffcbbda2dfedfc817719c1568

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 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 << @file.read_short
        end

        return byte_counts
      end

      def parse_channel_data!
        PSD.logger.debug "Parsing layer RLE channel ##{@ch_info[:id]}: position = #{@chan_pos}"
        @chan_pos = decode_rle_channel(@chan_pos, 0)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
psd-1.1.1 lib/psd/image_formats/layer_rle.rb
psd-1.1.0 lib/psd/image_formats/layer_rle.rb