Miam-Player  0.8.0
A nice music player
QtAV::VideoFilter Class Referenceabstract

#include <Filter.h>

Inheritance diagram for QtAV::VideoFilter:
QtAV::Filter QtAV::GLSLFilter QtAV::LibAVFilterVideo QtAV::SubtitleFilter QtAV::VideoEncodeFilter

Public Member Functions

 VideoFilter (QObject *parent=0)
 
VideoFilterContextcontext ()
 
virtual bool isSupported (VideoFilterContext::Type ct) const
 
bool installTo (AVPlayer *player)
 installTo Install filter to player can process every frame before rendering. More...
 
bool installTo (AVOutput *output)
 installTo The process() function is in rendering thread. More...
 
void apply (Statistics *statistics, VideoFrame *frame=0)
 
bool prepareContext (VideoFilterContext *&ctx, Statistics *statistics=0, VideoFrame *frame=0)
 
- Public Member Functions inherited from QtAV::Filter
virtual ~Filter ()
 
bool isEnabled () const
 
void setOwnedByTarget (bool value=true)
 setOwnedByTarget If a filter is owned by target, it's not safe to access the filter after it's installed to a target. More...
 
bool isOwnedByTarget () const
 
bool uninstall ()
 

Protected Member Functions

 VideoFilter (VideoFilterPrivate &d, QObject *parent=0)
 
virtual void process (Statistics *statistics, VideoFrame *frame=0)=0
 
- Protected Member Functions inherited from QtAV::Filter
 Filter (FilterPrivate &d, QObject *parent=0)
 

Additional Inherited Members

- Public Slots inherited from QtAV::Filter
void setEnabled (bool enabled=true)
 
- Signals inherited from QtAV::Filter
void enabledChanged (bool)
 
- Properties inherited from QtAV::Filter
bool enabled
 

Constructor & Destructor Documentation

◆ VideoFilter() [1/2]

QtAV::VideoFilter::VideoFilter ( QObject *  parent = 0)

◆ VideoFilter() [2/2]

QtAV::VideoFilter::VideoFilter ( VideoFilterPrivate d,
QObject *  parent = 0 
)
protected

Member Function Documentation

◆ apply()

void QtAV::VideoFilter::apply ( Statistics statistics,
VideoFrame frame = 0 
)

◆ context()

VideoFilterContext* QtAV::VideoFilter::context ( )

◆ installTo() [1/2]

bool QtAV::VideoFilter::installTo ( AVPlayer player)
virtual

installTo Install filter to player can process every frame before rendering.

Equals to player->installFilter(this)

Implements QtAV::Filter.

◆ installTo() [2/2]

bool QtAV::VideoFilter::installTo ( AVOutput output)

installTo The process() function is in rendering thread.

Used by

  1. GPU filters
  2. QPainter rendering on widget based renderers. Changing the frame has no effect
    Returns
    false if already installed

◆ isSupported()

virtual bool QtAV::VideoFilter::isSupported ( VideoFilterContext::Type  ct) const
virtual

◆ prepareContext()

bool QtAV::VideoFilter::prepareContext ( VideoFilterContext *&  ctx,
Statistics statistics = 0,
VideoFrame frame = 0 
)

◆ process()

virtual void QtAV::VideoFilter::process ( Statistics statistics,
VideoFrame frame = 0 
)
protectedpure virtual

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