TuttleOFX  1
dpx Namespace Reference

OpenDPX namespace. More...

Data Structures

class  Codec
 compress / decompress data segments base class defaults to None More...
struct  Block
 Rectangle block definition defined by two points. More...
class  Reader
 DPX Image Reader class. More...
class  Writer
 DPX Image Writer class. More...
struct  ImageElement
 Data Structure for Image Element. More...
struct  GenericHeader
 Generic File and Image Header Information. More...
struct  IndustryHeader
 Motion Picture and Television Industry Specific Information. More...
struct  Header
 Complete DPX Header. More...
struct  UserDefinedData
 User Defined data. More...
class  ElementReadStream
class  RunLengthEncoding
 compress / decompress data segments, used for RLE compression More...
struct  BufferAccess

Typedefs

typedef unsigned char U8
 Unsigned 8 bit integer.
typedef unsigned short U16
 Unsigned 16 bit integer.
typedef unsigned int U32
 Unsigned 32 bit integer.
typedef float R32
 32 bit floating point number
typedef double R64
 64 bit floating point number
typedef char ASCII
 ASCII character.

Enumerations

enum  Endian { kLittleEndian, kBigEndian }
 DPX files can be stored in big- or little-endian byte order. More...
enum  DataSize {
  kByte, kWord, kInt, kFloat,
  kDouble
}
 Component Data Storage Data Type. More...
enum  Orientation {
  kLeftToRightTopToBottom = 0, kRightToLeftTopToBottom = 1, kLeftToRightBottomToTop = 2, kRightToLeftBottomToTop = 3,
  kTopToBottomLeftToRight = 4, kTopToBottomRightToLeft = 5, kBottomToTopLeftToRight = 6, kBottomToTopRightToLeft = 7,
  kUndefinedOrientation = 0xffff
}
 Image Orientation Code. More...
enum  Descriptor {
  kUserDefinedDescriptor = 0, kRed = 1, kGreen = 2, kBlue = 3,
  kAlpha = 4, kLuma = 6, kColorDifference = 7, kDepth = 8,
  kCompositeVideo = 9, kRGB = 50, kRGBA = 51, kABGR = 52,
  kCbYCrY = 100, kCbYACrYA = 101, kCbYCr = 102, kCbYCrA = 103,
  kUserDefined2Comp = 150, kUserDefined3Comp = 151, kUserDefined4Comp = 152, kUserDefined5Comp = 153,
  kUserDefined6Comp = 154, kUserDefined7Comp = 155, kUserDefined8Comp = 156, kUndefinedDescriptor = 0xff
}
 Image element Descriptor. More...
enum  Characteristic {
  kUserDefined = 0, kPrintingDensity, kLinear, kLogarithmic,
  kUnspecifiedVideo, kSMPTE274M, kITUR709, kITUR601,
  kITUR602, kNTSCCompositeVideo, kPALCompositeVideo, kZLinear,
  kZHomogeneous, kUndefinedCharacteristic = 0xff
}
 Transfer Characteristic and Colorimetric Specification. More...
enum  VideoSignal {
  kUndefined = 0, kNTSC = 1, kPAL = 2, kPAL_M = 3,
  kSECAM = 4, k525LineInterlace43AR = 50, k625LineInterlace43AR = 51, k525LineInterlace169AR = 100,
  k625LineInterlace169AR = 101, k1050LineInterlace169AR = 150, k1125LineInterlace169AR_274 = 151, k1250LineInterlace169AR = 152,
  k1125LineInterlace169AR_240 = 153, k525LineProgressive169AR = 200, k625LineProgressive169AR = 201, k750LineProgressive169AR = 202,
  k1125LineProgressive169AR = 203
}
 Video Signal Standard. More...
enum  Packing { kPacked = 0, kFilledMethodA = 1, kFilledMethodB = 2 }
 Component data packing method. More...
enum  Encoding { kNone = 0, kRLE = 1 }
 Component data encoding method. More...

Functions

