Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Static Public Member Functions | List of all members
SkJpegMetadataDecoder Class Referenceabstract

#include <SkJpegMetadataDecoder.h>

Inheritance diagram for SkJpegMetadataDecoder:
SkJpegMetadataDecoderImpl

Classes

struct  Segment
 

Public Member Functions

 SkJpegMetadataDecoder ()
 
virtual ~SkJpegMetadataDecoder ()
 
 SkJpegMetadataDecoder (const SkJpegMetadataDecoder &)=delete
 
SkJpegMetadataDecoderoperator= (const SkJpegMetadataDecoder &)=delete
 
virtual sk_sp< SkDatagetExifMetadata (bool copyData) const =0
 
virtual sk_sp< SkDatagetICCProfileData (bool copyData) const =0
 
virtual sk_sp< SkDatagetISOGainmapMetadata (bool copyData) const =0
 
virtual bool mightHaveGainmapImage () const =0
 
virtual bool findGainmapImage (sk_sp< SkData > baseImageData, sk_sp< SkData > &outGainmapImagedata, SkGainmapInfo &outGainmapInfo)=0
 

Static Public Member Functions

static std::unique_ptr< SkJpegMetadataDecoderMake (std::vector< Segment > headerSegments)
 

Detailed Description

An interface that can be used to extract metadata from an encoded JPEG file.

Definition at line 23 of file SkJpegMetadataDecoder.h.

Constructor & Destructor Documentation

◆ SkJpegMetadataDecoder() [1/2]

SkJpegMetadataDecoder::SkJpegMetadataDecoder ( )
inline

Definition at line 25 of file SkJpegMetadataDecoder.h.

25{}

◆ ~SkJpegMetadataDecoder()

virtual SkJpegMetadataDecoder::~SkJpegMetadataDecoder ( )
inlinevirtual

Definition at line 26 of file SkJpegMetadataDecoder.h.

26{}

◆ SkJpegMetadataDecoder() [2/2]

SkJpegMetadataDecoder::SkJpegMetadataDecoder ( const SkJpegMetadataDecoder )
delete

Member Function Documentation

◆ findGainmapImage()

virtual bool SkJpegMetadataDecoder::findGainmapImage ( sk_sp< SkData baseImageData,
sk_sp< SkData > &  outGainmapImagedata,
SkGainmapInfo outGainmapInfo 
)
pure virtual

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()

std::unique_ptr< SkJpegMetadataDecoder > SkJpegMetadataDecoder::Make ( std::vector< Segment headerSegments)
static

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

Return true if there is a possibility that this image contains a gainmap image.

Implemented in SkJpegMetadataDecoderImpl.

◆ operator=()

SkJpegMetadataDecoder & SkJpegMetadataDecoder::operator= ( const SkJpegMetadataDecoder )
delete

The documentation for this class was generated from the following files: