VLC 4.0.0-dev
|
Data Structures | |
struct | vlc_player_vout_cbs |
Player vout callbacks. More... | |
Typedefs | |
typedef struct vlc_player_vout_listener_id | vlc_player_vout_listener_id |
Player vout listener opaque structure. | |
Enumerations | |
enum | vlc_player_vout_action { VLC_PLAYER_VOUT_STARTED , VLC_PLAYER_VOUT_STOPPED } |
action of vlc_player_cbs.on_vout_changed callback More... | |
Functions | |
vout_thread_t * | vlc_player_vout_Hold (vlc_player_t *player) |
Get and hold the main video output. | |
vout_thread_t ** | vlc_player_vout_HoldAll (vlc_player_t *player, size_t *count) |
Get and hold the list of video output. | |
vlc_player_vout_listener_id * | vlc_player_vout_AddListener (vlc_player_t *player, const struct vlc_player_vout_cbs *cbs, void *cbs_data) |
Add a listener callback for video output events. | |
void | vlc_player_vout_RemoveListener (vlc_player_t *player, vlc_player_vout_listener_id *listener_id) |
Remove a vout listener callback. | |
bool | vlc_player_vout_IsFullscreen (vlc_player_t *player) |
Check if the player is fullscreen. | |
void | vlc_player_vout_SetFullscreen (vlc_player_t *player, bool enabled) |
Enable or disable the player fullscreen state. | |
static void | vlc_player_vout_ToggleFullscreen (vlc_player_t *player) |
Helper to toggle the player fullscreen state. | |
bool | vlc_player_vout_IsWallpaperModeEnabled (vlc_player_t *player) |
Check if the player has wallpaper-mode enaled. | |
void | vlc_player_vout_SetWallpaperModeEnabled (vlc_player_t *player, bool enabled) |
Enable or disable the player wallpaper-mode. | |
static void | vlc_player_vout_ToggleWallpaperMode (vlc_player_t *player) |
Helper to toggle the player wallpaper-mode state. | |
void | vlc_player_vout_Snapshot (vlc_player_t *player) |
Take a snapshot on all vouts. | |
void | vlc_player_osd_Message (vlc_player_t *player, const char *fmt,...) |
Display an OSD message on all vouts. | |
typedef struct vlc_player_vout_listener_id vlc_player_vout_listener_id |
Player vout listener opaque structure.
This opaque structure is returned by vlc_player_vout_AddListener() and can be used to remove the listener via vlc_player_vout_RemoveListener().
action of vlc_player_cbs.on_vout_changed callback
Enumerator | |
---|---|
VLC_PLAYER_VOUT_STARTED | |
VLC_PLAYER_VOUT_STOPPED |
void vlc_player_osd_Message | ( | vlc_player_t * | player, |
const char * | fmt, | ||
... | |||
) |
Display an OSD message on all vouts.
player | player instance |
fmt | format string |
References count, vlc_player_osd_HoldAll(), vlc_player_osd_ReleaseAll(), vout_OSDMessageVa(), and VOUT_SPU_CHANNEL_OSD.
Referenced by vlc_player_AddAssociatedMedia(), vlc_player_ChangeRate(), vlc_player_NextVideoFrame(), vlc_player_osd_Program(), vlc_player_osd_Track(), vlc_player_osd_Tracks(), vlc_player_SelectChapterIdx(), vlc_player_SelectNextChapter(), vlc_player_SelectNextTitle(), vlc_player_SelectPrevChapter(), vlc_player_SelectPrevTitle(), vlc_player_SetCategoryDelay(), vlc_player_SetEsIdDelay(), vlc_player_SetRecordingEnabled(), vlc_playlist_Next(), vlc_playlist_PlaybackOrderChanged(), vlc_playlist_PlaybackRepeatChanged(), and vlc_playlist_Prev().
vlc_player_vout_listener_id * vlc_player_vout_AddListener | ( | vlc_player_t * | player, |
const struct vlc_player_vout_cbs * | cbs, | ||
void * | cbs_data | ||
) |
Add a listener callback for video output events.
player | player instance |
cbs | pointer to a vlc_player_vout_cbs structure, the structure must be valid during the lifetime of the player |
cbs_data | opaque pointer used by the callbacks |
References vlc_player_vout_listener_id::cbs, vlc_player_vout_listener_id::cbs_data, vlc_player_vout_listener_id::node, vlc_list_append(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_player_t::vout_listeners, and vlc_player_t::vout_listeners_lock.
vout_thread_t * vlc_player_vout_Hold | ( | vlc_player_t * | player | ) |
Get and hold the main video output.
player | player instance |
References input_resource_HoldDummyVout(), input_resource_HoldVout(), and vlc_player_t::resource.
Referenced by vlc_player_input_RestoreMlStates(), vlc_player_vout_IsFullscreen(), vlc_player_vout_IsWallpaperModeEnabled(), and vlc_player_vout_SetVar().
vout_thread_t ** vlc_player_vout_HoldAll | ( | vlc_player_t * | player, |
size_t * | count | ||
) |
Get and hold the list of video output.
player | player instance |
count | valid pointer to store the array count |
References count, input_resource_HoldDummyVout(), input_resource_HoldVouts(), vlc_player_t::resource, and vlc_alloc().
Referenced by vlc_player_input_NavigationFallback().
bool vlc_player_vout_IsFullscreen | ( | vlc_player_t * | player | ) |
Check if the player is fullscreen.
player | player instance |
References var_GetBool(), vlc_player_vout_Hold(), and vout_Release().
Referenced by vlc_player_osd_Position(), vlc_player_osd_Volume(), and vlc_player_vout_ToggleFullscreen().
bool vlc_player_vout_IsWallpaperModeEnabled | ( | vlc_player_t * | player | ) |
Check if the player has wallpaper-mode enaled.
player | player instance |
References var_GetBool(), vlc_player_vout_Hold(), and vout_Release().
Referenced by vlc_player_vout_ToggleWallpaperMode().
void vlc_player_vout_RemoveListener | ( | vlc_player_t * | player, |
vlc_player_vout_listener_id * | listener_id | ||
) |
Remove a vout listener callback.
player | player instance |
listener_id | listener id returned by vlc_player_vout_AddListener() |
References vlc_player_vout_listener_id::node, vlc_list_remove(), vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_player_t::vout_listeners_lock.
void vlc_player_vout_SetFullscreen | ( | vlc_player_t * | player, |
bool | enabled | ||
) |
Enable or disable the player fullscreen state.
This will have an effect on all current and future vouts.
player | player instance |
enabled | true to enable fullscreen |
References vlc_player_vout_SendEvent, vlc_player_vout_SetVar(), and VLC_VAR_BOOL.
Referenced by vlc_player_vout_ToggleFullscreen().
void vlc_player_vout_SetWallpaperModeEnabled | ( | vlc_player_t * | player, |
bool | enabled | ||
) |
Enable or disable the player wallpaper-mode.
This will have an effect on all current and future vouts.
player | player instance |
enabled | true to enable wallpaper-mode |
References vlc_player_vout_SendEvent, vlc_player_vout_SetVar(), and VLC_VAR_BOOL.
Referenced by vlc_player_vout_ToggleWallpaperMode().
void vlc_player_vout_Snapshot | ( | vlc_player_t * | player | ) |
Take a snapshot on all vouts.
player | player instance |
References vlc_player_vout_TriggerOption().
|
inlinestatic |
Helper to toggle the player fullscreen state.
References vlc_player_vout_IsFullscreen(), and vlc_player_vout_SetFullscreen().
|
inlinestatic |
Helper to toggle the player wallpaper-mode state.
References vlc_player_vout_IsWallpaperModeEnabled(), and vlc_player_vout_SetWallpaperModeEnabled().