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

Data Structures

struct  vlc_window_ack_data
 
struct  vout_display_window
 

Macros

#define DOUBLE_CLICK_TIME   VLC_TICK_FROM_MS(300)
 

Typedefs

typedef struct vout_display_window vout_display_window_t
 

Functions

static void vlc_window_Ack (void *data)
 
static void vout_display_window_ResizeNotify (vlc_window_t *window, unsigned width, unsigned height, vlc_window_ack_cb cb, void *opaque)
 
static void vout_display_window_CloseNotify (vlc_window_t *window)
 
static void vout_display_window_StateNotify (vlc_window_t *window, unsigned window_state)
 
static void vout_display_window_FullscreenNotify (vlc_window_t *window, const char *id)
 
static void vout_display_window_WindowingNotify (vlc_window_t *window)
 
static void vout_display_window_MouseEvent (vlc_window_t *window, const vlc_window_mouse_event_t *ev)
 
static void vout_display_window_KeyboardEvent (vlc_window_t *window, unsigned key)
 
static void vout_display_window_OutputEvent (vlc_window_t *window, const char *name, const char *desc)
 
static void vout_display_window_IccEvent (vlc_window_t *window, vlc_icc_profile_t *profile)
 
void vout_display_window_SetMouseHandler (vlc_window_t *window, vlc_mouse_event event, void *opaque)
 
static void vout_display_SizeWindow (unsigned *restrict width, unsigned *restrict height, const video_format_t *restrict original, const vlc_rational_t *restrict dar, const struct vout_crop *restrict crop, const struct vout_display_placement *restrict dp)
 
void vout_display_ResizeWindow (struct vlc_window *window, const video_format_t *restrict original, const vlc_rational_t *restrict dar, const struct vout_crop *restrict crop, const struct vout_display_placement *restrict dp)
 
vlc_window_tvout_display_window_New (vout_thread_t *vout)
 Creates a video window, initially without any attached display.
 
void vout_display_window_Delete (vlc_window_t *window)
 Destroys a video window.
 

Variables

static const struct vlc_window_callbacks vout_display_window_cbs
 

Macro Definition Documentation

◆ DOUBLE_CLICK_TIME

#define DOUBLE_CLICK_TIME   VLC_TICK_FROM_MS(300)

Typedef Documentation

◆ vout_display_window_t

Function Documentation

◆ vlc_window_Ack()

◆ vout_display_ResizeWindow()

void vout_display_ResizeWindow ( struct vlc_window window,
const video_format_t *restrict  original,
const vlc_rational_t *restrict  dar,
const struct vout_crop *restrict  crop,
const struct vout_display_placement *restrict  dp 
)

◆ vout_display_SizeWindow()

static void vout_display_SizeWindow ( unsigned *restrict  width,
unsigned *restrict  height,
const video_format_t *restrict  original,
const vlc_rational_t *restrict  dar,
const struct vout_crop *restrict  crop,
const struct vout_display_placement *restrict  dp 
)
static

◆ vout_display_window_CloseNotify()

static void vout_display_window_CloseNotify ( vlc_window_t window)
static

◆ vout_display_window_Delete()

void vout_display_window_Delete ( vlc_window_t window)

Destroys a video window.

Note
The window must be detached.

References vlc_window::owner, state, vlc_window_owner::sys, var_Destroy(), video_format_Clean(), and vlc_window_Delete().

Referenced by vout_Release().

◆ vout_display_window_FullscreenNotify()

static void vout_display_window_FullscreenNotify ( vlc_window_t window,
const char *  id 
)
static

◆ vout_display_window_IccEvent()

static void vout_display_window_IccEvent ( vlc_window_t window,
vlc_icc_profile_t profile 
)
static

◆ vout_display_window_KeyboardEvent()

static void vout_display_window_KeyboardEvent ( vlc_window_t window,
unsigned  key 
)
static

◆ vout_display_window_MouseEvent()

◆ vout_display_window_New()

◆ vout_display_window_OutputEvent()

static void vout_display_window_OutputEvent ( vlc_window_t window,
const char *  name,
const char *  desc 
)
static

◆ vout_display_window_ResizeNotify()

◆ vout_display_window_SetMouseHandler()

void vout_display_window_SetMouseHandler ( vlc_window_t window,
vlc_mouse_event  event,
void *  opaque 
)

◆ vout_display_window_StateNotify()

static void vout_display_window_StateNotify ( vlc_window_t window,
unsigned  window_state 
)
static

◆ vout_display_window_WindowingNotify()

static void vout_display_window_WindowingNotify ( vlc_window_t window)
static

Variable Documentation

◆ vout_display_window_cbs

const struct vlc_window_callbacks vout_display_window_cbs
static
Initial value:
= {
}
static void vout_display_window_OutputEvent(vlc_window_t *window, const char *name, const char *desc)
Definition video_window.c:222
static void vout_display_window_MouseEvent(vlc_window_t *window, const vlc_window_mouse_event_t *ev)
Definition video_window.c:136
static void vout_display_window_KeyboardEvent(vlc_window_t *window, unsigned key)
Definition video_window.c:216
static void vout_display_window_WindowingNotify(vlc_window_t *window)
Definition video_window.c:127
static void vout_display_window_StateNotify(vlc_window_t *window, unsigned window_state)
Definition video_window.c:97
static void vout_display_window_ResizeNotify(vlc_window_t *window, unsigned width, unsigned height, vlc_window_ack_cb cb, void *opaque)
Definition video_window.c:72
static void vout_display_window_FullscreenNotify(vlc_window_t *window, const char *id)
Definition video_window.c:114
static void vout_display_window_IccEvent(vlc_window_t *window, vlc_icc_profile_t *profile)
Definition video_window.c:231
static void vout_display_window_CloseNotify(vlc_window_t *window)
Definition video_window.c:90

Referenced by vout_display_window_New().