diff options
author | Christopher Cameron <ccameron@chromium.org> | 2023-10-23 14:50:53 +0200 |
---|---|---|
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | 2023-10-23 13:32:23 +0000 |
commit | ba721d5c6a1347a81c61fb30aee1b36d9e2fd263 (patch) | |
tree | beb03a7edde3e88ea964282e6c12cbd9c752a174 /BUILD.gn | |
parent | 0c688c3345e78b5a9dedfac6ab0f848d123cb830 (diff) | |
download | skia-ba721d5c6a1347a81c61fb30aee1b36d9e2fd263.tar.gz |
SkCodec: Consolidate Tiff parsing functions
Parsing of Apple HDR images will require extracting HDR parameters
from the MakerNote section of Exif metadata. This MakerNote data is
stored in a Tiff Image File Directory.
That will make the third place that Tiff IFD parsing will need to be
done (the other two being Exif and MPF). Chromium also has its own
bespoke Tiff IFD parser (which would make four).
Add the class SkTiffImageFileDirectory, which parses these structures,
and change SkJpegMultiPictureParameters and SkParseEncodedOrigin to
use them.
Add the class SkExifMetadata, with the intention that it will replace
the direct calls to SkParseEncodedOrigin, and will eventually be
used by Chromium (much like SkXmp can be today).
Bug: chromium:1488376
Change-Id: Ice1923dd98701ccaf2d790cff749bc4eac008796
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/762016
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: ccameron chromium <ccameron@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1511,10 +1511,8 @@ skia_component("skia") { "src/codec/SkAndroidCodec.cpp", "src/codec/SkAndroidCodecAdapter.cpp", "src/codec/SkEncodedInfo.cpp", - "src/codec/SkExif.cpp", "src/codec/SkParseEncodedOrigin.cpp", "src/codec/SkSampledCodec.cpp", - "src/codec/SkTiffUtility.cpp", "src/ports/SkDiscardableMemory_none.cpp", "src/ports/SkGlobalInitialization_default.cpp", "src/ports/SkMemory_malloc.cpp", |