22#include <libavcodec/avcodec.h>
23#include <libavformat/avformat.h>
26#include <vdr/player.h>
97 m_pAudio(m_pDevice->Audio())
196 if (
s.size() &&
s.compare(0, 1,
"#")) {
222 for (
int i = 0;
i < index ;
i++) {
238#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(59,0,100)
265 for (
unsigned int i = 0;
i < format->nb_streams;
i++) {
268 format->streams[
i]->codecpar, format->streams[
i]->time_base);
Audio and Alsa Interface Header File.
std::string OsdItemString(void)
Compose a full-path-string for the OSD entry.
std::string GetPath(void)
cPlaylistEntry * GetNextEntry(void)
cPlaylistEntry(std::string)
Builds the playlist entry from a file name.
int64_t GetHardwareOutputPtsMs(void)
Get the hardware output PTS in milliseconds.
virtual eOSState ProcessKey(eKeys)
Handle a key event.
cSoftHdControl(const char *, cSoftHdDevice *)
Create a new control interface and corresponding player.
static cSoftHdControl * Control()
cSoftHdDevice * m_pDevice
cSkinDisplayReplay * m_pOsd
void ShowProgress()
Open the replay OSD.
virtual void Hide(void)
Close the replay OSD.
virtual ~cSoftHdControl()
Output Device Implementation.
int PlayAudioPkts(AVPacket *)
Play an audio packet.
virtual void Clear(void)
Clears all video and audio data from the device.
void SetAudioCodec(enum AVCodecID, AVCodecParameters *, AVRational)
Open an audio codec.
virtual void Play(void)
Sets the device into play mode (after a previous trick mode, or pause)
int PlayVideoPkts(AVPacket *)
Play a video packet.
virtual void Freeze(void)
Puts the device into "freeze frame" mode.
void SetVideoCodec(enum AVCodecID, AVCodecParameters *, AVRational)
Open a video codec.
std::atomic< bool > m_stopped
virtual void Action(void)
Main thread action which invokes replay start.
std::atomic< int > m_jumpSec
cPlaylistEntry * m_pFirstEntry
std::atomic< bool > m_random
void ReadPlaylist(const char *)
Read the playlist file.
cPlaylistEntry * m_pCurrentEntry
virtual void Activate(bool On)
Start player thread.
std::atomic< bool > m_paused
cSoftHdDevice * m_pDevice
cSoftHdPlayer(const char *, cSoftHdDevice *)
Create a new player for a file or playlist.
void SetEntry(int)
Set the current entry to play.
void Play(const char *)
Play a file.
#define LOGDEBUG2
log to LOG_DEBUG and add a prefix
#define LOGERROR
log to LOG_ERR
#define LOGFATAL
log to LOG_ERR and abort
@ L_MEDIA
mediaplayer logs
Output Device Header File.