Data Layout

group NVCV_CPP_CORE_DATALAYOUT

Typedefs

using ExtraChannelInfo = NVCVExtraChannelInfo

Enums

enum class Packing : int32_t

Values:

enumerator NONE
enumerator X1

One 1-bit channel.

enumerator X2

One 2-bit channel.

enumerator X4

One 4-bit channel.

enumerator X8

One 8-bit channel.

enumerator X4Y4

Two 4-bit channels in one word.

enumerator X3Y3Z2

Three 3-, 3- and 2-bit channels in one 8-bit word.

enumerator X16

One 16-bit channel.

enumerator b6X10

One LSB 10-bit channel in one 16-bit word.

enumerator X10b6

One MSB 10-bit channel in one 16-bit word.

enumerator b4X12

One LSB 12-bit channel in one 16-bit word.

enumerator X12b4

One MSB 12-bit channel in one 16-bit word.

enumerator b2X14

One LSB 14-bit channel in one 16-bit word.

enumerator X8_Y8

Two 8-bit channels in two 8-bit words.

enumerator X5Y5Z6

Three 5-, 5- and 6-bit channels in one 16-bit word.

enumerator X5Y6Z5

Three 5-, 6- and 5-bit channels in one 16-bit word.

enumerator X6Y5Z5

Three 6-, 5- and 5-bit channels in one 16-bit word.

enumerator b4X4Y4Z4

Three 4-bit channels in one 16-bit word.

enumerator b1X5Y5Z5

Three 5-bit channels in one 16-bit word.

enumerator X5Y5b1Z5

Three 5-bit channels in one 16-bit word.

enumerator X1Y5Z5W5

Four 1-, 5-, 5- and 5-bit channels in one 16-bit word.

enumerator X4Y4Z4W4

Four 4-bit channels in one 16-bit word.

enumerator X5Y1Z5W5

Four 5-, 1-, 5- and 5-bit channels in one 16-bit word.

enumerator X5Y5Z1W5

Four 5-, 5-, 1- and 5-bit channels in one 16-bit word.

enumerator X5Y5Z5W1

Four 5-, 5-, 5- and 1-bit channels in one 16-bit word.

enumerator X8_Y8__X8_Z8

2 pixels of 2 8-bit channels each, totalling 4 8-bit words.

enumerator Y8_X8__Z8_X8

2 pixels of 2 swapped 8-bit channels each, totalling 4 8-bit words.

enumerator X24

One 24-bit channel.

enumerator X8_Y8_Z8

Three 8-bit channels in three 8-bit words.

enumerator X32

One 32-bit channel.

enumerator b12X20

One LSB 20-bit channel in one 32-bit word.

enumerator X16_Y16

Two 16-bit channels in two 16-bit words.

enumerator X10b6_Y10b6

Two MSB 10-bit channels in two 16-bit words.

enumerator X12b4_Y12b4

Two MSB 12-bit channels in two 16-bit words.

enumerator X10Y11Z11

Three 10-, 11- and 11-bit channels in one 32-bit word.

enumerator X11Y11Z10

Three 11-, 11- and 10-bit channels in one 32-bit word.

enumerator X8_Y8_Z8_W8

Four 8-bit channels in one 32-bit word.

enumerator X2Y10Z10W10

Four 2-, 10-, 10- and 10-bit channels in one 32-bit word.

enumerator X10Y10Z10W2

Four 10-, 10-, 10- and 2-bit channels in one 32-bit word.

enumerator X48

One 48-bit channel.

enumerator X16_Y16_Z16

Three 16-bit channels in three 16-bit words.

enumerator X64

One 64-bit channel.

enumerator X32_Y32

Two 32-bit channels in two 32-bit words.

enumerator X16_Y16_Z16_W16

Four 16-bit channels in one 64-bit word.

enumerator X96

One 96-bit channel.

enumerator X32_Y32_Z32

Three 32-bit channels in three 32-bit words.

enumerator X128

One 128-bit channel.

enumerator X64_Y64

Two 64-bit channels in two 64-bit words.

enumerator X32_Y32_Z32_W32

Four 32-bit channels in three 32-bit words.

enumerator X192

One 192-bit channel.

