Class: Exif::Tag::Exif::ComponentsConfiguration

Inherits:
Base
  • Object
show all
Defined in:
lib/exifparser/tag.rb

Overview

0x9101 - ComponentsConfiguration

Instance Attribute Summary

Attributes inherited from Base

#IFD, #count, #data, #dataPos, #pos, #tagID

Instance Method Summary collapse

Methods inherited from Base

#formatExposureTime, #formatFNumber, #formatFocalLength, #formatLatLon, #initialize, #inspect, #name, #processData, #value

Constructor Details

This class inherits a constructor from Exif::Tag::Base

Instance Method Details

#_format0(data) ⇒ Object



917
918
919
# File 'lib/exifparser/tag.rb', line 917

def _format0(data)
  data.unpack("C*").collect{|e| e.to_i}
end

#to_sObject



921
922
923
924
925
926
927
928
# File 'lib/exifparser/tag.rb', line 921

def to_s
  case @formatted
  when [0x04,0x05,0x06,0x00]
    'RGB'
  when [0x01,0x02,0x03,0x00]
    'YCbCr'
  end
end