#include <DMSrcSink.h>
Definition at line 253 of file DMSrcSink.h.
◆ ColorCodecSrc()
DM::ColorCodecSrc::ColorCodecSrc |
( |
Path |
path, |
|
|
bool |
decode_to_dst |
|
) |
| |
Definition at line 1066 of file DMSrcSink.cpp.
1067 , fDecodeToDst(decode_to_dst) {}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ draw()
Implements DM::Src.
Definition at line 1074 of file DMSrcSink.cpp.
1074 {
1076 if (!encoded) {
1078 }
1079
1081 if (nullptr == codec) {
1083 }
1084
1088 }
1089 if (fDecodeToDst) {
1092
1093
1094
1095
1096
1097 return Result::Skip(
"Skipping decoding without color transform.");
1098 }
1100 }
1101
1110
1111 return Result::Skip(
"SkCodec can't decode to this format.");
1112 default:
1114 }
1115}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static bool SkEncodedOriginSwapsWidthHeight(SkEncodedOrigin origin)
static Result Skip(const char *fmt,...) SK_PRINTF_LIKE(1
static Result Fatal(const char *fmt,...) SK_PRINTF_LIKE(1
SkImageInfo imageInfo() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static std::unique_ptr< SkCodec > MakeFromData(sk_sp< SkData >, SkSpan< const SkCodecs::Decoder > decoders, SkPngChunkReader *=nullptr)
static sk_sp< SkData > MakeFromFileName(const char path[])
const char * c_str() const
SK_API SkImageInfo SwapWidthHeight(const SkImageInfo &info)
sk_sp< const SkImage > image
SkImageInfo makeDimensions(SkISize newSize) const
SkColorSpace * colorSpace() const
◆ name()
Name DM::ColorCodecSrc::name |
( |
| ) |
const |
|
overridevirtual |
Implements DM::Src.
Definition at line 1126 of file DMSrcSink.cpp.
1126 {
1128}
static SkString Basename(const char *fullPath)
◆ size()
SkISize DM::ColorCodecSrc::size |
( |
| ) |
const |
|
overridevirtual |
Implements DM::Src.
Definition at line 1117 of file DMSrcSink.cpp.
1117 {
1120 if (nullptr == codec) {
1121 return {0, 0};
1122 }
1123 return {codec->getInfo().width(), codec->getInfo().height()};
1124}
◆ veto()
bool DM::ColorCodecSrc::veto |
( |
SinkFlags |
flags | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: