cgv
Loading...
Searching...
No Matches
cgv::media::fourcc Struct Reference

represents fourcc ids as used in the riff format to identify chunks More...

#include <riff.h>

Public Member Functions

 fourcc (unsigned _id=0)
 construct from unsigned integer
 
 fourcc (const std::string &s)
 construct from string
 
std::string to_string () const
 convert to string
 
bool operator== (const std::string &s) const
 compare with string
 
bool operator!= (const std::string &s) const
 compare with string
 

Static Public Member Functions

static unsigned make_id (const std::string &ascii)
 

Public Attributes

unsigned id
 store fourcc as 32 bit integer
 

Detailed Description

represents fourcc ids as used in the riff format to identify chunks

Definition at line 13 of file riff.h.

Constructor & Destructor Documentation

◆ fourcc() [1/2]

cgv::media::fourcc::fourcc ( unsigned  _id = 0)
inline

construct from unsigned integer

Definition at line 19 of file riff.h.

◆ fourcc() [2/2]

cgv::media::fourcc::fourcc ( const std::string &  s)
inline

construct from string

Definition at line 21 of file riff.h.

Member Function Documentation

◆ make_id()

unsigned cgv::media::fourcc::make_id ( const std::string &  ascii)
static

Definition at line 9 of file riff.cxx.

◆ operator!=()

bool cgv::media::fourcc::operator!= ( const std::string &  s) const

compare with string

Definition at line 28 of file riff.cxx.

◆ operator==()

bool cgv::media::fourcc::operator== ( const std::string &  s) const

compare with string

Definition at line 23 of file riff.cxx.

◆ to_string()

std::string cgv::media::fourcc::to_string ( ) const

convert to string

Definition at line 18 of file riff.cxx.

Member Data Documentation

◆ id

unsigned cgv::media::fourcc::id

store fourcc as 32 bit integer

Definition at line 17 of file riff.h.


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