Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cFourCC Class Reference

#include <cFourCC.h>

Public Member Functions

 cFourCC () noexcept
 
 cFourCC (FOURCC dwVal) noexcept
 
 cFourCC (BYTE ch0, BYTE ch1, BYTE ch2, BYTE ch3) noexcept
 
 cFourCC (const char *s)
 
bool isValid () const noexcept
 
FOURCC get_FOURCC () const noexcept
 
 operator FOURCC () const noexcept
 
bool isListType () const noexcept
 
void SetChars (BYTE ch0, BYTE ch1, BYTE ch2, BYTE ch3) noexcept
 
void SetChar (int i, BYTE ch)
 
StrLen_t GetStrA (char *pszOut, StrLen_t iSizeMax=5) const
 
const char * get_StrA () const
 
 UNITTEST2_PREDEF (cFourCC)
 

Static Public Member Functions

static bool GRAYCALL IsValidChar (wchar_t ch)
 

Public Attributes

cUnion32 m_u
 e.g. "RIFF" is 0 to 3 u_c order. More...
 

Detailed Description

A Four Character Code. Make a FOURCC/RIFF code. same as mmioFOURCC() or MAKEFOURCC() In order to simplify the mapping, GUIDs in the range: XXXXXXXX-0000-0010-8000-00AA00389B71 are reserved for FOURCCs. Capital letter codes are reserved words. Lower case letter codes are user specific, or locally defined codes. http://www.fourcc.org/codecs.php

Constructor & Destructor Documentation

◆ cFourCC() [1/4]

GrayLib::cFourCC::cFourCC ( )
inlinenoexcept

◆ cFourCC() [2/4]

GrayLib::cFourCC::cFourCC ( FOURCC  dwVal)
inlinenoexcept

◆ cFourCC() [3/4]

GrayLib::cFourCC::cFourCC ( BYTE  ch0,
BYTE  ch1,
BYTE  ch2,
BYTE  ch3 
)
inlinenoexcept

◆ cFourCC() [4/4]

GrayLib::cFourCC::cFourCC ( const char *  s)
inline

ASSUME length(s) >= 4

Member Function Documentation

◆ get_FOURCC()

FOURCC GrayLib::cFourCC::get_FOURCC ( ) const
inlinenoexcept

◆ get_StrA()

const char * GrayLib::cFourCC::get_StrA ( ) const

FOURCC/RIFF - MAKEFOURCC('A','r','t','T')

◆ GetStrA()

StrLen_t GrayLib::cFourCC::GetStrA ( char *  pszOut,
StrLen_t  iSizeMax = 5 
) const

Get a FOURCC/RIFF chunk id code as a string. "ABCD" ASSUME iSizeMax <= 5 chars. 4 + null

◆ isListType()

bool GrayLib::cFourCC::isListType ( ) const
inlinenoexcept

is the FOURCC a know LIST/FORM type ?

◆ isValid()

bool GrayLib::cFourCC::isValid ( ) const
inlinenoexcept

◆ IsValidChar()

bool GRAYCALL GrayLib::cFourCC::IsValidChar ( wchar_t  ch)
static

Is valid FOURCC/RIFF char? http://bgb-sys.sourceforge.net/LIFF_0_2_Specification.html chars not ASCII can crash isalnum() ?

◆ operator FOURCC()

GrayLib::cFourCC::operator FOURCC ( ) const
inlinenoexcept

◆ SetChar()

void GrayLib::cFourCC::SetChar ( int  i,
BYTE  ch 
)
inline

◆ SetChars()

void GrayLib::cFourCC::SetChars ( BYTE  ch0,
BYTE  ch1,
BYTE  ch2,
BYTE  ch3 
)
inlinenoexcept

◆ UNITTEST2_PREDEF()

GrayLib::cFourCC::UNITTEST2_PREDEF ( cFourCC  )

Member Data Documentation

◆ m_u

cUnion32 GrayLib::cFourCC::m_u

e.g. "RIFF" is 0 to 3 u_c order.


The documentation for this class was generated from the following files: