#include "include/core/SkRefCnt.h"
#include "include/private/SkXmp.h"
#include <memory>
#include <vector>
Go to the source code of this file.
◆ SkJpegMakeXmp()
std::unique_ptr< SkXmp > SkJpegMakeXmp |
( |
const std::vector< sk_sp< SkData > > & |
decoderApp1Params | ) |
|
Definition at line 181 of file SkJpegXmp.cpp.
181 {
183 if (!xmpStandard) {
184 return nullptr;
185 }
186
187 std::unique_ptr<SkXmp> xmp =
SkXmp::Make(xmpStandard);
188 if (!xmp) {
189 return nullptr;
190 }
191
192
193 const char* extendedGuid = xmp->getExtendedXmpGuid();
194 if (!extendedGuid) {
195 return xmp;
196 }
197
198
200 if (!xmpExtended) {
201 SkCodecPrintf(
"Extended XMP was indicated but failed to read or validate.\n");
202 return xmp;
203 }
204
206}
#define SkCodecPrintf(...)
static sk_sp< SkData > read_xmp_standard(const std::vector< sk_sp< SkData > > &decoderApp1Params)
static sk_sp< SkData > read_xmp_extended(const std::vector< sk_sp< SkData > > &decoderApp1Params, const char *guidAscii)
static std::unique_ptr< SkXmp > Make(sk_sp< SkData > xmpData)