void BaseTypeConverter (U8 &src, U8 &dst)
void BaseTypeConverter (U8 &src, U16 &dst)
void BaseTypeConverter (U8 &src, U32 &dst)
void BaseTypeConverter (U8 &src, R32 &dst)
void BaseTypeConverter (U8 &src, R64 &dst)
void BaseTypeConverter (U16 &src, U8 &dst)
void BaseTypeConverter (U16 &src, U16 &dst)
void BaseTypeConverter (U16 &src, U32 &dst)
void BaseTypeConverter (U16 &src, R32 &dst)
void BaseTypeConverter (U16 &src, R64 &dst)
void BaseTypeConverter (U32 &src, U8 &dst)
void BaseTypeConverter (U32 &src, U16 &dst)
void BaseTypeConverter (U32 &src, U32 &dst)
void BaseTypeConverter (U32 &src, R32 &dst)
void BaseTypeConverter (U32 &src, R64 &dst)
void BaseTypeConverter (R32 &src, U8 &dst)
void BaseTypeConverter (R32 &src, U16 &dst)
void BaseTypeConverter (R32 &src, U32 &dst)
void BaseTypeConverter (R32 &src, R32 &dst)
void BaseTypeConverter (R32 &src, R64 &dst)
void BaseTypeConverter (R64 &src, U8 &dst)
void BaseTypeConverter (R64 &src, U16 &dst)
void BaseTypeConverter (R64 &src, U32 &dst)
void BaseTypeConverter (R64 &src, R32 &dst)
void BaseTypeConverter (R64 &src, R64 &dst)
void BaseTypeConvertU10ToU16 (U16 &src, U16 &dst)
void BaseTypeConvertU12ToU16 (U16 &src, U16 &dst)
bool IdentifyFile (InStream *file)
 determine if the image file is DPX
bool IdentifyFile (const void *data)
 determine if the image file is DPX
const char * DefaultExtension ()
 returns a char * of the default DPX file extension
const char * Version ()
const char * LibraryVersion ()
 returns the version string for this library
