va_types.h🔗

#include <va_types.h>

Defines

VA_ARG_TYPE(TYPE)🔗

Expands to TYPE for types that are passed as values and TYPE* for those that are passed as pointers.

VA_TYPE_ID(TYPE)🔗

Expands to TYPE_id.

Typedefs

typedef VA_REAL va_real🔗

Preferred real number type.

This is either double or float depending on target hardware and build configuration.

typedef int va_refcount🔗
typedef uint8_t va_bool🔗

A boolean value.

Either va_false or va_true.

typedef uint16_t va_float16🔗

16-bit floating-point type.

typedef uint32_t va_color32🔗

32-bit color type.

The memory layout is little-endian BGRX, where X is usually unused but can also be used as an alpha channel. There are 8 bits per color channel.

va_color32 red = 0xff0000;
va_color32 green = 0x00ff00;
va_color32 blue = 0x0000ff;
va_color32 transparentWhite = 0x99ffffff;

typedef uint64_t va_color64🔗

64-bit color type.

The memory layout is little-endian BGRX, where X is usually unused but can also be used as an alpha channel. There are 16 bits per color channel. Depending on the imaging equipment, the full 16-bit range may however not be used.

va_color64 tenBitRed = 0x03ff00000000ull;
va_color64 twelveBitGreen = 0x00000fff0000ull;
va_color64 sixteenBitBlue = 0x00000000ffffull;

typedef uint64_t va_datetime🔗

A point in time, measured as the number of milliseconds since the Unix epoch (00:00:00 UTC on 1 January 1970).

Enums

enum [anonymous]🔗

Possible values of Boolean variables.

Values:

enumerator va_false🔗

false

enumerator va_true🔗

true

enum va_type_id🔗

Type IDs for all supported types.

Values:

enumerator va_invalid_id🔗
enumerator int8_t_id🔗
enumerator int16_t_id🔗
enumerator int32_t_id🔗
enumerator int64_t_id🔗
enumerator uint8_t_id🔗
enumerator uint16_t_id🔗
enumerator uint32_t_id🔗
enumerator uint64_t_id🔗
enumerator float_id🔗
enumerator double_id🔗
enumerator va_float16_id🔗
enumerator va_bool_id🔗
enumerator va_datetime_id🔗
enumerator va_color32_id🔗
enumerator va_color64_id🔗
enumerator va_last_primitive_id🔗
enumerator va_complex_base_id🔗
enumerator va_fcomplex_id🔗
enumerator va_dcomplex_id🔗
enumerator va_matrix_base_id🔗
enumerator va_imatrix_id🔗
enumerator va_fmatrix_id🔗
enumerator va_dmatrix_id🔗
enumerator va_bmatrix_id🔗
enumerator va_fcmatrix_id🔗
enumerator va_dcmatrix_id🔗
enumerator va_image_id🔗
enumerator va_image_stream_id🔗
enumerator va_table_id🔗
enumerator va_string_id🔗
enumerator va_object_id🔗
enumerator va_array_id🔗
enumerator va_tensor_id🔗
enumerator va_real_id🔗
enumerator va_rmatrix_id🔗
enumerator va_cmatrix_id🔗
enumerator va_last_id🔗

Functions

size_t va_align_of(uint32_t id)🔗

Returns the alignment, in bytes, required for an instance of a type identified by id.

If id represents a type that is passed as a pointer (such as a matrix or an image), returns the alignment of a pointer.

size_t va_size_of(uint32_t id)🔗

Returns the size, in bytes, required for an instance of a type identified by id.

If id represents a type that is passed as a pointer (such as a matrix or an image), returns the size of a pointer.