Phonon::Experimental::AbstractVideoDataOutput

Search for usage in LXR

Phonon::Experimental::AbstractVideoDataOutput Class Referenceabstract

#include <abstractvideodataoutput.h>

Inheritance diagram for Phonon::Experimental::AbstractVideoDataOutput:

Public Member Functions

 AbstractVideoDataOutput ()
 
virtual QSet< VideoFrame2::FormatallowedFormats () const
 
virtual void endOfMedia ()=0
 
virtual void frameReady (const VideoFrame2 &)=0
 
bool isRunning () const
 
void setAllowedFormats (const QSet< VideoFrame2::Format > &)
 
void setRunning (bool running)
 
void start ()
 
void stop ()
 

Protected Member Functions

 AbstractVideoDataOutput (AbstractVideoDataOutputPrivate &dd)
 
- Protected Member Functions inherited from Phonon::AbstractVideoOutput
 AbstractVideoOutput (AbstractVideoOutputPrivate &d)
 

Detailed Description

This class gives you the video data.

This class implements a special AbstractVideoOutput that gives your application the video data.

You can also use the video data for further processing (e.g. encoding and saving to a file).

Author
Matthias Kretz kretz.nosp@m.@kde.nosp@m..org
See also
VideoDataOutput2

Definition at line 56 of file abstractvideodataoutput.h.

Constructor & Destructor Documentation

◆ AbstractVideoDataOutput() [1/2]

Phonon::Experimental::AbstractVideoDataOutput::AbstractVideoDataOutput ( )

Constructs an AbstractVideoDataOutput.

Definition at line 32 of file abstractvideodataoutput.cpp.

◆ ~AbstractVideoDataOutput()

Phonon::Experimental::AbstractVideoDataOutput::~AbstractVideoDataOutput ( )
override

Definition at line 45 of file abstractvideodataoutput.cpp.

◆ AbstractVideoDataOutput() [2/2]

Phonon::Experimental::AbstractVideoDataOutput::AbstractVideoDataOutput ( AbstractVideoDataOutputPrivate & dd)
protected

Definition at line 40 of file abstractvideodataoutput.cpp.

Member Function Documentation

◆ allowedFormats()

QSet< VideoFrame2::Format > Phonon::Experimental::AbstractVideoDataOutput::allowedFormats ( ) const
virtual

Lists the formats this output is allowed to pass via frameReady.

Definition at line 50 of file abstractvideodataoutput.cpp.

◆ endOfMedia()

virtual void Phonon::Experimental::AbstractVideoDataOutput::endOfMedia ( )
pure virtual

This function is called after the last frameReady of a MediaObject was called.

Implemented in Phonon::Experimental::VideoDataOutput2.

◆ frameReady()

virtual void Phonon::Experimental::AbstractVideoDataOutput::frameReady ( const VideoFrame2 & )
pure virtual

This function is called whenever a frame should be displayed.

Warning
frameReady can get called from any thread (other than the main thread or the thread affinity of this QObject). A common error to create a deadlock situation is to block the thread this function is called from, until the main thread has found time to handle the frame. If it is blocking while the main thread decides to stop/delete the MediaObject you might get a deadlock.

Implemented in Phonon::Experimental::VideoDataOutput2.

◆ isRunning()

bool Phonon::Experimental::AbstractVideoDataOutput::isRunning ( ) const

Definition at line 62 of file abstractvideodataoutput.cpp.

◆ setAllowedFormats()

void Phonon::Experimental::AbstractVideoDataOutput::setAllowedFormats ( const QSet< VideoFrame2::Format > & allowedFormats)

Defaults to VideoFrame2::Format_RGB888.

Definition at line 56 of file abstractvideodataoutput.cpp.

◆ setRunning()

void Phonon::Experimental::AbstractVideoDataOutput::setRunning ( bool running)

Definition at line 68 of file abstractvideodataoutput.cpp.

◆ start()

void Phonon::Experimental::AbstractVideoDataOutput::start ( )

Definition at line 82 of file abstractvideodataoutput.cpp.

◆ stop()

void Phonon::Experimental::AbstractVideoDataOutput::stop ( )

Definition at line 87 of file abstractvideodataoutput.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.