template<typename T >
SwapBytes (T &value)
template<>
unsigned short SwapBytes (unsigned short &value)
template<>
unsigned char SwapBytes (unsigned char &value)
template<>
char SwapBytes (char &value)
template<typename T >
void SwapBuffer (T *buf, unsigned int len)
template<DataSize SIZE>
void EndianSwapImageBuffer (void *data, int length)
void EndianSwapImageBuffer (DataSize size, void *data, int length)
template<typename BUF , int PADDINGBITS>
void Unfill10bitFilled (U32 *readBuf, const int x, BUF *data, int count, int bufoff, const int numberOfComponents)
template<typename IR , typename BUF , int PADDINGBITS>
bool Read10bitFilled (const Header &dpxHeader, U32 *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename IR , typename BUF >
bool Read10bitFilledMethodA (const Header &dpx, U32 *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename IR , typename BUF >
bool Read10bitFilledMethodB (const Header &dpx, U32 *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename BUF , U32 MASK, int MULTIPLIER, int REMAIN, int REVERSE>
void UnPackPacked (U32 *readBuf, const int bitDepth, BUF *data, int count, int bufoff)
template<typename IR , typename BUF , U32 MASK, int MULTIPLIER, int REMAIN, int REVERSE>
bool ReadPacked (const Header &dpxHeader, U32 *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename IR , typename BUF >
bool Read10bitPacked (const Header &dpxHeader, U32 *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename IR , typename BUF >
bool Read12bitPacked (const Header &dpxHeader, U32 *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename IR , typename SRC , DataSize SRCTYPE, typename BUF , DataSize BUFTYPE>
bool ReadBlockTypes (const Header &dpxHeader, SRC *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename IR , typename BUF >
bool Read12bitFilledMethodB (const Header &dpxHeader, U16 *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename IR , typename BUF , DataSize BUFTYPE>
bool ReadImageBlock (const Header &dpxHeader, U32 *readBuf, IR *fd, const int element, const Block &block, BUF *data)
template<typename IR >
bool ReadImageBlock (const Header &dpxHeader, U32 *readBuf, IR *fd, const int element, const Block &block, void *data, const DataSize size)
void EndianBufferSwap (int bitdepth, dpx::Packing packing, void *buf, const size_t size)
template<typename T1 , typename T2 >
void MultiTypeBufferCopy (T1 *dst, T2 *src, const int len)
template<typename IB >
void CopyWriteBuffer (DataSize src_size, unsigned char *src, IB *dst, const int len)
template<typename IB , int BITDEPTH>
void RleCompress (IB *src, IB *dst, const int bufsize, const int len, BufferAccess &access)
template<typename IB , int BITDEPTH>
void WritePackedMethod (IB *src, IB *dst, const int len, const bool reverse, BufferAccess &access)
template<typename IB , Packing METHOD>
void WritePackedMethodAB_10bit (IB *src, IB *dst, const int len, const bool reverse, BufferAccess &access)
template<typename IB , int BITDEPTH, bool SAMEBUFTYPE>
int WriteBuffer (OutStream *fd, DataSize src_size, void *src_buf, const U32 width, const U32 height, const int noc, const Packing packing, const bool rle, const bool reverse, const int eolnPad, char *blank, bool &status, bool swapEndian)
template<typename IB , int BITDEPTH, bool SAMEBUFTYPE>
int WriteFloatBuffer (OutStream *fd, DataSize src_size, void *src_buf, const U32 width, const U32 height, const int noc, const Packing packing, const bool rle, const int eolnPad, char *blank, bool &status, bool swapEndian)

Variables

Endian systemByteOrder = (*(unsigned char*)lPtr == 0x78 ? dpx::kLittleEndian : dpx::kBigEndian)

Detailed Description

OpenDPX namespace.


Typedef Documentation

char dpx::ASCII

ASCII character.

Definition at line 118 of file DPXHeader.h.

float dpx::R32

32 bit floating point number

Definition at line 106 of file DPXHeader.h.

float dpx::R64

64 bit floating point number

Definition at line 112 of file DPXHeader.h.

unsigned char dpx::U16

Unsigned 16 bit integer.

Definition at line 94 of file DPXHeader.h.

unsigned char dpx::U32

Unsigned 32 bit integer.

Definition at line 100 of file DPXHeader.h.

unsigned char dpx::U8

Unsigned 8 bit integer.

Definition at line 88 of file DPXHeader.h.


Enumeration Type Documentation

Transfer Characteristic and Colorimetric Specification.

Enumerator:
kUserDefined 

User defined.

kPrintingDensity 

Printing density.

kLinear 

Linear, transfer only.

kLogarithmic 

Logarithmic, transfer only.

kUnspecifiedVideo 

Unspecified video.

kSMPTE274M 

SMPTE 274M.

kITUR709 

ITU-R 709-4.

kITUR601 

ITU-R 601-5 system B or G.

kITUR602 

ITU-R 601-5 system M.

kNTSCCompositeVideo 

NTSC composite video.

kPALCompositeVideo 

PAL composite video.

kZLinear 

Z depth linear, transfer only.

kZHomogeneous 

Z depth homogeneous, transfer only.

kUndefinedCharacteristic 

Undefined.

Definition at line 190 of file DPXHeader.h.

Component Data Storage Data Type.

Enumerator:
kByte 

8-bit size component

kWord 
kInt 
kFloat 
kDouble 

Definition at line 125 of file DPXHeader.h.

Image element Descriptor.

Enumerator:
kUserDefinedDescriptor 

User defined descriptor.

kRed 

Red.

kGreen 

Green.

kBlue 

Blue.

kAlpha 

Alpha.

kLuma 

Luma (Y)

kColorDifference 

Color difference.

kDepth 

Depth.

kCompositeVideo 

Composite video.

kRGB 

R,G,B.

kRGBA 

R,G,B,A.

kABGR 

A,B,G,R.

kCbYCrY 

Cb,Y,Cr,Y (4:2:2)

kCbYACrYA 

Cb,Y,A,Cr,Y,A (4:2:2:4)

kCbYCr 

Cb,Y,Cr (4:4:4)

kCbYCrA 

Cb,Y,Cr,A (4:4:4:4)

kUserDefined2Comp 

User defined 2 component element.

kUserDefined3Comp 

User defined 3 component element.

kUserDefined4Comp 

User defined 4 component element.

kUserDefined5Comp 

User defined 5 component element.

kUserDefined6Comp 

User defined 6 component element.

kUserDefined7Comp 

User defined 7 component element.

kUserDefined8Comp 

User defined 8 component element.

kUndefinedDescriptor 

Undefined descriptor.

Definition at line 157 of file DPXHeader.h.

Component data encoding method.

Enumerator:
kNone 
kRLE 

Definition at line 251 of file DPXHeader.h.

DPX files can be stored in big- or little-endian byte order.

Enumerator:
kLittleEndian 

increasing numeric significance with increasing memory

kBigEndian 

big end first

Definition at line 70 of file DPX.h.

Image Orientation Code.

Enumerator:
kLeftToRightTopToBottom 

Oriented left to right, top to bottom.

kRightToLeftTopToBottom 

Oriented right to left, top to bottom.

kLeftToRightBottomToTop 

Oriented left to right, bottom to top.

kRightToLeftBottomToTop 

Oriented right to left, bottom to top.

kTopToBottomLeftToRight 

Oriented top to bottom, left to right.

kTopToBottomRightToLeft 

Oriented top to bottom, right to left.

kBottomToTopLeftToRight 

Oriented bottom to top, left to right.

kBottomToTopRightToLeft 

Oriented bottom to top, right to left.

kUndefinedOrientation 

Undefined orientation.

Definition at line 139 of file DPXHeader.h.

Component data packing method.

Enumerator:
kPacked 

Packed into 32-bit words.

kFilledMethodA 

Filled to 32-bit words, method A.

kFilledMethodB 

Filled to 32-bit words, method B.

Definition at line 239 of file DPXHeader.h.

Video Signal Standard.

Enumerator:
kUndefined 

Undefined.

kNTSC 

NTSC.

kPAL 

PAL.

kPAL_M 

PAL-M.

kSECAM 

SECAM.

k525LineInterlace43AR 

YCbCr ITU-R 601-5 525-line, 2:1 interlace, 4:3 aspect ratio.

k625LineInterlace43AR 

YCbCr ITU-R 601-5 625-line, 2:1 interlace, 4:3 aspect ratio.

k525LineInterlace169AR 

YCbCr ITU-R 601-5 525-line, 2:1 interlace, 16:9 aspect ratio.

k625LineInterlace169AR 

YCbCr ITU-R 601-5 625-line, 2:1 interlace, 16:9 aspect ratio.

k1050LineInterlace169AR 

YCbCr 1050-line, 2:1 interlace, 16:9 aspect ratio.

k1125LineInterlace169AR_274 

YCbCr 1125-line, 2:1 interlace, 16:9 aspect ratio (SMPTE 274M)

k1250LineInterlace169AR 

YCbCr 1250-line, 2:1 interlace, 16:9 aspect ratio.

k1125LineInterlace169AR_240 

YCbCr 1125-line, 2:1 interlace, 16:9 aspect ratio (SMPTE 240M)

k525LineProgressive169AR 

YCbCr 525-line, 1:1 progressive, 16:9 aspect ratio.

k625LineProgressive169AR 

YCbCr 625-line, 1:1 progressive, 16:9 aspect ratio.

k750LineProgressive169AR 

YCbCr 750-line, 1:1 progressive, 16:9 aspect ratio (SMPTE 296M)

k1125LineProgressive169AR 

YCbCr 1125-line, 1:1 progressive, 16:9 aspect ratio (SMPTE 274M)

Definition at line 213 of file DPXHeader.h.


Function Documentation

void dpx::BaseTypeConverter ( U8 &  src,
U8 &  dst 
) [inline]
void dpx::BaseTypeConverter ( U8 &  src,
U16 &  dst 
) [inline]

Definition at line 65 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U8 &  src,
U32 &  dst 
) [inline]

Definition at line 70 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U8 &  src,
R32 &  dst 
) [inline]

Definition at line 75 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U8 &  src,
R64 &  dst 
) [inline]

Definition at line 80 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U16 &  src,
U8 &  dst 
) [inline]

Definition at line 85 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U16 &  src,
U16 &  dst 
) [inline]

Definition at line 90 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U16 &  src,
U32 &  dst 
) [inline]

Definition at line 95 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U16 &  src,
R32 &  dst 
) [inline]

Definition at line 100 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U16 &  src,
R64 &  dst 
) [inline]

