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... | |
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... | |
A group of video controls functions.
|
explicit |
This constructor creates a new video manager.
player | media player (VlcMediaPlayer *) |
Vlc::Ratio VlcVideo::aspectRatio | ( | ) | const |
Vlc::Ratio VlcVideo::cropGeometry | ( | ) | const |
Vlc::Scale VlcVideo::scale | ( | ) | const |
void VlcVideo::setAspectRatio | ( | const Vlc::Ratio & | ratio | ) |
ratio | new video aspect-ratio or NULL to reset to default (Vlc::Ratio) |
void VlcVideo::setCropGeometry | ( | const Vlc::Ratio & | ratio | ) |
ratio | new crop filter geometry or NULL to reset to default (Vlc::Ratio) |
void VlcVideo::setDeinterlace | ( | const Vlc::Deinterlacing & | filter | ) |
filter | type of deinterlace filter or NULL to reset to default (Vlc::Deinterlacing) |
void VlcVideo::setScale | ( | const Vlc::Scale & | scale | ) |
scale | scale ratio or NULL to reset to default (Vlc::Scale) |
void VlcVideo::setSubtitle | ( | int | subtitle | ) |
subtitle | new video subtitle (int) |
void VlcVideo::setSubtitleFile | ( | const QString & | subtitle | ) |
subtitle | new video subtitle file (QString) |
void VlcVideo::setTeletextPage | ( | int | page | ) |
page | new teletext page number (int) |
void VlcVideo::setTrack | ( | int | track | ) |
track | new video track (int) |
void VlcVideo::showLogo | ( | const QString & | file, |
int | x, | ||
int | y, | ||
int | opacity = 255 |
||
) |
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 |
||
) |
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 |
int VlcVideo::subtitle | ( | ) | const |
int VlcVideo::subtitleCount | ( | ) | const |
QStringList VlcVideo::subtitleDescription | ( | ) | const |
QList< int > VlcVideo::subtitleIds | ( | ) | const |
bool VlcVideo::takeSnapshot | ( | const QString & | path | ) | const |
path | output path (QString) |
int VlcVideo::teletextPage | ( | ) | const |
int VlcVideo::track | ( | ) | const |
int VlcVideo::trackCount | ( | ) | const |
QStringList VlcVideo::trackDescription | ( | ) | const |
QList< int > VlcVideo::trackIds | ( | ) | const |