class Exif::Tag::TIFF::YCbCrSubSampling

0x0212 - YCbCrSubSampling

Public Instance Methods

processData() click to toggle source
# File lib/exifparser/tag.rb, line 554
def processData
  @formatted = []
  partition_data(@count) do |data|
    @formatted.push _formatData(data)
  end
end
to_s() click to toggle source
# File lib/exifparser/tag.rb, line 561
def to_s
  case @formatted
  when [2,1]
    'YCbCr4:2:2'
  when [2,2]
    'YCbCr4:2:0'
  else
    'Unknown'
  end
end