#include <SkTiffUtility.h>
Definition at line 43 of file SkTiffUtility.h.
◆ getEntrySignedRational()
bool SkTiff::ImageFileDirectory::getEntrySignedRational |
( |
uint16_t |
entryIndex, |
|
|
uint32_t |
count, |
|
|
float * |
values |
|
) |
| const |
|
inline |
Definition at line 88 of file SkTiffUtility.h.
88 {
90 }
constexpr uint16_t kTypeSignedRational
◆ getEntryTag()
uint16_t SkTiff::ImageFileDirectory::getEntryTag |
( |
uint16_t |
entryIndex | ) |
const |
Definition at line 176 of file SkTiffUtility.cpp.
176 {
179}
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 > SkTiff::ImageFileDirectory::getEntryUndefinedData |
( |
uint16_t |
entryIndex | ) |
const |
Definition at line 226 of file SkTiffUtility.cpp.
226 {
229 const uint8_t*
data =
nullptr;
232 return nullptr;
233 }
235 return nullptr;
236 }
238}
const uint8_t * bytes() const
static sk_sp< SkData > MakeSubset(const SkData *src, size_t offset, size_t length)
constexpr uint16_t kTypeUndefined
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
std::shared_ptr< const fml::Mapping > data
◆ getEntryUnsignedLong()
bool SkTiff::ImageFileDirectory::getEntryUnsignedLong |
( |
uint16_t |
entryIndex, |
|
|
uint32_t |
count, |
|
|
uint32_t * |
values |
|
) |
| const |
|
inline |
Definition at line 85 of file SkTiffUtility.h.
85 {
87 }
constexpr uint16_t kTypeUnsignedLong
◆ getEntryUnsignedRational()
bool SkTiff::ImageFileDirectory::getEntryUnsignedRational |
( |
uint16_t |
entryIndex, |
|
|
uint32_t |
count, |
|
|
float * |
values |
|
) |
| const |
|
inline |
Definition at line 91 of file SkTiffUtility.h.
91 {
93 }
constexpr uint16_t kTypeUnsignedRational
◆ getEntryUnsignedShort()
bool SkTiff::ImageFileDirectory::getEntryUnsignedShort |
( |
uint16_t |
entryIndex, |
|
|
uint32_t |
count, |
|
|
uint16_t * |
values |
|
) |
| const |
|
inline |
Definition at line 82 of file SkTiffUtility.h.
82 {
84 }
constexpr uint16_t kTypeUnsignedShort
◆ getNumEntries()
uint16_t SkTiff::ImageFileDirectory::getNumEntries |
( |
| ) |
const |
|
inline |
◆ MakeFromOffset()
std::unique_ptr< ImageFileDirectory > SkTiff::ImageFileDirectory::MakeFromOffset |
( |
sk_sp< SkData > |
data, |
|
|
bool |
littleEndian, |
|
|
uint32_t |
ifdOffset, |
|
|
bool |
allowTruncated = false |
|
) |
| |
|
static |
Definition at line 150 of file SkTiffUtility.cpp.
153 {
154 uint16_t numEntries = 0;
155 uint32_t nextOffset = 0;
157 data.get(), littleEndian, ifdOffset, allowTruncated, &numEntries, &nextOffset)) {
159 return nullptr;
160 }
161 return std::unique_ptr<ImageFileDirectory>(new ImageFileDirectory(
162 std::move(
data), littleEndian, ifdOffset, numEntries, nextOffset));
163}
#define SkCodecPrintf(...)
static bool validate_ifd(const SkData *data, bool littleEndian, uint32_t ifdOffset, bool allowTruncated, uint16_t *outNumEntries, uint32_t *outNextIfdOffset)
◆ nextIfdOffset()
uint32_t SkTiff::ImageFileDirectory::nextIfdOffset |
( |
| ) |
const |
|
inline |
◆ ParseHeader()
bool SkTiff::ImageFileDirectory::ParseHeader |
( |
const SkData * |
data, |
|
|
bool * |
outLittleEndian, |
|
|
uint32_t * |
outIfdOffset |
|
) |
| |
|
static |
Definition at line 130 of file SkTiffUtility.cpp.
132 {
133
134 if (
data->size() < 8) {
136 return false;
137 }
139 SkCodecPrintf(
"Tiff header had invalid endian marker 0x%x,0x%x,0x%x,0x%x.\n",
144 return false;
145 }
147 return true;
148}
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: