MythTV  master
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Vaapi2Context Class Reference

#include <vaapi2context.h>

Inheritance diagram for Vaapi2Context:
Inheritance graph
[legend]
Collaboration diagram for Vaapi2Context:
Collaboration graph
[legend]

Public Member Functions

 Vaapi2Context (void)=default
 
 ~Vaapi2Context ()
 
int HwDecoderInit (AVCodecContext *ctx) override
 
QString GetDeinterlaceFilter (void) override
 
bool isValidDeinterlacer (QString) override
 
QStringList GetDeinterlacers (void) override
 
- Public Member Functions inherited from MythCodecContext
 MythCodecContext (void)
 
virtual ~MythCodecContext ()=default
 
void setStream (AVStream *initStream)
 
virtual int FilteredReceiveFrame (AVCodecContext *ctx, AVFrame *frame)
 
void setPlayer (MythPlayer *tPlayer)
 
bool setDeinterlacer (bool enable, QString name=QString())
 
bool isDeinterlacing (void)
 
QString getDeinterlacerName (void)
 
bool BestDeint (void)
 
bool FallbackDeint (void)
 
bool getDoubleRate (void)
 
QString GetFallbackDeint (void)
 

Static Public Member Functions

static MythCodecID GetBestSupportedCodec (AVCodec **ppCodec, const QString &decoder, uint stream_type, AVPixelFormat &pix_fmt)
 
- Static Public Member Functions inherited from MythCodecContext
static MythCodecContextcreateMythCodecContext (MythCodecID codec)
 
static QStringList GetDeinterlacers (const QString &decodername)
 
static bool isCodecDeinterlacer (const QString &decodername)
 

Protected Member Functions

int InitDeinterlaceFilter (AVCodecContext *ctx, AVFrame *frame) override
 
void CloseFilters ()
 

Additional Inherited Members

- Protected Attributes inherited from MythCodecContext
AVStream * stream
 
AVFilterContext * buffersink_ctx
 
AVFilterContext * buffersrc_ctx
 
AVFilterGraph * filter_graph
 
bool filtersInitialized
 
AVBufferRef * hw_frames_ctx
 
MythPlayerplayer
 
int64_t priorPts [2]
 
int64_t ptsUsed
 
int width
 
int height
 
QString deinterlacername
 
QMutex contextLock
 
bool doublerate
 

Detailed Description

Definition at line 37 of file vaapi2context.h.

Constructor & Destructor Documentation

◆ Vaapi2Context()

Vaapi2Context::Vaapi2Context ( void  )
default

◆ ~Vaapi2Context()

Vaapi2Context::~Vaapi2Context ( )

Definition at line 42 of file vaapi2context.cpp.

Member Function Documentation

◆ GetBestSupportedCodec()

MythCodecID Vaapi2Context::GetBestSupportedCodec ( AVCodec **  ppCodec,
const QString &  decoder,
uint  stream_type,
AVPixelFormat &  pix_fmt 
)
static

Definition at line 48 of file vaapi2context.cpp.

Referenced by AvFormatDecoder::ScanStreams().

◆ HwDecoderInit()

int Vaapi2Context::HwDecoderInit ( AVCodecContext *  ctx)
overridevirtual

Reimplemented from MythCodecContext.

Definition at line 89 of file vaapi2context.cpp.

◆ GetDeinterlaceFilter()

QString Vaapi2Context::GetDeinterlaceFilter ( void  )
overridevirtual

Reimplemented from MythCodecContext.

Definition at line 120 of file vaapi2context.cpp.

Referenced by InitDeinterlaceFilter().

◆ isValidDeinterlacer()

bool Vaapi2Context::isValidDeinterlacer ( QString  filtername)
overridevirtual

Reimplemented from MythCodecContext.

Definition at line 141 of file vaapi2context.cpp.

Referenced by GetDeinterlaceFilter(), and InitDeinterlaceFilter().

◆ GetDeinterlacers()

QStringList Vaapi2Context::GetDeinterlacers ( void  )
overridevirtual

Reimplemented from MythCodecContext.

Definition at line 146 of file vaapi2context.cpp.

◆ InitDeinterlaceFilter()

int Vaapi2Context::InitDeinterlaceFilter ( AVCodecContext *  ctx,
AVFrame frame 
)
overrideprotectedvirtual

Reimplemented from MythCodecContext.

Definition at line 152 of file vaapi2context.cpp.

◆ CloseFilters()

void Vaapi2Context::CloseFilters ( )
protected

Definition at line 304 of file vaapi2context.cpp.

Referenced by InitDeinterlaceFilter(), and ~Vaapi2Context().


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