Flutter Engine
The Flutter Engine
|
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkFeatures.h"
#include <cstdint>
Go to the source code of this file.
Classes | |
struct | SkTEndianSwap16< N > |
struct | SkTEndianSwap32< N > |
struct | SkTEndianSwap64< N > |
Macros | |
#define | SkEndian_SwapBE16(n) static_cast<uint16_t>(n) |
#define | SkEndian_SwapBE32(n) static_cast<uint32_t>(n) |
#define | SkEndian_SwapBE64(n) static_cast<uint64_t>(n) |
#define | SkEndian_SwapLE16(n) SkEndianSwap16(n) |
#define | SkEndian_SwapLE32(n) SkEndianSwap32(n) |
#define | SkEndian_SwapLE64(n) SkEndianSwap64(n) |
#define | SkTEndian_SwapBE16(n) (n) |
#define | SkTEndian_SwapBE32(n) (n) |
#define | SkTEndian_SwapBE64(n) (n) |
#define | SkTEndian_SwapLE16(n) SkTEndianSwap16<n>::value |
#define | SkTEndian_SwapLE32(n) SkTEndianSwap32<n>::value |
#define | SkTEndian_SwapLE64(n) SkTEndianSwap64<n>::value |
#define | SkEndian_Byte0Shift 24 |
#define | SkEndian_Byte1Shift 16 |
#define | SkEndian_Byte2Shift 8 |
#define | SkEndian_Byte3Shift 0 |
#define | SK_UINT8_BITFIELD_BENDIAN |
#define | SK_UINT8_BITFIELD(f0, f1, f2, f3, f4, f5, f6, f7) |
Functions | |
static uint16_t | SkEndianSwap16 (uint16_t value) |
static void | SkEndianSwap16s (uint16_t array[], int count) |
static constexpr uint32_t | SkEndianSwap32 (uint32_t value) |
static void | SkEndianSwap32s (uint32_t array[], int count) |
static uint64_t | SkEndianSwap64 (uint64_t value) |
static void | SkEndianSwap64s (uint64_t array[], int count) |
Macros and helper functions for handling 16 and 32 bit values in big and little endian formats.
Definition in file SkEndian.h.
#define SK_UINT8_BITFIELD | ( | f0, | |
f1, | |||
f2, | |||
f3, | |||
f4, | |||
f5, | |||
f6, | |||
f7 | |||
) |
Definition at line 188 of file SkEndian.h.
#define SK_UINT8_BITFIELD_BENDIAN |
Definition at line 173 of file SkEndian.h.
#define SkEndian_Byte0Shift 24 |
Definition at line 158 of file SkEndian.h.
#define SkEndian_Byte1Shift 16 |
Definition at line 159 of file SkEndian.h.
#define SkEndian_Byte2Shift 8 |
Definition at line 160 of file SkEndian.h.
#define SkEndian_Byte3Shift 0 |
Definition at line 161 of file SkEndian.h.
#define SkEndian_SwapBE16 | ( | n | ) | static_cast<uint16_t>(n) |
Definition at line 135 of file SkEndian.h.
#define SkEndian_SwapBE32 | ( | n | ) | static_cast<uint32_t>(n) |
Definition at line 136 of file SkEndian.h.
#define SkEndian_SwapBE64 | ( | n | ) | static_cast<uint64_t>(n) |
Definition at line 137 of file SkEndian.h.
#define SkEndian_SwapLE16 | ( | n | ) | SkEndianSwap16(n) |
Definition at line 138 of file SkEndian.h.
#define SkEndian_SwapLE32 | ( | n | ) | SkEndianSwap32(n) |
Definition at line 139 of file SkEndian.h.
#define SkEndian_SwapLE64 | ( | n | ) | SkEndianSwap64(n) |
Definition at line 140 of file SkEndian.h.
#define SkTEndian_SwapBE16 | ( | n | ) | (n) |
Definition at line 142 of file SkEndian.h.
#define SkTEndian_SwapBE32 | ( | n | ) | (n) |
Definition at line 143 of file SkEndian.h.
#define SkTEndian_SwapBE64 | ( | n | ) | (n) |
Definition at line 144 of file SkEndian.h.
#define SkTEndian_SwapLE16 | ( | n | ) | SkTEndianSwap16<n>::value |
Definition at line 145 of file SkEndian.h.
#define SkTEndian_SwapLE32 | ( | n | ) | SkTEndianSwap32<n>::value |
Definition at line 146 of file SkEndian.h.
#define SkTEndian_SwapLE64 | ( | n | ) | SkTEndianSwap64<n>::value |
Definition at line 147 of file SkEndian.h.
|
inlinestatic |
Swap the two bytes in the low 16bits of the parameters. e.g. 0x1234 -> 0x3412
Definition at line 33 of file SkEndian.h.
|
inlinestatic |
Vector version of SkEndianSwap16(), which swaps the low two bytes of each value in the array.
Definition at line 44 of file SkEndian.h.
|
staticconstexpr |
|
inlinestatic |
Vector version of SkEndianSwap32(), which swaps the bytes of each value in the array.
Definition at line 73 of file SkEndian.h.
|
inlinestatic |
Reverse all 8 bytes in a 64bit value. e.g. 0x1122334455667788 -> 0x8877665544332211
Definition at line 85 of file SkEndian.h.
|
inlinestatic |
Vector version of SkEndianSwap64(), which swaps the bytes of each value in the array.
Definition at line 109 of file SkEndian.h.