AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
dpx_hdr.cpp File Reference

Implementation of DpxHdr class adapted from STwo's dpx file I/O. More...

#include "ajabase/common/types.h"
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <assert.h>
#include <algorithm>
#include "dpx_hdr.h"
Include dependency graph for dpx_hdr.cpp:

Go to the source code of this file.

Classes

union  FloatSwap
 

Functions

float htonf (float f)
 
float ntohf (float f)
 
uint32_t dpx_get_u32 (const uint32_t *ptr, bool BE)
 
void dpx_set_u32 (uint32_t *ptr, bool BE, uint32_t val)
 
uint16_t dpx_get_u16 (const uint16_t *ptr, bool BE)
 
void dpx_set_u16 (uint16_t *ptr, bool BE, uint16_t val)
 
void dpx_set_r32 (float *ptr, bool BE, float val)
 
float dpx_get_r32 (const float *ptr, bool BE)
 

Detailed Description

Implementation of DpxHdr class adapted from STwo's dpx file I/O.

Definition in file dpx_hdr.cpp.

Function Documentation

◆ dpx_get_r32()

float dpx_get_r32 ( const float *  ptr,
bool  BE 
)

Definition at line 95 of file dpx_hdr.cpp.

◆ dpx_get_u16()

uint16_t dpx_get_u16 ( const uint16_t *  ptr,
bool  BE 
)

Definition at line 72 of file dpx_hdr.cpp.

◆ dpx_get_u32()

uint32_t dpx_get_u32 ( const uint32_t *  ptr,
bool  BE 
)

Definition at line 57 of file dpx_hdr.cpp.

◆ dpx_set_r32()

void dpx_set_r32 ( float *  ptr,
bool  BE,
float  val 
)

Definition at line 88 of file dpx_hdr.cpp.

◆ dpx_set_u16()

void dpx_set_u16 ( uint16_t *  ptr,
bool  BE,
uint16_t  val 
)

Definition at line 81 of file dpx_hdr.cpp.

◆ dpx_set_u32()

void dpx_set_u32 ( uint32_t *  ptr,
bool  BE,
uint32_t  val 
)

Definition at line 65 of file dpx_hdr.cpp.

◆ htonf()

float htonf ( float  f)
inline

Definition at line 38 of file dpx_hdr.cpp.

◆ ntohf()

float ntohf ( float  f)
inline

Definition at line 47 of file dpx_hdr.cpp.