Class: FormatParser::DPXParser::DPX

Inherits:
Binstr
  • Object
show all
Defined in:
lib/parsers/dpx_parser/dpx_structs.rb

Overview

This is the main structure represinting headers of one DPX file

Constant Summary

Constants inherited from Binstr

Binstr::TO_LITTLE_ENDIAN

Class Method Summary collapse

Class Method Details

.read_and_unpack(io) ⇒ Object



218
219
220
221
222
223
224
225
# File 'lib/parsers/dpx_parser/dpx_structs.rb', line 218

def self.read_and_unpack(io)
  super.tap do |h|
    num_elems = h[:image][:number_elements]
    num_elems.upto(8) do |n|
      h[:image].delete("image_elements_#{n}")
    end
  end
end