Definition at line 105 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U32 &  src,
U8 &  dst 
) [inline]

Definition at line 110 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U32 &  src,
U16 &  dst 
) [inline]

Definition at line 115 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U32 &  src,
U32 &  dst 
) [inline]

Definition at line 120 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U32 &  src,
R32 &  dst 
) [inline]

Definition at line 125 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( U32 &  src,
R64 &  dst 
) [inline]

Definition at line 130 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R32 &  src,
U8 &  dst 
) [inline]

Definition at line 135 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R32 &  src,
U16 &  dst 
) [inline]

Definition at line 140 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R32 &  src,
U32 &  dst 
) [inline]

Definition at line 145 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R32 &  src,
R32 &  dst 
) [inline]

Definition at line 150 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R32 &  src,
R64 &  dst 
) [inline]

Definition at line 155 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R64 &  src,
U8 &  dst 
) [inline]

Definition at line 160 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R64 &  src,
U16 &  dst 
) [inline]

Definition at line 165 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R64 &  src,
U32 &  dst 
) [inline]

Definition at line 170 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R64 &  src,
R32 &  dst 
) [inline]

Definition at line 175 of file BaseTypeConverter.h.

void dpx::BaseTypeConverter ( R64 &  src,
R64 &  dst 
) [inline]

Definition at line 180 of file BaseTypeConverter.h.