enumerator X64_Y64_Z64

Three 64-bit channels in three 64-bit words.

enumerator X256

One 256-bit channel.

enumerator X128_Y128

Two 128-bit channels in two 128-bit words.

enumerator X64_Y64_Z64_W64

Four 64-bit channels in four 64-bit words.

enum class DataKind : int8_t

Values:

enumerator UNSPECIFIED
enumerator UNSIGNED
enumerator SIGNED
enumerator FLOAT
enumerator COMPLEX
enum class MemLayout : int8_t

Values:

enumerator PITCH_LINEAR
enumerator BLOCK1_LINEAR
enumerator BLOCK2_LINEAR
enumerator BLOCK4_LINEAR
enumerator BLOCK8_LINEAR
enumerator BLOCK16_LINEAR
enumerator BLOCK32_LINEAR
enumerator BLOCK_LINEAR
enumerator PL
enumerator BL
enum class Channel : int8_t

Values:

enumerator NONE
enumerator X
enumerator Y
enumerator Z
enumerator W
enumerator MAX
enum class ExtraChannel : int8_t

Values:

enumerator U
enumerator D
enumerator POS3D
enum class AlphaType : int8_t

Values:

enumerator ASSOCIATED
enumerator UNASSOCIATED
enum class Swizzle : int32_t

Values:

enumerator S_0000
enumerator S_1000
enumerator S_0001
enumerator S_XYZW
enumerator S_ZYXW
enumerator S_WXYZ
enumerator S_WZYX
enumerator S_YZWX
enumerator S_XYZ1
enumerator S_XYZ0
enumerator S_YZW1
enumerator S_XXX1
enumerator S_XZY1
enumerator S_ZYX1
enumerator S_ZYX0
enumerator S_WZY1
enumerator S_X000
enumerator S_0X00
enumerator S_00X0
enumerator S_000X
enumerator S_Y000
enumerator S_0Y00
enumerator S_00Y0
enumerator S_000Y
enumerator S_0XY0
enumerator S_XXXY
enumerator S_YYYX
enumerator S_0YX0
enumerator S_X00Y
enumerator S_Y00X
enumerator S_X001
enumerator S_XY01
enumerator S_XY00
enumerator S_0XZ0
enumerator S_0ZX0
enumerator S_XZY0
enumerator S_YZX1
enumerator S_ZYW1
enumerator S_0YX1
enumerator S_XYXZ
enumerator S_YXZX
enumerator S_XZ00
enumerator S_WYXZ
enumerator S_YX00
enumerator S_YX01
enumerator S_00YX
enumerator S_00XY
enumerator S_0XY1
enumerator S_0X01
enumerator S_YZXW
enumerator S_YW00
enumerator S_XYW0
enumerator S_YZW0
enumerator S_YZ00
enumerator S_00X1
enumerator S_0ZXY
enumerator S_UNSUPPORTED
enum class ByteOrder : int8_t

Values:

enumerator LSB
enumerator MSB

Functions

inline Swizzle MakeSwizzle(Channel x, Channel y, Channel z, Channel w)
inline std::array<Channel, 4> GetChannels(Swizzle swizzle)
inline int32_t GetNumChannels(Swizzle swizzle)
inline Packing MakePacking(const PackingParams &params)
inline PackingParams GetParams(Packing packing)
inline int32_t GetNumComponents(Packing packing)
inline std::array<int32_t, 4> GetBitsPerComponent(Packing packing)
inline int32_t GetBitsPerPixel(Packing packing)
inline int32_t GetAlignment(Packing packing)
inline std::ostream &operator<<(std::ostream &out, DataKind dataKind)
inline std::ostream &operator<<(std::ostream &out, Packing packing)
inline std::ostream &operator<<(std::ostream &out, MemLayout memLayout)
inline std::ostream &operator<<(std::ostream &out, Channel swizzleChannel)
inline std::ostream &operator<<(std::ostream &out, Swizzle swizzle)
inline std::ostream &operator<<(std::ostream &out, ByteOrder byteOrder)

Variables

ByteOrder byteOrder
Swizzle swizzle
std::array<int32_t, (4)> bits
struct PackingParams
#include <DataLayout.hpp>