|
vdr-plugin-softhddevice-drm-gles 1.6.2
|
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. | |
Deinterlace and Scaling Filters.
Main filter thread loop.
Pops unfiltered frames from the input queue, processes them and sends the filtered frames to the render queue
Definition at line 204 of file videofilter.cpp.
References av_err2str, cQueue< T >::IsEmpty(), cQueue< T >::IsFull(), isInterlacedFrame(), LOGDEBUG, LOGERROR, LOGFATAL, LOGWARNING, cVideoFilter::m_filterBug, cVideoFilter::m_frameOutput, cVideoFilter::m_frames, cVideoFilter::m_numFramesToFilter, cVideoFilter::m_pBuffersinkCtx, cVideoFilter::m_pBuffersrcCtx, cVideoFilter::m_pDrmBufferQueue, and cQueue< T >::Pop().
| cVideoFilter::cVideoFilter | ( | cVideoRender * | videoRender, |
| cQueue< cDrmBuffer > * | drmBufferQueue, | ||
| const char * | name, | ||
| std::function< void(AVFrame *)> | frameOutput | ||
| ) |
Definition at line 35 of file videofilter.cpp.
| void cVideoFilter::InitAndStart | ( | const AVCodecContext * | videoCtx, |
| AVFrame * | frame, | ||
| bool | enableDeinterlacer | ||
| ) |
Init and start the video filter thread.
| videoCtx | codec context |
| frame | AVFrame to take init parameters from |
| enableDeinterlacer | true, 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().
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().
|
private |
Setup the filter output pixel format.
| pixFmt | AV pixel format |
Definition at line 48 of file videofilter.cpp.
References LOGFATAL, and cVideoFilter::m_pBuffersinkCtx.
Referenced by cVideoFilter::InitAndStart().
Stops the filter thread and does a cleanup.
Definition at line 270 of file videofilter.cpp.
References cQueue< T >::IsEmpty(), LOGDEBUG, cVideoFilter::m_filterBug, cVideoFilter::m_frames, cVideoFilter::m_numFramesToFilter, cVideoFilter::m_pFilterGraph, and cQueue< T >::Pop().
Referenced by cVideoStream::CancelFilterThread().