void dpx::BaseTypeConvertU10ToU16 ( U16 &  src,
U16 &  dst 
) [inline]

Definition at line 185 of file BaseTypeConverter.h.

Referenced by Read10bitFilled(), Unfill10bitFilled(), and UnPackPacked().

void dpx::BaseTypeConvertU12ToU16 ( U16 &  src,
U16 &  dst 
) [inline]

Definition at line 190 of file BaseTypeConverter.h.

Referenced by Read12bitFilledMethodB(), and UnPackPacked().

template<typename IB >
void dpx::CopyWriteBuffer ( DataSize  src_size,
unsigned char *  src,
IB *  dst,
const int  len 
)

Definition at line 77 of file WriterInternal.h.

References kByte, kDouble, kFloat, and kWord.

const char * dpx::DefaultExtension ( ) [inline]

returns a char * of the default DPX file extension

Returns:
.dpx file extenion

Definition at line 449 of file DPX.h.

void dpx::EndianBufferSwap ( int  bitdepth,
dpx::Packing  packing,
void *  buf,
const size_t  size 
)

Definition at line 47 of file WriterInternal.h.

References kPacked.

Referenced by WriteBuffer(), and WriteFloatBuffer().

template<DataSize SIZE>
void dpx::EndianSwapImageBuffer ( void *  data,
int  length 
)

Definition at line 97 of file EndianSwap.h.

References kByte, kDouble, kFloat, kInt, kWord, and SwapBuffer().

Referenced by dpx::Reader::ReadBlock().

Here is the call graph for this function:

void dpx::EndianSwapImageBuffer ( DataSize  size,
void *  data,
int  length 
) [inline]

Definition at line 123 of file EndianSwap.h.

References kByte, kDouble, kFloat, kInt, kWord, and SwapBuffer().

Here is the call graph for this function:

bool dpx::IdentifyFile ( InStream file)

determine if the image file is DPX

Parameters:
filebuffer to read and search
Returns:
true/false if identified as DPX

Definition at line 55 of file DPX.cpp.

References InStream::Read(), InStream::Rewind(), and dpx::Header::ValidMagicCookie().

Here is the call graph for this function:

bool dpx::IdentifyFile ( const void *  data)

determine if the image file is DPX

Parameters:
datamemory to search
Returns:
true/false if identified as DPX

Definition at line 70 of file DPX.cpp.

References dpx::Header::ValidMagicCookie().

Here is the call graph for this function:

const char * dpx::LibraryVersion ( ) [inline]

returns the version string for this library

Returns:
OpenDPX version

Definition at line 461 of file DPX.h.

References OPENDPX_VERSION.

template<typename T1 , typename T2 >
void dpx::MultiTypeBufferCopy ( T1 *  dst,
T2 *  src,
const int  len 
)

Definition at line 69 of file WriterInternal.h.

References BaseTypeConverter().

Here is the call graph for this function:

template<typename IR , typename BUF , int PADDINGBITS>
bool dpx::Read10bitFilled ( const Header &  dpxHeader,
U32 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)
template<typename IR , typename BUF >
bool dpx::Read10bitFilledMethodA ( const Header &  dpx,
U32 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)

Definition at line 200 of file ReaderInternal.h.

template<typename IR , typename BUF >
bool dpx::Read10bitFilledMethodB ( const Header &  dpx,
U32 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)

Definition at line 208 of file ReaderInternal.h.

template<typename IR , typename BUF >
bool dpx::Read10bitPacked ( const Header &  dpxHeader,
U32 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)

Definition at line 309 of file ReaderInternal.h.

template<typename IR , typename BUF >
bool dpx::Read12bitFilledMethodB ( const Header &  dpxHeader,
U16 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)
template<typename IR , typename BUF >
bool dpx::Read12bitPacked ( const Header &  dpxHeader,
U32 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)

Definition at line 316 of file ReaderInternal.h.

template<typename IR , typename SRC , DataSize SRCTYPE, typename BUF , DataSize BUFTYPE>
bool dpx::ReadBlockTypes ( const Header &  dpxHeader,
SRC *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)
template<typename IR , typename BUF , DataSize BUFTYPE>
bool dpx::ReadImageBlock ( const Header &  dpxHeader,
U32 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)
template<typename IR >
bool dpx::ReadImageBlock ( const Header &  dpxHeader,
U32 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
void *  data,
const DataSize  size 
)

