Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
StreamUtils Class Reference

#include <StreamUtils.h>

Static Public Member Functions

static int GetCodecPriority (const std::string &codec)
 
static constexpr uint32_t MakeFourCC (char c1, char c2, char c3, char c4)
 Make a FourCC code as unsigned integer value.
 
static std::string GetCodecName (int codecId, int profile)
 Get the codec name translated from ffmpeg codec id and profile.
 

Member Function Documentation

◆ GetCodecName()

std::string StreamUtils::GetCodecName ( int  codecId,
int  profile 
)
static

Get the codec name translated from ffmpeg codec id and profile.

Parameters
codecIdThe ffmpeg codec id
profileThe ffmpeg codec profile
Returns
The codec name

◆ GetCodecPriority()

int StreamUtils::GetCodecPriority ( const std::string &  codec)
static

◆ MakeFourCC()

static constexpr uint32_t StreamUtils::MakeFourCC ( char  c1,
char  c2,
char  c3,
char  c4 
)
inlinestaticconstexpr

Make a FourCC code as unsigned integer value.

Parameters
c1The first FourCC char
c2The second FourCC char
c3The third FourCC char
c4The fourth FourCC char
Returns
The FourCC as unsigned integer value

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