QVisu
Qt-based visualization for smart homes
|
Enumerations | |
enum | libvlc_video_logo_option_t { libvlc_logo_enable, libvlc_logo_file, libvlc_logo_x, libvlc_logo_y, libvlc_logo_delay, libvlc_logo_repeat, libvlc_logo_opacity, libvlc_logo_position } |
enum | libvlc_video_adjust_option_t { libvlc_adjust_Enable = 0, libvlc_adjust_Contrast, libvlc_adjust_Brightness, libvlc_adjust_Hue, libvlc_adjust_Saturation, libvlc_adjust_Gamma } |
Functions | |
LIBVLC_API void | libvlc_toggle_fullscreen (libvlc_media_player_t *p_mi) |
LIBVLC_API void | libvlc_set_fullscreen (libvlc_media_player_t *p_mi, int b_fullscreen) |
LIBVLC_API int | libvlc_get_fullscreen (libvlc_media_player_t *p_mi) |
LIBVLC_API void | libvlc_video_set_key_input (libvlc_media_player_t *p_mi, unsigned on) |
LIBVLC_API void | libvlc_video_set_mouse_input (libvlc_media_player_t *p_mi, unsigned on) |
LIBVLC_API int | libvlc_video_get_size (libvlc_media_player_t *p_mi, unsigned num, unsigned *px, unsigned *py) |
LIBVLC_DEPRECATED LIBVLC_API int | libvlc_video_get_height (libvlc_media_player_t *p_mi) |
LIBVLC_DEPRECATED LIBVLC_API int | libvlc_video_get_width (libvlc_media_player_t *p_mi) |
LIBVLC_API int | libvlc_video_get_cursor (libvlc_media_player_t *p_mi, unsigned num, int *px, int *py) |
LIBVLC_API float | libvlc_video_get_scale (libvlc_media_player_t *p_mi) |
LIBVLC_API void | libvlc_video_set_scale (libvlc_media_player_t *p_mi, float f_factor) |
LIBVLC_API char * | libvlc_video_get_aspect_ratio (libvlc_media_player_t *p_mi) |
LIBVLC_API void | libvlc_video_set_aspect_ratio (libvlc_media_player_t *p_mi, const char *psz_aspect) |
LIBVLC_API int | libvlc_video_get_spu (libvlc_media_player_t *p_mi) |
LIBVLC_API int | libvlc_video_get_spu_count (libvlc_media_player_t *p_mi) |
LIBVLC_API libvlc_track_description_t * | libvlc_video_get_spu_description (libvlc_media_player_t *p_mi) |
LIBVLC_API int | libvlc_video_set_spu (libvlc_media_player_t *p_mi, int i_spu) |
LIBVLC_API int | libvlc_video_set_subtitle_file (libvlc_media_player_t *p_mi, const char *psz_subtitle) |
LIBVLC_API int64_t | libvlc_video_get_spu_delay (libvlc_media_player_t *p_mi) |
LIBVLC_API int | libvlc_video_set_spu_delay (libvlc_media_player_t *p_mi, int64_t i_delay) |
LIBVLC_API libvlc_track_description_t * | libvlc_video_get_title_description (libvlc_media_player_t *p_mi) |
LIBVLC_API libvlc_track_description_t * | libvlc_video_get_chapter_description (libvlc_media_player_t *p_mi, int i_title) |
LIBVLC_API char * | libvlc_video_get_crop_geometry (libvlc_media_player_t *p_mi) |
LIBVLC_API void | libvlc_video_set_crop_geometry (libvlc_media_player_t *p_mi, const char *psz_geometry) |
LIBVLC_API int | libvlc_video_get_teletext (libvlc_media_player_t *p_mi) |
LIBVLC_API void | libvlc_video_set_teletext (libvlc_media_player_t *p_mi, int i_page) |
LIBVLC_API void | libvlc_toggle_teletext (libvlc_media_player_t *p_mi) |
LIBVLC_API int | libvlc_video_get_track_count (libvlc_media_player_t *p_mi) |
LIBVLC_API libvlc_track_description_t * | libvlc_video_get_track_description (libvlc_media_player_t *p_mi) |
LIBVLC_API int | libvlc_video_get_track (libvlc_media_player_t *p_mi) |
LIBVLC_API int | libvlc_video_set_track (libvlc_media_player_t *p_mi, int i_track) |
LIBVLC_API int | libvlc_video_take_snapshot (libvlc_media_player_t *p_mi, unsigned num, const char *psz_filepath, unsigned int i_width, unsigned int i_height) |
LIBVLC_API void | libvlc_video_set_deinterlace (libvlc_media_player_t *p_mi, const char *psz_mode) |
LIBVLC_API int | libvlc_video_get_marquee_int (libvlc_media_player_t *p_mi, unsigned option) |
LIBVLC_API char * | libvlc_video_get_marquee_string (libvlc_media_player_t *p_mi, unsigned option) |
LIBVLC_API void | libvlc_video_set_marquee_int (libvlc_media_player_t *p_mi, unsigned option, int i_val) |
LIBVLC_API void | libvlc_video_set_marquee_string (libvlc_media_player_t *p_mi, unsigned option, const char *psz_text) |
LIBVLC_API int | libvlc_video_get_logo_int (libvlc_media_player_t *p_mi, unsigned option) |
LIBVLC_API void | libvlc_video_set_logo_int (libvlc_media_player_t *p_mi, unsigned option, int value) |
LIBVLC_API void | libvlc_video_set_logo_string (libvlc_media_player_t *p_mi, unsigned option, const char *psz_value) |
LIBVLC_API int | libvlc_video_get_adjust_int (libvlc_media_player_t *p_mi, unsigned option) |
LIBVLC_API void | libvlc_video_set_adjust_int (libvlc_media_player_t *p_mi, unsigned option, int value) |
LIBVLC_API float | libvlc_video_get_adjust_float (libvlc_media_player_t *p_mi, unsigned option) |
LIBVLC_API void | libvlc_video_set_adjust_float (libvlc_media_player_t *p_mi, unsigned option, float value) |
option values for libvlc_video_{get,set}_adjust_{int,float,bool}
LIBVLC_API int libvlc_get_fullscreen | ( | libvlc_media_player_t * | p_mi | ) |
Get current fullscreen status.
p_mi | the media player |
LIBVLC_API void libvlc_set_fullscreen | ( | libvlc_media_player_t * | p_mi, |
int | b_fullscreen | ||
) |
Enable or disable fullscreen.
p_mi | the media player |
b_fullscreen | boolean for fullscreen status |
LIBVLC_API void libvlc_toggle_fullscreen | ( | libvlc_media_player_t * | p_mi | ) |
Toggle fullscreen status on non-embedded video outputs.
p_mi | the media player |
LIBVLC_API void libvlc_toggle_teletext | ( | libvlc_media_player_t * | p_mi | ) |
Toggle teletext transparent status on video output.
p_mi | the media player |
LIBVLC_API float libvlc_video_get_adjust_float | ( | libvlc_media_player_t * | p_mi, |
unsigned | option | ||
) |
Get float adjust option.
p_mi | libvlc media player instance |
option | adjust option to get, values of libvlc_video_adjust_option_t |
LIBVLC_API int libvlc_video_get_adjust_int | ( | libvlc_media_player_t * | p_mi, |
unsigned | option | ||
) |
Get integer adjust option.
p_mi | libvlc media player instance |
option | adjust option to get, values of libvlc_video_adjust_option_t |
LIBVLC_API char* libvlc_video_get_aspect_ratio | ( | libvlc_media_player_t * | p_mi | ) |
Get current video aspect ratio.
p_mi | the media player |
LIBVLC_API libvlc_track_description_t* libvlc_video_get_chapter_description | ( | libvlc_media_player_t * | p_mi, |
int | i_title | ||
) |
Get the description of available chapters for specific title.
p_mi | the media player |
i_title | selected title |
LIBVLC_API char* libvlc_video_get_crop_geometry | ( | libvlc_media_player_t * | p_mi | ) |
Get current crop filter geometry.
p_mi | the media player |
LIBVLC_API int libvlc_video_get_cursor | ( | libvlc_media_player_t * | p_mi, |
unsigned | num, | ||
int * | px, | ||
int * | py | ||
) |
Get the mouse pointer coordinates over a video. Coordinates are expressed in terms of the decoded video resolution, not in terms of pixels on the screen/viewport (to get the latter, you can query your windowing system directly).
Either of the coordinates may be negative or larger than the corresponding dimension of the video, if the cursor is outside the rendering area.
p_mi | media player |
num | number of the video (starting from, and most commonly 0) |
px | pointer to get the abscissa [OUT] |
py | pointer to get the ordinate [OUT] |
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_get_height | ( | libvlc_media_player_t * | p_mi | ) |
Get current video height.
p_mi | the media player |
LIBVLC_API int libvlc_video_get_logo_int | ( | libvlc_media_player_t * | p_mi, |
unsigned | option | ||
) |
Get integer logo option.
p_mi | libvlc media player instance |
option | logo option to get, values of libvlc_video_logo_option_t |
LIBVLC_API int libvlc_video_get_marquee_int | ( | libvlc_media_player_t * | p_mi, |
unsigned | option | ||
) |
Get an integer marquee option value
p_mi | libvlc media player |
option | marq option to get |
LIBVLC_API char* libvlc_video_get_marquee_string | ( | libvlc_media_player_t * | p_mi, |
unsigned | option | ||
) |
Get a string marquee option value
p_mi | libvlc media player |
option | marq option to get |
LIBVLC_API float libvlc_video_get_scale | ( | libvlc_media_player_t * | p_mi | ) |
Get the current video scaling factor. See also libvlc_video_set_scale().
p_mi | the media player |
LIBVLC_API int libvlc_video_get_size | ( | libvlc_media_player_t * | p_mi, |
unsigned | num, | ||
unsigned * | px, | ||
unsigned * | py | ||
) |
Get the pixel dimensions of a video.
p_mi | media player |
num | number of the video (starting from, and most commonly 0) |
px | pointer to get the pixel width [OUT] |
py | pointer to get the pixel height [OUT] |
LIBVLC_API int libvlc_video_get_spu | ( | libvlc_media_player_t * | p_mi | ) |
Get current video subtitle.
p_mi | the media player |
LIBVLC_API int libvlc_video_get_spu_count | ( | libvlc_media_player_t * | p_mi | ) |
Get the number of available video subtitles.
p_mi | the media player |
LIBVLC_API int64_t libvlc_video_get_spu_delay | ( | libvlc_media_player_t * | p_mi | ) |
Get the current subtitle delay. Positive values means subtitles are being displayed later, negative values earlier.
p_mi | media player |
LIBVLC_API libvlc_track_description_t* libvlc_video_get_spu_description | ( | libvlc_media_player_t * | p_mi | ) |
Get the description of available video subtitles.
p_mi | the media player |
LIBVLC_API int libvlc_video_get_teletext | ( | libvlc_media_player_t * | p_mi | ) |
Get current teletext page requested.
p_mi | the media player |
LIBVLC_API libvlc_track_description_t* libvlc_video_get_title_description | ( | libvlc_media_player_t * | p_mi | ) |
Get the description of available titles.
p_mi | the media player |
LIBVLC_API int libvlc_video_get_track | ( | libvlc_media_player_t * | p_mi | ) |
Get current video track.
p_mi | media player |
LIBVLC_API int libvlc_video_get_track_count | ( | libvlc_media_player_t * | p_mi | ) |
Get number of available video tracks.
p_mi | media player |
LIBVLC_API libvlc_track_description_t* libvlc_video_get_track_description | ( | libvlc_media_player_t * | p_mi | ) |
Get the description of available video tracks.
p_mi | media player |
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_get_width | ( | libvlc_media_player_t * | p_mi | ) |
Get current video width.
p_mi | the media player |
LIBVLC_API void libvlc_video_set_adjust_float | ( | libvlc_media_player_t * | p_mi, |
unsigned | option, | ||
float | value | ||
) |
Set adjust option as float. Options that take a different type value are ignored.
p_mi | libvlc media player instance |
option | adust option to set, values of libvlc_video_adjust_option_t |
value | adjust option value |
LIBVLC_API void libvlc_video_set_adjust_int | ( | libvlc_media_player_t * | p_mi, |
unsigned | option, | ||
int | value | ||
) |
Set adjust option as integer. Options that take a different type value are ignored. Passing libvlc_adjust_enable as option value has the side effect of starting (arg !0) or stopping (arg 0) the adjust filter.
p_mi | libvlc media player instance |
option | adust option to set, values of libvlc_video_adjust_option_t |
value | adjust option value |
LIBVLC_API void libvlc_video_set_aspect_ratio | ( | libvlc_media_player_t * | p_mi, |
const char * | psz_aspect | ||
) |
Set new video aspect ratio.
p_mi | the media player |
psz_aspect | new video aspect-ratio or NULL to reset to default |
LIBVLC_API void libvlc_video_set_crop_geometry | ( | libvlc_media_player_t * | p_mi, |
const char * | psz_geometry | ||
) |
Set new crop filter geometry.
p_mi | the media player |
psz_geometry | new crop filter geometry (NULL to unset) |
LIBVLC_API void libvlc_video_set_deinterlace | ( | libvlc_media_player_t * | p_mi, |
const char * | psz_mode | ||
) |
Enable or disable deinterlace filter
p_mi | libvlc media player |
psz_mode | type of deinterlace filter, NULL to disable |
LIBVLC_API void libvlc_video_set_key_input | ( | libvlc_media_player_t * | p_mi, |
unsigned | on | ||
) |
Enable or disable key press events handling, according to the LibVLC hotkeys configuration. By default and for historical reasons, keyboard events are handled by the LibVLC video widget.
p_mi | the media player |
on | true to handle key press events, false to ignore them. |
LIBVLC_API void libvlc_video_set_logo_int | ( | libvlc_media_player_t * | p_mi, |
unsigned | option, | ||
int | value | ||
) |
Set logo option as integer. Options that take a different type value are ignored. Passing libvlc_logo_enable as option value has the side effect of starting (arg !0) or stopping (arg 0) the logo filter.
p_mi | libvlc media player instance |
option | logo option to set, values of libvlc_video_logo_option_t |
value | logo option value |
LIBVLC_API void libvlc_video_set_logo_string | ( | libvlc_media_player_t * | p_mi, |
unsigned | option, | ||
const char * | psz_value | ||
) |
Set logo option as string. Options that take a different type value are ignored.
p_mi | libvlc media player instance |
option | logo option to set, values of libvlc_video_logo_option_t |
psz_value | logo option value |
LIBVLC_API void libvlc_video_set_marquee_int | ( | libvlc_media_player_t * | p_mi, |
unsigned | option, | ||
int | i_val | ||
) |
Enable, disable or set an integer marquee option
Setting libvlc_marquee_Enable has the side effect of enabling (arg !0) or disabling (arg 0) the marq filter.
p_mi | libvlc media player |
option | marq option to set |
i_val | marq option value |
LIBVLC_API void libvlc_video_set_marquee_string | ( | libvlc_media_player_t * | p_mi, |
unsigned | option, | ||
const char * | psz_text | ||
) |
Set a marquee string option
p_mi | libvlc media player |
option | marq option to set |
psz_text | marq option value |
LIBVLC_API void libvlc_video_set_mouse_input | ( | libvlc_media_player_t * | p_mi, |
unsigned | on | ||
) |
Enable or disable mouse click events handling. By default, those events are handled. This is needed for DVD menus to work, as well as a few video filters such as "puzzle".
p_mi | the media player |
on | true to handle mouse click events, false to ignore them. |
LIBVLC_API void libvlc_video_set_scale | ( | libvlc_media_player_t * | p_mi, |
float | f_factor | ||
) |
Set the video scaling factor. That is the ratio of the number of pixels on screen to the number of pixels in the original decoded video in each dimension. Zero is a special value; it will adjust the video to the output window/drawable (in windowed mode) or the entire screen.
Note that not all video outputs support scaling.
p_mi | the media player |
f_factor | the scaling factor, or zero |
LIBVLC_API int libvlc_video_set_spu | ( | libvlc_media_player_t * | p_mi, |
int | i_spu | ||
) |
Set new video subtitle.
p_mi | the media player |
i_spu | video subtitle track to select (i_id from track description) |
LIBVLC_API int libvlc_video_set_spu_delay | ( | libvlc_media_player_t * | p_mi, |
int64_t | i_delay | ||
) |
Set the subtitle delay. This affects the timing of when the subtitle will be displayed. Positive values result in subtitles being displayed later, while negative values will result in subtitles being displayed earlier.
The subtitle delay will be reset to zero each time the media changes.
p_mi | media player |
i_delay | time (in microseconds) the display of subtitles should be delayed |
LIBVLC_API int libvlc_video_set_subtitle_file | ( | libvlc_media_player_t * | p_mi, |
const char * | psz_subtitle | ||
) |
Set new video subtitle file.
p_mi | the media player |
psz_subtitle | new video subtitle file |
LIBVLC_API void libvlc_video_set_teletext | ( | libvlc_media_player_t * | p_mi, |
int | i_page | ||
) |
Set new teletext page to retrieve.
p_mi | the media player |
i_page | teletex page number requested |
LIBVLC_API int libvlc_video_set_track | ( | libvlc_media_player_t * | p_mi, |
int | i_track | ||
) |
Set video track.
p_mi | media player |
i_track | the track ID (i_id field from track description) |
LIBVLC_API int libvlc_video_take_snapshot | ( | libvlc_media_player_t * | p_mi, |
unsigned | num, | ||
const char * | psz_filepath, | ||
unsigned int | i_width, | ||
unsigned int | i_height | ||
) |
Take a snapshot of the current video window.
If i_width AND i_height is 0, original size is used. If i_width XOR i_height is 0, original aspect-ratio is preserved.
p_mi | media player instance |
num | number of video output (typically 0 for the first/only one) |
psz_filepath | the path where to save the screenshot to |
i_width | the snapshot's width |
i_height | the snapshot's height |