13#ifndef __CODEC_VIDEO_H
14#define __CODEC_VIDEO_H
16#include <vdr/thread.h>
19#include <libavcodec/avcodec.h>
int m_lastCodedHeight
save coded height while closing for a directly reopen
bool m_isHardwareDecoder
true, if this is a hardware decoder
AVCodecContext * GetContext(void)
int m_cntFramesReceived
number of decoded frames received from decoder
int m_cntStartKeyFrames
number of keyframes arrived while starting the coded (needed for amlogic h264 decoder in order to dro...
bool IsHardwareDecoder(void)
int GetFramesReceived(void)
cMutex m_mutex
mutex to lock codec context (TODO: is this needed?)
AVCodecContext * m_pVideoCtx
video codec context
int m_cntPacketsSent
number of packets sent to decoder
int m_lastCodedWidth
save coded width while closing for a directly reopen
const char * m_pCodecString
codec (long) name string
const char * m_identifier
identifier for logging
int m_hardwareQuirks
hardware specific quirks needed for decoder
int ReopenCodec(enum AVCodecID, AVCodecParameters *, AVRational, int)
Reopen the video decoder.
int SendPacket(const AVPacket *)
Send a video packet to be decoded.
int Open(enum AVCodecID, AVCodecParameters *, AVRational, bool, int, int)
Open the video decoder.
int GetExtraData(const AVPacket *)
Get extradata from avpkt.
void FlushBuffers(void)
Flush the video decoder buffers.
bool IsKeyFrame(AVFrame *)
Check, if this is a key frame.
int ReceiveFrame(AVFrame **)
Receive a decoded a video frame.
void Close(void)
Close video decoder.