Video controls. More...
#include <VLCQtCore/Video.h>
Public Member Functions | |
| VlcVideo (VlcMediaPlayer *player) | |
| VlcVideo constructor. More... | |
| ~VlcVideo () | |
| VlcVideo destructor. | |
| Vlc::Ratio | aspectRatio () const |
| Get current video aspect ratio. More... | |
| Vlc::Ratio | cropGeometry () const |
| Get current crop filter geometry. More... | |
| void | hideLogo () |
| Hide logo. | |
| void | hideMarquee () |
| Hide marquee. | |
| Vlc::Scale | scale () const |
| Get current scale ratio. More... | |
| void | setAspectRatio (const Vlc::Ratio &ratio) |
| Set new video aspect ratio. More... | |
| void | setCropGeometry (const Vlc::Ratio &ratio) |
| Set new crop filter geometry. More... | |
| void | setDeinterlace (const Vlc::Deinterlacing &filter) |
| Enable or disable deinterlace filter. More... | |
| void | setScale (const Vlc::Scale &scale) |
| Set new scale ratio. More... | |
| void | setSubtitle (int subtitle) |
| Set current video subtitle. More... | |
| void | setSubtitleFile (const QString &subtitle) |
| Set new video subtitle file. More... | |
| void | setTeletextPage (int page) |
| Set new teletext page to retrieve. More... | |
| void | setTrack (int track) |
| Set current video track. More... | |
| void | showLogo (const QString &file, int x, int y, int opacity=255) |
| Show logo. More... | |
| void | showMarquee (const QString &text, int x, int y, int timeout=0, int opacity=255, int size=-1, int color=0xFFFFFF, int refresh=0) |
| Show logo. More... | |
| QSize | size () const |
| Get current video size. (currently primary only) More... | |
| int | subtitle () const |
| Get current video subtitle. More... | |
| int | subtitleCount () const |
| Get number of available video subtitles. More... | |
| QStringList | subtitleDescription () const |
| Get the descriptions of available video subtitles. More... | |
| QList< int > | subtitleIds () const |
| Get the ids of available video subtitles. More... | |
| QMap< int, QString > | subtitles () const |
| Get available video subtitles. More... | |
| bool | takeSnapshot (const QString &path) const |
| Take a snapshot of current video (currently primary only) More... | |
| int | teletextPage () const |
| Get current teletext page requested. More... | |
| void | toggleTeletextTransparency () |
| Toggle teletext transparent status on video output. | |
| int | track () const |
| Get current video track. More... | |
| int | trackCount () const |
| Get number of available video tracks. More... | |
| QStringList | trackDescription () const |
| Get the description of available video tracks. More... | |
| QList< int > | trackIds () const |
| Get the ids of available video tracks. More... | |
| QMap< int, QString > | tracks () const |
| Get available video tracks. More... | |
Video controls.
A group of video controls functions.
|
explicit |
VlcVideo constructor.
This constructor creates a new video manager.
| player | media player (VlcMediaPlayer *) |
| Vlc::Ratio VlcVideo::aspectRatio | ( | ) | const |
Get current video aspect ratio.
| Vlc::Ratio VlcVideo::cropGeometry | ( | ) | const |
Get current crop filter geometry.
| Vlc::Scale VlcVideo::scale | ( | ) | const |
Get current scale ratio.
| void VlcVideo::setAspectRatio | ( | const Vlc::Ratio & | ratio | ) |
Set new video aspect ratio.
| ratio | new video aspect-ratio or NULL to reset to default (Vlc::Ratio) |
| void VlcVideo::setCropGeometry | ( | const Vlc::Ratio & | ratio | ) |
Set new crop filter geometry.
| ratio | new crop filter geometry or NULL to reset to default (Vlc::Ratio) |
| void VlcVideo::setDeinterlace | ( | const Vlc::Deinterlacing & | filter | ) |
Enable or disable deinterlace filter.
| filter | type of deinterlace filter or NULL to reset to default (Vlc::Deinterlacing) |
| void VlcVideo::setScale | ( | const Vlc::Scale & | scale | ) |
Set new scale ratio.
| scale | scale ratio or NULL to reset to default (Vlc::Scale) |
| void VlcVideo::setSubtitle | ( | int | subtitle | ) |
Set current video subtitle.
| subtitle | new video subtitle (int) |
| void VlcVideo::setSubtitleFile | ( | const QString & | subtitle | ) |
Set new video subtitle file.
| subtitle | new video subtitle file (QString) |
| void VlcVideo::setTeletextPage | ( | int | page | ) |
Set new teletext page to retrieve.
| page | new teletext page number (int) |
| void VlcVideo::setTrack | ( | int | track | ) |
Set current video track.
| track | new video track (int) |
| void VlcVideo::showLogo | ( | const QString & | file, |
| int | x, | ||
| int | y, | ||
| int | opacity = 255 |
||
| ) |
Show logo.
| file | logo file (QString) |
| x | x-coordinate (int) |
| y | y-coordinate (int) |
| opacity | logo opacity (int) |
| void VlcVideo::showMarquee | ( | const QString & | text, |
| int | x, | ||
| int | y, | ||
| int | timeout = 0, |
||
| int | opacity = 255, |
||
| int | size = -1, |
||
| int | color = 0xFFFFFF, |
||
| int | refresh = 0 |
||
| ) |
Show logo.
| text | text to display (QString) |
| x | x-coordinate (int) |
| y | y-coordinate (int) |
| timeout | marquee timeout |
| opacity | opacity from 0 to 255 (int) |
| size | size (int) |
| color | color in base 16 int (int) |
| refresh | refresh rate (int) |
| QSize VlcVideo::size | ( | ) | const |
Get current video size. (currently primary only)
| int VlcVideo::subtitle | ( | ) | const |
Get current video subtitle.
| int VlcVideo::subtitleCount | ( | ) | const |
Get number of available video subtitles.
| QStringList VlcVideo::subtitleDescription | ( | ) | const |
Get the descriptions of available video subtitles.
| QList< int > VlcVideo::subtitleIds | ( | ) | const |
Get the ids of available video subtitles.
| QMap< int, QString > VlcVideo::subtitles | ( | ) | const |
Get available video subtitles.
| bool VlcVideo::takeSnapshot | ( | const QString & | path | ) | const |
Take a snapshot of current video (currently primary only)
| path | output path (QString) |
| int VlcVideo::teletextPage | ( | ) | const |
Get current teletext page requested.
| int VlcVideo::track | ( | ) | const |
Get current video track.
| int VlcVideo::trackCount | ( | ) | const |
Get number of available video tracks.
| QStringList VlcVideo::trackDescription | ( | ) | const |
Get the description of available video tracks.
| QList< int > VlcVideo::trackIds | ( | ) | const |
Get the ids of available video tracks.
| QMap< int, QString > VlcVideo::tracks | ( | ) | const |
Get available video tracks.