vdr-plugin-softhddevice-drm-gles 1.6.2
Video filters

Deinterlace and Scaling Filters. More...

Classes

class  cVideoFilter
 Video Filter. More...
 

Functions

 cVideoFilter::cVideoFilter (cVideoRender *, cQueue< cDrmBuffer > *, const char *, std::function< void(AVFrame *)>)
 
void cVideoFilter::SetFilterOutputPixFormat (AVPixelFormat)
 Setup the filter output pixel format.
 
void cVideoFilter::InitAndStart (const AVCodecContext *, AVFrame *, bool)
 Init and start the video filter thread.
 
void cVideoFilter::Action (void)
 Main filter thread loop.
 
void cVideoFilter::PushFrame (AVFrame *)
 Puts a frame in the buffer to be filtered.
 
void cVideoFilter::Stop (void)
 Stops the filter thread and does a cleanup.
 

Detailed Description

Deinterlace and Scaling Filters.

Function Documentation

◆ Action()

void cVideoFilter::Action ( void  )
private

◆ cVideoFilter()

cVideoFilter::cVideoFilter ( cVideoRender videoRender,
cQueue< cDrmBuffer > *  drmBufferQueue,
const char name,
std::function< void(AVFrame *)>  frameOutput 
)

Definition at line 35 of file videofilter.cpp.

◆ InitAndStart()

void cVideoFilter::InitAndStart ( const AVCodecContext videoCtx,
AVFrame frame,
bool  enableDeinterlacer 
)

Init and start the video filter thread.

Parameters
videoCtxcodec context
frameAVFrame to take init parameters from
enableDeinterlacertrue, if the deinterlacer should be used

Definition at line 72 of file videofilter.cpp.

References L_CODEC, LOGDEBUG2, LOGFATAL, cVideoFilter::m_filterBug, cVideoFilter::m_numFramesToFilter, cVideoFilter::m_pBuffersinkCtx, cVideoFilter::m_pBuffersrcCtx, cVideoFilter::m_pFilterGraph, and cVideoFilter::SetFilterOutputPixFormat().

Referenced by cVideoStream::RenderFrame().

◆ PushFrame()

void cVideoFilter::PushFrame ( AVFrame frame)

Puts a frame in the buffer to be filtered.

Definition at line 262 of file videofilter.cpp.

References cVideoFilter::m_frames, and cQueue< T >::Push().

Referenced by cVideoStream::RenderFrame().

◆ SetFilterOutputPixFormat()

void cVideoFilter::SetFilterOutputPixFormat ( AVPixelFormat  pixFmt)
private

Setup the filter output pixel format.

Parameters
pixFmtAV pixel format

Definition at line 48 of file videofilter.cpp.

References LOGFATAL, and cVideoFilter::m_pBuffersinkCtx.

Referenced by cVideoFilter::InitAndStart().

◆ Stop()

void cVideoFilter::Stop ( void  )