VlcWidgetVideo Class Reference

Video widget. More...

#include <VLCQtWidgets/WidgetVideo.h>

Public Slots

void enableDefaultSettings ()
 Enable default video settings. More...
 
void enablePreviousSettings ()
 Enable previous video settings. More...
 
void initDefaultSettings ()
 Initialize default video settings. More...
 
void setAspectRatio (const Vlc::Ratio &ratio)
 Set aspect ratio. More...
 
void setCropRatio (const Vlc::Ratio &ratio)
 Set crop ratio. More...
 
void setDeinterlacing (const Vlc::Deinterlacing &deinterlacing)
 Set deinterlace filter. More...
 
void setScale (const Vlc::Scale &scale)
 Set scale ratio. More...
 

Public Member Functions

 VlcWidgetVideo (VlcMediaPlayer *player, QWidget *parent=0)
 VlcWidgetVideo constructor. More...
 
 VlcWidgetVideo (QWidget *parent=0)
 VlcWidgetVideo constructor. More...
 
 ~VlcWidgetVideo ()
 VlcWidgetVideo destructor.
 
Vlc::Ratio currentAspectRatio () const
 Get current aspect ratio setting. More...
 
Vlc::Ratio defaultAspectRatio () const
 Get default aspect ratio setting. More...
 
void setCurrentAspectRatio (const Vlc::Ratio &ratio)
 Set current aspect ratio setting. More...
 
void setDefaultAspectRatio (const Vlc::Ratio &ratio)
 Set default aspect ratio setting. More...
 
Vlc::Ratio currentCropRatio () const
 Get current crop ratio setting. More...
 
Vlc::Ratio defaultCropRatio () const
 Get default crop ratio setting. More...
 
void setCurrentCropRatio (const Vlc::Ratio &ratio)
 Set current crop ratio setting. More...
 
void setDefaultCropRatio (const Vlc::Ratio &ratio)
 Set default crop ratio setting. More...
 
Vlc::Deinterlacing currentDeinterlacing () const
 Get current deinterlacing filter setting. More...
 
Vlc::Deinterlacing defaultDeinterlacing () const
 Get default deinterlacing filter setting. More...
 
void setCurrentDeinterlacing (const Vlc::Deinterlacing &deinterlacing)
 Set current deinterlacing filter setting. More...
 
void setDefaultDeinterlacing (const Vlc::Deinterlacing &deinterlacing)
 Set default deinterlacing filter setting. More...
 
Vlc::Scale currentScale () const
 Get current scale ratio setting. More...
 
Vlc::Scale defaultScale () const
 Get default scale ratio setting. More...
 
void setCurrentScale (const Vlc::Scale &scale)
 Set current scale ratio setting. More...
 
void setDefaultScale (const Vlc::Scale &scale)
 Set default scale ratio setting. More...
 
void setMediaPlayer (VlcMediaPlayer *player)
 Set media player if initialised without it. More...
 
WId request ()
 Request new video frame. More...
 
void release ()
 Release current video frame.
 
- Public Member Functions inherited from VlcVideoDelegate
 VlcVideoDelegate ()
 VlcVideoDelegate constructor.
 
virtual ~VlcVideoDelegate ()
 VlcVideoDelegate destructor.
 

Detailed Description

This is one of VLC-Qt GUI classes. It provides video display and mouse control.

Constructor & Destructor Documentation

VlcWidgetVideo::VlcWidgetVideo ( VlcMediaPlayer player,
QWidget *  parent = 0 
)
explicit
Parameters
playermedia player
parentvideo widget's parent GUI widget
VlcWidgetVideo::VlcWidgetVideo ( QWidget *  parent = 0)
explicit
Parameters
parentvideo widget's parent GUI widget

Member Function Documentation

Vlc::Ratio VlcWidgetVideo::currentAspectRatio ( ) const
inline
Returns
current aspect ratio
Vlc::Ratio VlcWidgetVideo::currentCropRatio ( ) const
inline
Returns
current crop ratio
Vlc::Deinterlacing VlcWidgetVideo::currentDeinterlacing ( ) const
inline
Returns
current deinterlacing filter
Vlc::Scale VlcWidgetVideo::currentScale ( ) const
inline
Returns
current scale ratio
Vlc::Ratio VlcWidgetVideo::defaultAspectRatio ( ) const
inline
Returns
default aspect ratio
Vlc::Ratio VlcWidgetVideo::defaultCropRatio ( ) const
inline
Returns
default crop ratio
Vlc::Deinterlacing VlcWidgetVideo::defaultDeinterlacing ( ) const
inline
Returns
current deinterlacing filter
Vlc::Scale VlcWidgetVideo::defaultScale ( ) const
inline
Returns
default scale ratio
void VlcWidgetVideo::enableDefaultSettings ( )
slot

crop, ratio, deinterlacing filter, scale

void VlcWidgetVideo::enablePreviousSettings ( )
slot

crop, ratio, deinterlacing filter, scale

void VlcWidgetVideo::initDefaultSettings ( )
slot

Set but not apply crop, ratio, deinterlacing filter, scale

WId VlcWidgetVideo::request ( )
virtual

Request new video frame and its widget ID to set it in the instance.

Returns
widget ID
See also
VlcMediaPlayer::VlcMediaPlayer()

Implements VlcVideoDelegate.

void VlcWidgetVideo::setAspectRatio ( const Vlc::Ratio ratio)
slot
Parameters
ratioaspect ratio
void VlcWidgetVideo::setCropRatio ( const Vlc::Ratio ratio)
slot
Parameters
ratiocrop ratio
void VlcWidgetVideo::setCurrentAspectRatio ( const Vlc::Ratio ratio)
Parameters
ratiocurrent aspect ratio
void VlcWidgetVideo::setCurrentCropRatio ( const Vlc::Ratio ratio)
Parameters
ratiocurrent crop ratio
void VlcWidgetVideo::setCurrentDeinterlacing ( const Vlc::Deinterlacing deinterlacing)
Parameters
deinterlacingcurrent deinterlacing filter
void VlcWidgetVideo::setCurrentScale ( const Vlc::Scale scale)
Parameters
scalecurrent scale ratio
void VlcWidgetVideo::setDefaultAspectRatio ( const Vlc::Ratio ratio)
Parameters
ratiodefault aspect ratio
void VlcWidgetVideo::setDefaultCropRatio ( const Vlc::Ratio ratio)
Parameters
ratiodefault crop ratio
void VlcWidgetVideo::setDefaultDeinterlacing ( const Vlc::Deinterlacing deinterlacing)
Parameters
deinterlacingdefault deinterlacing filter
void VlcWidgetVideo::setDefaultScale ( const Vlc::Scale scale)
Parameters
scaledefault scale ratio
void VlcWidgetVideo::setDeinterlacing ( const Vlc::Deinterlacing deinterlacing)
slot
Parameters
deinterlacingdeinterlacing filter
void VlcWidgetVideo::setMediaPlayer ( VlcMediaPlayer player)
Parameters
playermedia player
void VlcWidgetVideo::setScale ( const Vlc::Scale scale)
slot
Parameters
scalescale ratio

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