AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Declaration of DpxHdr class adapted from STwo's dpx file I/O. More...
#include "public.h"
#include "ajabase/common/types.h"
#include "ajabase/system/system.h"
#include <string>
Go to the source code of this file.
Classes | |
struct | dpx_file_info_struct |
struct | dpx_image_element_struct |
struct | dpx_image_info_struct |
struct | dpx_image_source_struct |
struct | dpx_motion_picture_film_header_struct |
struct | dpx_television_header_struct |
struct | dpx_header_struct |
class | DpxHdr |
Macros | |
#define | DPX_C_MAGIC 0x53445058 |
#define | DPX_C_MAGIC_BE 0x58504453 |
#define | DPX_C_VERSION "V1.0" |
#define | DPX_C_UNDEFINED_FLOAT 0xffffffff |
#define | SWAP16(e, v) ((e) ? htons(v) : (v)) |
#define | SWAP32(e, v) ((e) ? htonl(v) : (v)) |
#define | SWAPR32(e, v) ((e) ? htonf(v) : (v)) |
#define | UNSWAP16(e, v) ((e) ? ntohs(v) : (v)) |
#define | UNSWAP32(e, v) ((e) ? ntohl(v) : (v)) |
#define | UNSWAPR32(e, v) ((e) ? ntohf(v) : (v)) |
#define | DPX_VALID(p) |
#define | DPX_IS_BE(p) ((p) && ((p)->file_info.magic_num == DPX_C_MAGIC_BE)) |
#define | DPX_C_IMAGE_ELEM_DESC_RGB 50 |
#define | DPX_C_IMAGE_ELEM_DESC_RGBA 51 |
#define | DPX_C_IMAGE_ELEM_DESC_ARGB 52 |
#define | DPX_C_IMAGE_ELEM_DESC_422 100 |
#define | DPX_C_IMAGE_ELEM_DESC_444 102 |
#define | FLD_OFFET(TYPE, field) ((uint32_t)(&(((TYPE *)0)->field))) |
#define | DPX_GET_U32(hdr, fld) |
#define | DPX_SET_U32(hdr, fld, val) |
#define | DPX_GET_R32(hdr, fld) |
#define | DPX_SET_R32(hdr, fld, val) |
#define | DPX_GET_U16(hdr, fld) |
#define | DPX_SET_U16(hdr, fld, val) |
#define | DPX_GET_U8(hdr, fld) DPX_VALID(hdr) ? (hdr)->fld : (uint8_t)(-1) |
#define | DPX_SET_U8(hdr, fld, val) |
#define | DPX_SET_TEXT(hdr, fld, buf, len) |
#define | DPX_GET_TEXT(hdr, fld, buf, len) |
Typedefs | |
typedef struct dpx_file_info_struct | DPX_file_info_t |
typedef struct dpx_image_element_struct | DPX_image_element_t |
typedef struct dpx_image_info_struct | DPX_image_info_t |
typedef struct dpx_image_source_struct | DPX_image_source_t |
typedef struct dpx_motion_picture_film_header_struct | DPX_film_t |
typedef struct dpx_television_header_struct | DPX_television_t |
typedef struct dpx_header_struct | DPX_header_t |
Functions | |
uint32_t AJA_EXPORT | dpx_get_u32 (const uint32_t *ptr, bool BE) |
void AJA_EXPORT | dpx_set_u32 (uint32_t *ptr, bool BE, uint32_t val) |
uint16_t AJA_EXPORT | dpx_get_u16 (const uint16_t *ptr, bool BE) |
void AJA_EXPORT | dpx_set_u16 (uint16_t *ptr, bool BE, uint16_t val) |
float AJA_EXPORT | dpx_get_r32 (const float *ptr, bool BE) |
void AJA_EXPORT | dpx_set_r32 (float *ptr, bool BE, float val) |
Declaration of DpxHdr class adapted from STwo's dpx file I/O.
Definition in file dpx_hdr.h.
#define DPX_C_UNDEFINED_FLOAT 0xffffffff |
#define DPX_GET_R32 | ( | hdr, | |
fld | |||
) |
#define DPX_GET_TEXT | ( | hdr, | |
fld, | |||
buf, | |||
len | |||
) |
#define DPX_GET_U16 | ( | hdr, | |
fld | |||
) |
#define DPX_GET_U32 | ( | hdr, | |
fld | |||
) |
#define DPX_GET_U8 | ( | hdr, | |
fld | |||
) | DPX_VALID(hdr) ? (hdr)->fld : (uint8_t)(-1) |
#define DPX_IS_BE | ( | p | ) | ((p) && ((p)->file_info.magic_num == DPX_C_MAGIC_BE)) |
#define DPX_SET_R32 | ( | hdr, | |
fld, | |||
val | |||
) |
#define DPX_SET_TEXT | ( | hdr, | |
fld, | |||
buf, | |||
len | |||
) |
#define DPX_SET_U16 | ( | hdr, | |
fld, | |||
val | |||
) |
#define DPX_SET_U32 | ( | hdr, | |
fld, | |||
val | |||
) |
#define DPX_SET_U8 | ( | hdr, | |
fld, | |||
val | |||
) |
#define DPX_VALID | ( | p | ) |
#define FLD_OFFET | ( | TYPE, | |
field | |||
) | ((uint32_t)(&(((TYPE *)0)->field))) |
typedef struct dpx_file_info_struct DPX_file_info_t |
typedef struct dpx_motion_picture_film_header_struct DPX_film_t |
typedef struct dpx_header_struct DPX_header_t |
typedef struct dpx_image_element_struct DPX_image_element_t |
typedef struct dpx_image_info_struct DPX_image_info_t |
typedef struct dpx_image_source_struct DPX_image_source_t |
typedef struct dpx_television_header_struct DPX_television_t |
float AJA_EXPORT dpx_get_r32 | ( | const float * | ptr, |
bool | BE | ||
) |
Definition at line 95 of file dpx_hdr.cpp.
uint16_t AJA_EXPORT dpx_get_u16 | ( | const uint16_t * | ptr, |
bool | BE | ||
) |
Definition at line 72 of file dpx_hdr.cpp.
uint32_t AJA_EXPORT dpx_get_u32 | ( | const uint32_t * | ptr, |
bool | BE | ||
) |
Definition at line 57 of file dpx_hdr.cpp.
void AJA_EXPORT dpx_set_r32 | ( | float * | ptr, |
bool | BE, | ||
float | val | ||
) |
Definition at line 88 of file dpx_hdr.cpp.
void AJA_EXPORT dpx_set_u16 | ( | uint16_t * | ptr, |
bool | BE, | ||
uint16_t | val | ||
) |
Definition at line 81 of file dpx_hdr.cpp.
void AJA_EXPORT dpx_set_u32 | ( | uint32_t * | ptr, |
bool | BE, | ||
uint32_t | val | ||
) |
Definition at line 65 of file dpx_hdr.cpp.