VLC 4.0.0-dev
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. More...
 
vout_thread_t ** vlc_player_vout_HoldAll (vlc_player_t *player, size_t *count)
 Get and hold the list of video output. More...
 
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. More...
 
void vlc_player_vout_RemoveListener (vlc_player_t *player, vlc_player_vout_listener_id *id)
 Remove a vout listener callback. More...
 
bool vlc_player_vout_IsFullscreen (vlc_player_t *player)
 Check if the player is fullscreen. More...
 
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. More...
 
bool vlc_player_vout_IsWallpaperModeEnabled (vlc_player_t *player)
 Check if the player has wallpaper-mode enaled. More...
 
void vlc_player_vout_SetWallpaperModeEnabled (vlc_player_t *player, bool enabled)
 Enable or disable the player wallpaper-mode. More...
 
void vlc_player_vout_Snapshot (vlc_player_t *player)
 Take a snapshot on all vouts. More...
 

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_player_vout_listener_id *listener; \
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)

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().