Definition at line 483 of file ReaderInternal.h.

References kByte, kDouble, kFloat, kInt, and kWord.

template<typename IR , typename BUF , U32 MASK, int MULTIPLIER, int REMAIN, int REVERSE>
bool dpx::ReadPacked ( const Header &  dpxHeader,
U32 *  readBuf,
IR *  fd,
const int  element,
const Block &  block,
BUF *  data 
)
template<typename IB , int BITDEPTH>
void dpx::RleCompress ( IB *  src,
IB *  dst,
const int  bufsize,
const int  len,
BufferAccess &  access 
)

Definition at line 103 of file WriterInternal.h.

References dpx::BufferAccess::length, and dpx::BufferAccess::offset.

template<typename T >
void dpx::SwapBuffer ( T *  buf,
unsigned int  len 
)

Definition at line 89 of file EndianSwap.h.

References SwapBytes().

Referenced by EndianSwapImageBuffer().

Here is the call graph for this function:

template<typename T >
T dpx::SwapBytes ( T &  value)
template<>
unsigned short dpx::SwapBytes ( unsigned short &  value) [inline]

Definition at line 65 of file EndianSwap.h.

template<>
unsigned char dpx::SwapBytes ( unsigned char &  value) [inline]

Definition at line 75 of file EndianSwap.h.

template<>
char dpx::SwapBytes ( char &  value) [inline]

Definition at line 82 of file EndianSwap.h.

template<typename BUF , int PADDINGBITS>
void dpx::Unfill10bitFilled ( U32 *  readBuf,
const int  x,
BUF *  data,
int  count,
int  bufoff,
const int  numberOfComponents 
)

Definition at line 65 of file ReaderInternal.h.

References BaseTypeConverter(), BaseTypeConvertU10ToU16(), and tuttle::ofx::imageEffect::numberOfComponents().

Here is the call graph for this function:

template<typename BUF , U32 MASK, int MULTIPLIER, int REMAIN, int REVERSE>
void dpx::UnPackPacked ( U32 *  readBuf,
const int  bitDepth,
BUF *  data,
int  count,
int  bufoff 
)

Definition at line 217 of file ReaderInternal.h.

References BaseTypeConverter(), BaseTypeConvertU10ToU16(), and BaseTypeConvertU12ToU16().

Here is the call graph for this function:

const char * dpx::Version ( ) [inline]

returns a string of the highest SMPTE DPX version supported by this library

Returns:
SMPTE DPX version

Definition at line 455 of file DPX.h.

References SMPTE_VERSION.

template<typename IB , int BITDEPTH, bool SAMEBUFTYPE>
int dpx::WriteBuffer ( OutStream fd,
DataSize  src_size,
void *  src_buf,
const U32  width,
const U32  height,
const int  noc,
const Packing  packing,
const bool  rle,
const bool  reverse,
const int  eolnPad,
char *  blank,
bool &  status,
bool  swapEndian 
)
template<typename IB , int BITDEPTH, bool SAMEBUFTYPE>
int dpx::WriteFloatBuffer ( OutStream fd,
DataSize  src_size,
void *  src_buf,
const U32  width,
const U32  height,
const int  noc,
const Packing  packing,
const bool  rle,
const int  eolnPad,
char *  blank,
bool &  status,
bool  swapEndian 
)

Definition at line 367 of file WriterInternal.h.

References dpx::GenericHeader::DataSizeByteCount(), EndianBufferSwap(), height, dpx::BufferAccess::length, dpx::BufferAccess::offset, and OutStream::Write().

Here is the call graph for this function:

template<typename IB , int BITDEPTH>
void dpx::WritePackedMethod ( IB *  src,
IB *  dst,
const int  len,
const bool  reverse,
BufferAccess &  access 
)

Definition at line 144 of file WriterInternal.h.

References dpx::BufferAccess::length, and dpx::BufferAccess::offset.

template<typename IB , Packing METHOD>
void dpx::WritePackedMethodAB_10bit ( IB *  src,
IB *  dst,
const int  len,
const bool  reverse,
BufferAccess &  access 
)

Variable Documentation

dpx::Endian dpx::systemByteOrder = (*(unsigned char*)lPtr == 0x78 ? dpx::kLittleEndian : dpx::kBigEndian)

Definition at line 47 of file DPX.cpp.