Class: Exif::Tag::TIFF::YCbCrSubSampling
- Defined in:
- lib/exifparser/tag.rb
Overview
0x0212 - YCbCrSubSampling
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, #value
Constructor Details
This class inherits a constructor from Exif::Tag::Base
Instance Method Details
#processData ⇒ Object
554 555 556 557 558 559 |
# File 'lib/exifparser/tag.rb', line 554 def processData @formatted = [] partition_data(@count) do |data| @formatted.push _formatData(data) end end |
#to_s ⇒ Object
561 562 563 564 565 566 567 568 569 570 |
# 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 |