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

#include <SkXmp.h>

Inheritance diagram for SkXmp:
SkXmpImpl

Public Member Functions

 SkXmp ()=default
 
virtual ~SkXmp ()=default
 
 SkXmp (const SkXmp &)=delete
 
SkXmpoperator= (const SkXmp &)=delete
 
bool getGainmapInfoHDRGM (SkGainmapInfo *info) const
 
virtual bool getGainmapInfoAdobe (SkGainmapInfo *info) const =0
 
virtual bool getGainmapInfoApple (float exifHdrHeadroom, SkGainmapInfo *info) const =0
 
virtual bool getContainerGainmapLocation (size_t *offset, size_t *size) const =0
 
virtual const char * getExtendedXmpGuid () const =0
 

Static Public Member Functions

static std::unique_ptr< SkXmpMake (sk_sp< SkData > xmpData)
 
static std::unique_ptr< SkXmpMake (sk_sp< SkData > xmpStandard, sk_sp< SkData > xmpExtended)
 

Detailed Description

Definition at line 23 of file SkXmp.h.

Constructor & Destructor Documentation

◆ SkXmp() [1/2]

SkXmp::SkXmp ( )
default

◆ ~SkXmp()

virtual SkXmp::~SkXmp ( )
virtualdefault

◆ SkXmp() [2/2]

SkXmp::SkXmp ( const SkXmp )
delete

Member Function Documentation

◆ getContainerGainmapLocation()

virtual bool SkXmp::getContainerGainmapLocation ( size_t *  offset,
size_t *  size 
) const
pure virtual

Implemented in SkXmpImpl.

◆ getExtendedXmpGuid()

virtual const char * SkXmp::getExtendedXmpGuid ( ) const
pure virtual

Implemented in SkXmpImpl.

◆ getGainmapInfoAdobe()

virtual bool SkXmp::getGainmapInfoAdobe ( SkGainmapInfo info) const
pure virtual

Implemented in SkXmpImpl.

◆ getGainmapInfoApple()

virtual bool SkXmp::getGainmapInfoApple ( float  exifHdrHeadroom,
SkGainmapInfo info 
) const
pure virtual

Implemented in SkXmpImpl.

◆ getGainmapInfoHDRGM()

bool SkXmp::getGainmapInfoHDRGM ( SkGainmapInfo info) const
inline

Definition at line 39 of file SkXmp.h.

39{ return getGainmapInfoAdobe(info); }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
virtual bool getGainmapInfoAdobe(SkGainmapInfo *info) const =0

◆ Make() [1/2]

std::unique_ptr< SkXmp > SkXmp::Make ( sk_sp< SkData xmpData)
static

Definition at line 652 of file SkXmp.cpp.

652 {
653 std::unique_ptr<SkXmpImpl> xmp(new SkXmpImpl);
654 if (!xmp->parseDom(std::move(xmpData), /*extended=*/false)) {
655 return nullptr;
656 }
657 return xmp;
658}

◆ Make() [2/2]

std::unique_ptr< SkXmp > SkXmp::Make ( sk_sp< SkData xmpStandard,
sk_sp< SkData xmpExtended 
)
static

Definition at line 660 of file SkXmp.cpp.

660 {
661 std::unique_ptr<SkXmpImpl> xmp(new SkXmpImpl);
662 if (!xmp->parseDom(std::move(xmpStandard), /*extended=*/false)) {
663 return nullptr;
664 }
665 // Try to parse extended xmp but ignore the return value: if parsing fails, we'll still return
666 // the standard xmp.
667 (void)xmp->parseDom(std::move(xmpExtended), /*extended=*/true);
668 return xmp;
669}

◆ operator=()

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

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