helper.cpp File Reference

Verious helper functions. More...

#include <mxflib/mxflib.h>

Namespaces

namespace  mxflib

Functions

const UL Null_UL (Null_UL_Data)
 Define the null UL used as a magic number when no UL is specified for some function parameters.
UInt32 MakeBER (UInt8 *Data, int MaxSize, UInt64 Length, UInt32 Size)
 Build a BER length.
Length ReadBER (UInt8 **Data, int MaxSize)
 Read a BER length.
int EncodeOID (UInt8 *presult, UInt64 subid, int length)
UMIDPtr MakeUMID (int Type, const UUIDPtr AssetID)
 Build a new UMID.
DataChunkPtr FileReadChunk (FileHandle InFile, UInt64 Size)
 Read a "Chunk" from a non-MXF file.
DataChunkPtr Hex2DataChunk (std::string Hex)
 Set a data chunk from a hex string.
void SetDictionaryPath (std::string NewPath)
 Set the search path to be used for dictionary files.
std::string LookupDictionaryPath (const char *Filename)
 Search for a file of a specified name in the current dictionary search path.
std::string SearchPath (const char *Path, const char *Filename)
 Search a path list for a specified file.
bool IsPartitionKey (const UInt8 *Key)
 Is a given sequence of bytes a partition pack key?
bool IsWideString (std::string &String)
 Does a given std::string contain a "wide" string in UTF8?
U32Pair ReadIFFHeader (FileHandle InFile, bool BigEndian)
 Read an IFF chunk header (from an open file).
std::pair< UInt32, LengthReadAtomHeader (FileHandle InFile, bool SkipWide)
 Read a QuickTime Atom header (from an open file).
int ReadHexString (const char **Source, int Max, UInt8 *Dest, const char *Sep)
 Read hex values separated by any of 'Sep'.
bool StringToUL (UInt8 *Data, std::string Val)
 Build a UL from a character string, writing the bytes into a 16-byte buffer.

Variables

const UInt8 Null_UL_Data [16] = { 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0 }
 Data bytes for the null UL used as a magic number when no UL is specified for some function parameters.
std::string DictionaryPath = "~"
 The search path - note that "~" is used as a token for "not yet initialized".


Detailed Description

Verious helper functions.

Version:
Id
helper.cpp,v 1.17 2007/04/01 21:52:32 matt-beard Exp

Variable Documentation

const UInt8 Null_UL_Data[16] = { 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0 } [static]

Data bytes for the null UL used as a magic number when no UL is specified for some function parameters.


Generated on Mon Apr 2 15:20:55 2007 for MXFLib by  doxygen 1.5.1-p1