VLC 4.0.0-dev
Loading...
Searching...
No Matches
vout.c File Reference
Include dependency graph for vout.c:

Macros

#define vlc_player_vout_SendEvent(player, event, ...)
 

Functions

vout_thread_tvlc_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_idvlc_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 *id)
 Remove a vout listener callback.
 
bool vlc_player_vout_IsFullscreen (vlc_player_t *player)
 Check if the player is fullscreen.
 
static int vlc_player_VoutCallback (vlc_object_t *this, const char *var, vlc_value_t oldval, vlc_value_t newval, void *data)
 
void vlc_player_vout_AddCallbacks (vlc_player_t *player, vout_thread_t *vout)
 
void vlc_player_vout_DelCallbacks (vlc_player_t *player, vout_thread_t *vout)
 
static void vlc_player_vout_SetVar (vlc_player_t *player, const char *name, int type, vlc_value_t val)
 
static void vlc_player_vout_TriggerOption (vlc_player_t *player, const char *option)
 
void vlc_player_vout_SetFullscreen (vlc_player_t *player, bool enabled)
 Enable or disable 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.
 
void vlc_player_vout_Snapshot (vlc_player_t *player)
 Take a snapshot on all vouts.
 

Variables

static const char osd_vars [][sizeof("secondary-sub-margin")]
 

Macro Definition Documentation

◆ vlc_player_vout_SendEvent

#define vlc_player_vout_SendEvent (   player,
  event,
  ... 
)
Value:
do { \
vlc_mutex_lock(&player->vout_listeners_lock); \
vlc_list_foreach(listener, &player->vout_listeners, node) \
{ \
if (listener->cbs->event) \
listener->cbs->event(__VA_ARGS__, listener->cbs_data); \
} \
vlc_mutex_unlock(&player->vout_listeners_lock); \
} while(0)
Definition player.h:152
void * cbs_data
Definition player.h:154
const struct vlc_player_vout_cbs * cbs
Definition player.h:153

Function Documentation

◆ vlc_player_vout_AddCallbacks()

void vlc_player_vout_AddCallbacks ( vlc_player_t player,
vout_thread_t vout 
)

◆ vlc_player_vout_DelCallbacks()

void vlc_player_vout_DelCallbacks ( vlc_player_t player,
vout_thread_t vout 
)

◆ vlc_player_vout_SetVar()

static void vlc_player_vout_SetVar ( vlc_player_t player,
const char *  name,
int  type,
vlc_value_t  val 
)
static

◆ vlc_player_vout_TriggerOption()

static void vlc_player_vout_TriggerOption ( vlc_player_t player,
const char *  option 
)
static

◆ vlc_player_VoutCallback()

static int vlc_player_VoutCallback ( vlc_object_t this,
const char *  var,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  data 
)
static

Variable Documentation

◆ osd_vars

const char osd_vars[][sizeof("secondary-sub-margin")]
static
Initial value:
= {
"aspect-ratio", "autoscale", "crop", "crop-bottom",
"crop-top", "crop-left", "crop-right", "deinterlace",
"deinterlace-mode", "sub-margin", "secondary-sub-margin", "zoom"
}

Referenced by vlc_player_vout_AddCallbacks(), and vlc_player_vout_DelCallbacks().