Flutter Engine
The Flutter Engine
third_party
skia
src
codec
SkJpegMetadataDecoderImpl.h
Go to the documentation of this file.
1
/*
2
* Copyright 2024 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef SkJpegMetadataDecoderImpl_DEFINED
9
#define SkJpegMetadataDecoderImpl_DEFINED
10
11
#include "
include/core/SkRefCnt.h
"
12
#include "
include/private/SkJpegMetadataDecoder.h
"
13
14
#include <vector>
15
16
#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS
17
#include "
include/private/SkXmp.h
"
18
#endif
// SK_CODEC_DECODES_JPEG_GAINMAPS
19
20
class
SkData
;
21
class
SkJpegSourceMgr
;
22
struct
SkGainmapInfo
;
23
24
using
SkJpegMarker
=
SkJpegMetadataDecoder::Segment
;
25
using
SkJpegMarkerList
= std::vector<SkJpegMarker>;
26
27
class
SkJpegMetadataDecoderImpl
:
public
SkJpegMetadataDecoder
{
28
public
:
29
SkJpegMetadataDecoderImpl
(
SkJpegMarkerList
markerList);
30
SkJpegMetadataDecoderImpl
(
sk_sp<SkData>
data
);
31
32
bool
findGainmapImage
(
SkJpegSourceMgr
* sourceMgr,
33
sk_sp<SkData>
& outGainmapImageData,
34
SkGainmapInfo
& outGainmapInfo)
const
;
35
36
#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS
37
std::unique_ptr<SkXmp> getXmpMetadata()
const
;
38
#endif
// SK_CODEC_DECODES_JPEG_GAINMAPS
39
40
// SkJpegMetadataDecoder implementation:
41
sk_sp<SkData>
getExifMetadata
(
bool
copyData)
const override
;
42
sk_sp<SkData>
getICCProfileData
(
bool
copyData)
const override
;
43
sk_sp<SkData>
getISOGainmapMetadata
(
bool
copyData)
const override
;
44
bool
mightHaveGainmapImage
()
const override
;
45
bool
findGainmapImage
(
sk_sp<SkData>
baseImageData,
46
sk_sp<SkData>
& outGainmapImageData,
47
SkGainmapInfo
& outGainmapInfo)
override
;
48
49
private
:
50
SkJpegMarkerList
fMarkerList;
51
};
52
53
#endif
// SkJpegMetadataDecoderImpl_DEFINED
SkJpegMarkerList
std::vector< SkJpegMarker > SkJpegMarkerList
Definition:
SkJpegMetadataDecoderImpl.h:25
SkJpegMetadataDecoder.h
SkRefCnt.h
SkXmp.h
SkData
Definition:
SkData.h:25
SkJpegMetadataDecoderImpl
Definition:
SkJpegMetadataDecoderImpl.h:27
SkJpegMetadataDecoderImpl::getICCProfileData
sk_sp< SkData > getICCProfileData(bool copyData) const override
Definition:
SkJpegMetadataDecoderImpl.cpp:448
SkJpegMetadataDecoderImpl::getISOGainmapMetadata
sk_sp< SkData > getISOGainmapMetadata(bool copyData) const override
Definition:
SkJpegMetadataDecoderImpl.cpp:458
SkJpegMetadataDecoderImpl::mightHaveGainmapImage
bool mightHaveGainmapImage() const override
Definition:
SkJpegMetadataDecoderImpl.cpp:468
SkJpegMetadataDecoderImpl::getExifMetadata
sk_sp< SkData > getExifMetadata(bool copyData) const override
Definition:
SkJpegMetadataDecoderImpl.cpp:438
SkJpegMetadataDecoderImpl::SkJpegMetadataDecoderImpl
SkJpegMetadataDecoderImpl(SkJpegMarkerList markerList)
Definition:
SkJpegMetadataDecoderImpl.cpp:413
SkJpegMetadataDecoderImpl::findGainmapImage
bool findGainmapImage(SkJpegSourceMgr *sourceMgr, sk_sp< SkData > &outGainmapImageData, SkGainmapInfo &outGainmapInfo) const
Definition:
SkJpegMetadataDecoderImpl.cpp:170
SkJpegMetadataDecoder
Definition:
SkJpegMetadataDecoder.h:23
SkJpegSourceMgr
Definition:
SkJpegSourceMgr.h:37
sk_sp< SkData >
SkGainmapInfo
Definition:
SkGainmapInfo.h:43
SkJpegMetadataDecoder::Segment
Definition:
SkJpegMetadataDecoder.h:34
data
std::shared_ptr< const fml::Mapping > data
Definition:
texture_gles.cc:63
Generated on Sun Jun 23 2024 21:56:09 for Flutter Engine by
1.9.4