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.
 
static std::string GetDefaultLayout (unsigned int channels)
 Return a default channel layout in x.y.z form for a channel count.
 
static std::string GetLayout (unsigned int channels)
 Return a default channel layout for a channel count or localized count of channels when no default exists.
 

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

◆ GetDefaultLayout()

std::string StreamUtils::GetDefaultLayout ( unsigned int channels)
static

Return a default channel layout in x.y.z form for a channel count.

Parameters
[in]channelsthe count of channels
Returns
the default layout

◆ GetLayout()

std::string StreamUtils::GetLayout ( unsigned int channels)
static

Return a default channel layout for a channel count or localized count of channels when no default exists.

Parameters
[in]channelsthe count of channels
Returns
the layout

◆ 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: