AJA NTV2 SDK
17.5.0.1492
NTV2 SDK 17.5.0.1492
|
Declares common types used in the ajabase library. More...
Go to the source code of this file.
Macros | |
#define | AJA_USE_CPLUSPLUS11 |
#define | NULL_PTR (0) |
#define | AJA_FCC(a) |
#define | AJA_FOURCC(a, b, c, d) |
#define | AJA_FOURCC_2(a) (AJA_FOURCC(a,0,0,0)) |
#define | AJA_SUCCESS(_status_) (_status_ >= 0) |
#define | AJA_FAILURE(_status_) (_status_ < 0) |
#define | AJA_UNUSED(_x_) (void)_x_; |
#define | AJA_CHECK_NULL(_ptr_, _res_) { if (__ptr__ == NULL) { return _res_; } } |
#define | AJA_RETURN_STATUS(_status_) { const AJAStatus s = _status_; if (s != AJA_STATUS_SUCCESS) { return s; } } |
#define | NUMELMS(aa) (sizeof(aa)/sizeof((aa)[0])) |
#define | AJA_ENDIAN_SWAP16(_data_) |
#define | AJA_ENDIAN_SWAP32(_data_) |
#define | AJA_ENDIAN_SWAP64(_data_) |
Enumerations | |
enum | AJAStatus { AJA_STATUS_TRUE = 1, AJA_STATUS_SUCCESS = 0, AJA_STATUS_FAIL =-1, AJA_STATUS_UNKNOWN =-2, AJA_STATUS_TIMEOUT =-3, AJA_STATUS_RANGE =-4, AJA_STATUS_INITIALIZE =-5, AJA_STATUS_NULL =-6, AJA_STATUS_OPEN =-7, AJA_STATUS_IO =-8, AJA_STATUS_DISABLED =-9, AJA_STATUS_BUSY =-10, AJA_STATUS_BAD_PARAM =-11, AJA_STATUS_FEATURE =-12, AJA_STATUS_UNSUPPORTED =-13, AJA_STATUS_READONLY =-14, AJA_STATUS_WRITEONLY =-15, AJA_STATUS_MEMORY =-16, AJA_STATUS_ALIGN =-17, AJA_STATUS_FLUSH =-18, AJA_STATUS_NOINPUT =-19, AJA_STATUS_SURPRISE_REMOVAL =-20, AJA_STATUS_NOT_FOUND =-21, AJA_STATUS_NOBUFFER =-100, AJA_STATUS_INVALID_TIME =-101, AJA_STATUS_NOSTREAM =-102, AJA_STATUS_TIMEEXPIRED =-103, AJA_STATUS_BADBUFFERCOUNT =-104, AJA_STATUS_BADBUFFERSIZE =-105, AJA_STATUS_STREAMCONFLICT =-106, AJA_STATUS_NOTINITIALIZED =-107, AJA_STATUS_STREAMRUNNING =-108, AJA_STATUS_REBOOT = -109, AJA_STATUS_POWER_CYCLE = -110 } |
Declares common types used in the ajabase library.
Definition in file types.h.
#define AJA_CHECK_NULL | ( | _ptr_, | |
_res_ | |||
) | { if (__ptr__ == NULL) { return _res_; } } |
#define AJA_ENDIAN_SWAP16 | ( | _data_ | ) |
#define AJA_ENDIAN_SWAP32 | ( | _data_ | ) |
#define AJA_ENDIAN_SWAP64 | ( | _data_ | ) |
#define AJA_FCC | ( | a | ) |
#define AJA_FOURCC | ( | a, | |
b, | |||
c, | |||
d | |||
) |
Macro to define a FourCC. Example: AJA_FOURCC('d','v','c',' ') AJA_FOURCC_2(0x24)
#define AJA_FOURCC_2 | ( | a | ) | (AJA_FOURCC(a,0,0,0)) |
#define AJA_RETURN_STATUS | ( | _status_ | ) | { const AJAStatus s = _status_; if (s != AJA_STATUS_SUCCESS) { return s; } } |
#define AJA_SUCCESS | ( | _status_ | ) | (_status_ >= 0) |