#include <SkTiffUtility.h>
Definition at line 22 of file SkTiffUtility.h.
◆ getEntrySignedRational()
bool SkTiffImageFileDirectory::getEntrySignedRational |
( |
uint16_t |
entryIndex, |
|
|
uint32_t |
count, |
|
|
float * |
values |
|
) |
| const |
|
inline |
Definition at line 65 of file SkTiffUtility.h.
65 {
66 return getEntryValuesGeneric(entryIndex, kTypeSignedRational,
count, values);
67 }
◆ getEntryTag()
uint16_t SkTiffImageFileDirectory::getEntryTag |
( |
uint16_t |
entryIndex | ) |
const |
Definition at line 158 of file SkTiffUtility.cpp.
158 {
161}
static uint16_t get_endian_short(const uint8_t *data, bool littleEndian)
static const uint8_t * get_entry_address(const SkData *data, uint32_t ifdOffset, uint16_t entryIndex)
◆ getEntryUndefinedData()
sk_sp< SkData > SkTiffImageFileDirectory::getEntryUndefinedData |
( |
uint16_t |
entryIndex | ) |
const |
Definition at line 208 of file SkTiffUtility.cpp.
208 {
211 const uint8_t*
data =
nullptr;
213 if (!getEntryRawData(entryIndex,
nullptr, &
type, &
count, &data, &size)) {
214 return nullptr;
215 }
216 if (
type != kTypeUndefined) {
217 return nullptr;
218 }
220}
const uint8_t * bytes() const
static sk_sp< SkData > MakeSubset(const SkData *src, size_t offset, size_t length)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ getEntryUnsignedLong()
bool SkTiffImageFileDirectory::getEntryUnsignedLong |
( |
uint16_t |
entryIndex, |
|
|
uint32_t |
count, |
|
|
uint32_t * |
values |
|
) |
| const |
|
inline |
Definition at line 62 of file SkTiffUtility.h.
62 {
63 return getEntryValuesGeneric(entryIndex, kTypeUnsignedLong,
count, values);
64 }
◆ getEntryUnsignedRational()
bool SkTiffImageFileDirectory::getEntryUnsignedRational |
( |
uint16_t |
entryIndex, |
|
|
uint32_t |
count, |
|
|
float * |
values |
|
) |
| const |
|
inline |
Definition at line 68 of file SkTiffUtility.h.
68 {
69 return getEntryValuesGeneric(entryIndex, kTypeUnsignedRational,
count, values);
70 }
◆ getEntryUnsignedShort()
bool SkTiffImageFileDirectory::getEntryUnsignedShort |
( |
uint16_t |
entryIndex, |
|
|
uint32_t |
count, |
|
|
uint16_t * |
values |
|
) |
| const |
|
inline |
Definition at line 59 of file SkTiffUtility.h.
59 {
60 return getEntryValuesGeneric(entryIndex, kTypeUnsignedShort,
count, values);
61 }
◆ getNumEntries()
uint16_t SkTiffImageFileDirectory::getNumEntries |
( |
| ) |
const |
|
inline |
◆ MakeFromOffset()
Definition at line 135 of file SkTiffUtility.cpp.
136 {
137 uint16_t numEntries = 0;
138 uint32_t nextOffset = 0;
139 if (!
validate_ifd(
data.get(), littleEndian, ifdOffset, &numEntries, &nextOffset)) {
141 return nullptr;
142 }
144 std::move(data), littleEndian, ifdOffset, numEntries, nextOffset));
145}
#define SkCodecPrintf(...)
static bool validate_ifd(const SkData *data, bool littleEndian, uint32_t ifdOffset, uint16_t *outNumEntries, uint32_t *outNextIfdOffset)
◆ nextIfdOffset()
uint32_t SkTiffImageFileDirectory::nextIfdOffset |
( |
| ) |
const |
|
inline |
◆ ParseHeader()
bool SkTiffImageFileDirectory::ParseHeader |
( |
const SkData * |
data, |
|
|
bool * |
outLittleEndian, |
|
|
uint32_t * |
outIfdOffset |
|
) |
| |
|
static |
Definition at line 115 of file SkTiffUtility.cpp.
117 {
118
119 if (
data->size() < 8) {
121 return false;
122 }
124 SkCodecPrintf(
"Tiff header had invalid endian marker 0x%x,0x%x,0x%x,0x%x.\n",
129 return false;
130 }
132 return true;
133}
static uint32_t get_endian_int(const uint8_t *data, bool littleEndian)
static bool is_valid_endian_marker(const uint8_t *data, bool *isLittleEndian)
The documentation for this class was generated from the following files: