ADTF  3.18.2
tFOURCC

The FOURCC type is used as identifier for video compression codecs. More...

Public Member Functions

 tFOURCC ()
 Constructor.
 
 tFOURCC (tUInt32 nFOURCC)
 Constructor. More...
 
 tFOURCC (const tChar *strFOURCC)
 Constructor. More...
 
cString asString () const
 Retrieve FOURCC value as string. More...
 
 operator tUInt32 () const
 Retrieve FOURCC value. More...
 

Public Attributes

tUInt32 nValue
 FOURCC of codec as integer.
 
tChar strValue [4]
 FOURCC of codec as string.
 

Detailed Description

The FOURCC type is used as identifier for video compression codecs.

Definition at line 26 of file imagetypes.h.

Constructor & Destructor Documentation

◆ tFOURCC() [1/2]

tFOURCC ( tUInt32  nFOURCC)
inline

Constructor.

Parameters
nFOURCC[in] FOURCC value.

Definition at line 44 of file imagetypes.h.

References tFOURCC::nValue.

◆ tFOURCC() [2/2]

tFOURCC ( const tChar strFOURCC)
inline

Constructor.

Parameters
strFOURCC[in] FOURCC value.

Definition at line 54 of file imagetypes.h.

References cStringUtil::GetLength(), and tFOURCC::strValue.

Member Function Documentation

◆ asString()

cString asString ( ) const
inline

Retrieve FOURCC value as string.

Returns
String with FOURCC value.

Definition at line 68 of file imagetypes.h.

References tFOURCC::strValue.

◆ operator tUInt32()

operator tUInt32 ( ) const
inline

Retrieve FOURCC value.

Returns
FOURCC value as 32-bit unsigned integer.

Definition at line 84 of file imagetypes.h.

References tFOURCC::nValue.