#include <SkJpegMetadataDecoder.h>
An interface that can be used to extract metadata from an encoded JPEG file.
Definition at line 23 of file SkJpegMetadataDecoder.h.
◆ SkJpegMetadataDecoder() [1/2]
SkJpegMetadataDecoder::SkJpegMetadataDecoder |
( |
| ) |
|
|
inline |
◆ ~SkJpegMetadataDecoder()
virtual SkJpegMetadataDecoder::~SkJpegMetadataDecoder |
( |
| ) |
|
|
inlinevirtual |
◆ SkJpegMetadataDecoder() [2/2]
◆ findGainmapImage()
Given a JPEG encoded image |baseImageData|, return in |outGainmapImageData| the JPEG encoded gainmap image and return in |outGainmapInfo| its gainmap rendering parameters. Return true if both output variables were successfully populated, otherwise return false.
Implemented in SkJpegMetadataDecoderImpl.
◆ getExifMetadata()
virtual sk_sp< SkData > SkJpegMetadataDecoder::getExifMetadata |
( |
bool |
copyData | ) |
const |
|
pure virtual |
Return the Exif data attached to the image (if any) and nullptr otherwise. If |copyData| is false, then the returned SkData may directly reference the data provided when this object was created.
Implemented in SkJpegMetadataDecoderImpl.
◆ getICCProfileData()
virtual sk_sp< SkData > SkJpegMetadataDecoder::getICCProfileData |
( |
bool |
copyData | ) |
const |
|
pure virtual |
Return the ICC profile of the image if any, and nullptr otherwise. If |copyData| is false, then the returned SkData may directly reference the data provided when this object was created.
Implemented in SkJpegMetadataDecoderImpl.
◆ getISOGainmapMetadata()
virtual sk_sp< SkData > SkJpegMetadataDecoder::getISOGainmapMetadata |
( |
bool |
copyData | ) |
const |
|
pure virtual |
Return the ISO 21496-1 metadata, if any, and nullptr otherwise. If |copyData| is false, then the returned SkData may directly reference the data provided when this object was created.
Implemented in SkJpegMetadataDecoderImpl.
◆ Make()
Create metadata for the specified segments from a JPEG file's header (defined as all segments before the first StartOfScan). This may return nullptr.
Definition at line 489 of file SkJpegMetadataDecoderImpl.cpp.
489 {
490 return std::make_unique<SkJpegMetadataDecoderImpl>(std::move(segments));
491}
◆ mightHaveGainmapImage()
virtual bool SkJpegMetadataDecoder::mightHaveGainmapImage |
( |
| ) |
const |
|
pure virtual |
◆ operator=()
The documentation for this class was generated from the following files: