PonyPlayer
PonyPlayer 命名空间参考

类型定义

using PonyThread = const char *
 

枚举

enum  OpenFileResultType { FAILED , VIDEO , AUDIO }
 

函数

int reportErrorMain (int argc, char *argv[])
 
void startReporterProcess (const std::string &message)
 
void signalHandler (int signum)
 
void logMessageHandler (QtMsgType type, const QMessageLogContext &context, const QString &msg)
 
QString getLogFile ()
 
QString getAssetsDir ()
 
void showFileInExplorer (const QString &filePath)
 
template<typename T0 >
constexpr bool checkThreadType (T0)
 
template<typename T0 , typename ... T>
constexpr bool checkThreadType (T0, T ...t)
 
QString getHome ()
 

变量

const PonySampleFormat Unknown = PonySampleFormat::of<void>(paNonInterleaved, AV_SAMPLE_FMT_NONE)
 
const PonySampleFormat UInt8 = PonySampleFormat::of<uint8_t>(paUInt8, AV_SAMPLE_FMT_U8)
 
const PonySampleFormat Int16 = PonySampleFormat::of<int16_t>(paInt16, AV_SAMPLE_FMT_S16)
 
const PonySampleFormat Int32 = PonySampleFormat::of<int32_t>(paInt32, AV_SAMPLE_FMT_S32)
 
const PonySampleFormat Float = PonySampleFormat::of<float_t>(paFloat32, AV_SAMPLE_FMT_FLT)
 
const PonyAudioFormat DEFAULT_AUDIO_FORMAT = {Int16, 44100, 2}
 
QStringList programArguments
 
constexpr PonyThread PLAYBACK = "PlaybackThread"
 
constexpr PonyThread DECODER = "DecoderThread"
 
constexpr PonyThread MAIN = "MainThread"
 
constexpr PonyThread RENDER = "RenderThread"
 
constexpr PonyThread PREVIEW = "PreviewThread"
 
constexpr PonyThread FRAME = "FrameControllerThread"
 
constexpr PonyThread ANY = "__AnyThread"
 
constexpr PonyThread SELF = "__SelfThread"
 

类型定义说明

◆ PonyThread

using PonyPlayer::PonyThread = typedef const char*

枚举类型说明

◆ OpenFileResultType

枚举值
FAILED 

打开文件失败

VIDEO 

打开的文件为视频文件

AUDIO 

打开的文件为音频文件

函数说明

◆ checkThreadType() [1/2]

template<typename T0 >
constexpr bool PonyPlayer::checkThreadType ( T0  )
constexpr

◆ checkThreadType() [2/2]

template<typename T0 , typename ... T>
constexpr bool PonyPlayer::checkThreadType ( T0  ,
T ...  t 
)
constexpr

◆ getAssetsDir()

QString PonyPlayer::getAssetsDir ( )
inline

◆ getHome()

QString PonyPlayer::getHome ( )
inline

获取数据存储目录, 保证可写

返回
数据存储目录, 不以'/'结尾

◆ getLogFile()

QString PonyPlayer::getLogFile ( )

◆ logMessageHandler()

void PonyPlayer::logMessageHandler ( QtMsgType  type,
const QMessageLogContext &  context,
const QString &  msg 
)

◆ reportErrorMain()

int PonyPlayer::reportErrorMain ( int  argc,
char *  argv[] 
)

◆ showFileInExplorer()

void PonyPlayer::showFileInExplorer ( const QString &  filePath)
inline

◆ signalHandler()

void PonyPlayer::signalHandler ( int  signum)

◆ startReporterProcess()

void PonyPlayer::startReporterProcess ( const std::string &  message)

变量说明

◆ ANY

constexpr PonyThread PonyPlayer::ANY = "__AnyThread"
constexpr

◆ DECODER

constexpr PonyThread PonyPlayer::DECODER = "DecoderThread"
constexpr

◆ DEFAULT_AUDIO_FORMAT

const PonyAudioFormat PonyPlayer::DEFAULT_AUDIO_FORMAT = {Int16, 44100, 2}

◆ Float

const PonySampleFormat PonyPlayer::Float = PonySampleFormat::of<float_t>(paFloat32, AV_SAMPLE_FMT_FLT)

◆ FRAME

constexpr PonyThread PonyPlayer::FRAME = "FrameControllerThread"
constexpr

◆ Int16

const PonySampleFormat PonyPlayer::Int16 = PonySampleFormat::of<int16_t>(paInt16, AV_SAMPLE_FMT_S16)

◆ Int32

const PonySampleFormat PonyPlayer::Int32 = PonySampleFormat::of<int32_t>(paInt32, AV_SAMPLE_FMT_S32)

◆ MAIN

constexpr PonyThread PonyPlayer::MAIN = "MainThread"
constexpr

◆ PLAYBACK

constexpr PonyThread PonyPlayer::PLAYBACK = "PlaybackThread"
constexpr

◆ PREVIEW

constexpr PonyThread PonyPlayer::PREVIEW = "PreviewThread"
constexpr

◆ programArguments

QStringList PonyPlayer::programArguments

◆ RENDER

constexpr PonyThread PonyPlayer::RENDER = "RenderThread"
constexpr

◆ SELF

constexpr PonyThread PonyPlayer::SELF = "__SelfThread"
constexpr

◆ UInt8

const PonySampleFormat PonyPlayer::UInt8 = PonySampleFormat::of<uint8_t>(paUInt8, AV_SAMPLE_FMT_U8)

◆ Unknown

const PonySampleFormat PonyPlayer::Unknown = PonySampleFormat::of<void>(paNonInterleaved, AV_SAMPLE_FMT_NONE)