VLC  3.0.21
Data Structures | Functions
display.c File Reference
Include dependency graph for display.c:

Data Structures

struct  vout_display_owner_sys_t
 
struct  vout_display_sys_t
 
struct  video_splitter_owner_t
 

Functions

static void SplitterClose (vout_display_t *vd)
 
static picture_tVideoBufferNew (filter_t *filter)
 
static vout_display_tvout_display_New (vlc_object_t *obj, const char *module, bool load_module, const video_format_t *fmt, const vout_display_cfg_t *cfg, vout_display_owner_t *owner)
 It creates a new vout_display_t using the given configuration. More...
 
static void vout_display_Delete (vout_display_t *vd)
 It deletes a vout_display_t. More...
 
static int vout_display_Control (vout_display_t *vd, int query,...)
 It controls a vout_display_t. More...
 
static void vout_display_Manage (vout_display_t *vd)
 
void vout_display_GetDefaultDisplaySize (unsigned *width, unsigned *height, const video_format_t *source, const vout_display_cfg_t *cfg)
 Computes the default display size given the source and the display configuration. More...
 
void vout_display_PlacePicture (vout_display_place_t *place, const video_format_t *source, const vout_display_cfg_t *cfg, bool do_clipping)
 Computes how to place a picture inside the display to respect the given parameters. More...
 
void vout_display_SendMouseMovedDisplayCoordinates (vout_display_t *vd, video_orientation_t orient_display, int m_x, int m_y, vout_display_place_t *place)
 Helper function that applies the necessary transforms to the mouse position and then calls vout_display_SendEventMouseMoved. More...
 
static int VoutDisplayCreateRender (vout_display_t *vd)
 
static void VoutDisplayDestroyRender (vout_display_t *vd)
 
static int VoutDisplayResetRender (vout_display_t *vd)
 
static void VoutDisplayEventMouse (vout_display_t *vd, int event, va_list args)
 
static void VoutDisplayEvent (vout_display_t *vd, int event, va_list args)
 
static vout_window_tVoutDisplayNewWindow (vout_display_t *vd, unsigned type)
 
static void VoutDisplayDelWindow (vout_display_t *vd, vout_window_t *window)
 
static void VoutDisplayFitWindow (vout_display_t *vd, bool default_size)
 
static void VoutDisplayCropRatio (int *left, int *top, int *right, int *bottom, const video_format_t *source, unsigned num, unsigned den)
 
bool vout_ManageDisplay (vout_display_t *vd, bool allow_reset_pictures)
 
bool vout_AreDisplayPicturesInvalid (vout_display_t *vd)
 
bool vout_IsDisplayFiltered (vout_display_t *vd)
 
picture_tvout_FilterDisplay (vout_display_t *vd, picture_t *picture)
 
void vout_FilterFlush (vout_display_t *vd)
 
void vout_UpdateDisplaySourceProperties (vout_display_t *vd, const video_format_t *source)
 
void vout_SetDisplayFilled (vout_display_t *vd, bool is_filled)
 
void vout_SetDisplayZoom (vout_display_t *vd, unsigned num, unsigned den)
 
void vout_SetDisplayAspect (vout_display_t *vd, unsigned dar_num, unsigned dar_den)
 
void vout_SetDisplayCrop (vout_display_t *vd, unsigned crop_num, unsigned crop_den, unsigned left, unsigned top, int right, int bottom)
 
void vout_SetDisplayViewpoint (vout_display_t *vd, const vlc_viewpoint_t *p_viewpoint)
 
static vout_display_tDisplayNew (vout_thread_t *vout, const video_format_t *source, const vout_display_state_t *state, const char *module, bool is_splitter, vlc_tick_t double_click_timeout, vlc_tick_t hide_timeout, const vout_display_owner_t *owner_ptr)
 
void vout_DeleteDisplay (vout_display_t *vd, vout_display_state_t *state)
 It destroy a vout managed display. More...
 
vout_display_tvout_NewDisplay (vout_thread_t *vout, const video_format_t *source, const vout_display_state_t *state, const char *module, vlc_tick_t double_click_timeout, vlc_tick_t hide_timeout)
 It creates a vout managed display. More...
 
static vout_window_tSplitterNewWindow (vout_display_t *vd, unsigned type)
 
static void SplitterDelWindow (vout_display_t *vd, vout_window_t *window)
 
static void SplitterEvent (vout_display_t *vd, int event, va_list args)
 
static picture_pool_tSplitterPool (vout_display_t *vd, unsigned count)
 
static void SplitterPrepare (vout_display_t *vd, picture_t *picture, subpicture_t *subpicture)
 
static void SplitterDisplay (vout_display_t *vd, picture_t *picture, subpicture_t *subpicture)
 
static int SplitterControl (vout_display_t *vd, int query, va_list args)
 
static void SplitterManage (vout_display_t *vd)
 
static int SplitterPictureNew (video_splitter_t *splitter, picture_t *picture[])
 
static void SplitterPictureDel (video_splitter_t *splitter, picture_t *picture[])
 
vout_display_tvout_NewSplitter (vout_thread_t *vout, const video_format_t *source, const vout_display_state_t *state, const char *module, const char *splitter_module, vlc_tick_t double_click_timeout, vlc_tick_t hide_timeout)
 
void vout_SendDisplayEventMouse (vout_thread_t *vout, const vlc_mouse_t *m)
 

Function Documentation

◆ DisplayNew()

static vout_display_t* DisplayNew ( vout_thread_t vout,
const video_format_t source,
const vout_display_state_t state,
const char *  module,
bool  is_splitter,
vlc_tick_t  double_click_timeout,
vlc_tick_t  hide_timeout,
const vout_display_owner_t owner_ptr 
)
static

Referenced by vout_NewDisplay().

◆ SplitterClose()

static void SplitterClose ( vout_display_t vd)
static

◆ SplitterControl()

static int SplitterControl ( vout_display_t vd,
int  query,
va_list  args 
)
static

< Unspecified error

◆ SplitterDelWindow()

static void SplitterDelWindow ( vout_display_t vd,
vout_window_t window 
)
static

◆ SplitterDisplay()

static void SplitterDisplay ( vout_display_t vd,
picture_t picture,
subpicture_t subpicture 
)
static

◆ SplitterEvent()

static void SplitterEvent ( vout_display_t vd,
int  event,
va_list  args 
)
static

◆ SplitterManage()

static void SplitterManage ( vout_display_t vd)
static

References VLC_EGENERIC.

◆ SplitterNewWindow()

static vout_window_t* SplitterNewWindow ( vout_display_t vd,
unsigned  type 
)
static

◆ SplitterPictureDel()

static void SplitterPictureDel ( video_splitter_t splitter,
picture_t picture[] 
)
static

◆ SplitterPictureNew()

static int SplitterPictureNew ( video_splitter_t splitter,
picture_t picture[] 
)
static

< Unspecified error

< No error

◆ SplitterPool()

static picture_pool_t* SplitterPool ( vout_display_t vd,
unsigned  count 
)
static

◆ SplitterPrepare()

static void SplitterPrepare ( vout_display_t vd,
picture_t picture,
subpicture_t subpicture 
)
static

◆ VideoBufferNew()

static picture_t* VideoBufferNew ( filter_t filter)
static

◆ vout_AreDisplayPicturesInvalid()

bool vout_AreDisplayPicturesInvalid ( vout_display_t vd)

◆ vout_DeleteDisplay()

void vout_DeleteDisplay ( vout_display_t vd,
vout_display_state_t state 
)

It destroy a vout managed display.

◆ vout_display_Control()

static int vout_display_Control ( vout_display_t vd,
int  query,
  ... 
)
static

It controls a vout_display_t.

References vout_display_t::control.

◆ vout_display_Delete()

static void vout_display_Delete ( vout_display_t vd)
static

◆ vout_display_Manage()

static void vout_display_Manage ( vout_display_t vd)
static

◆ vout_display_New()

static vout_display_t* vout_display_New ( vlc_object_t obj,
const char *  module,
bool  load_module,
const video_format_t fmt,
const vout_display_cfg_t cfg,
vout_display_owner_t owner 
)
static

◆ vout_FilterDisplay()

picture_t* vout_FilterDisplay ( vout_display_t vd,
picture_t picture 
)

◆ vout_FilterFlush()

void vout_FilterFlush ( vout_display_t vd)

◆ vout_IsDisplayFiltered()

bool vout_IsDisplayFiltered ( vout_display_t vd)

◆ vout_ManageDisplay()

bool vout_ManageDisplay ( vout_display_t vd,
bool  allow_reset_pictures 
)

< No error

◆ vout_NewDisplay()

vout_display_t* vout_NewDisplay ( vout_thread_t vout,
const video_format_t source,
const vout_display_state_t state,
const char *  module,
vlc_tick_t  double_click_timeout,
vlc_tick_t  hide_timeout 
)

It creates a vout managed display.

References DisplayNew().

Referenced by vout_OpenWrapper().

◆ vout_NewSplitter()

vout_display_t* vout_NewSplitter ( vout_thread_t vout,
const video_format_t source,
const vout_display_state_t state,
const char *  module,
const char *  splitter_module,
vlc_tick_t  double_click_timeout,
vlc_tick_t  hide_timeout 
)

Referenced by vout_OpenWrapper().

◆ vout_SendDisplayEventMouse()

void vout_SendDisplayEventMouse ( vout_thread_t vout,
const vlc_mouse_t m 
)

◆ vout_SetDisplayAspect()

void vout_SetDisplayAspect ( vout_display_t vd,
unsigned  dar_num,
unsigned  dar_den 
)

◆ vout_SetDisplayCrop()

void vout_SetDisplayCrop ( vout_display_t vd,
unsigned  crop_num,
unsigned  crop_den,
unsigned  left,
unsigned  top,
int  right,
int  bottom 
)

◆ vout_SetDisplayFilled()

void vout_SetDisplayFilled ( vout_display_t vd,
bool  is_filled 
)

◆ vout_SetDisplayViewpoint()

void vout_SetDisplayViewpoint ( vout_display_t vd,
const vlc_viewpoint_t p_viewpoint 
)

◆ vout_SetDisplayZoom()

void vout_SetDisplayZoom ( vout_display_t vd,
unsigned  num,
unsigned  den 
)

◆ vout_UpdateDisplaySourceProperties()

void vout_UpdateDisplaySourceProperties ( vout_display_t vd,
const video_format_t source 
)

◆ VoutDisplayCreateRender()

static int VoutDisplayCreateRender ( vout_display_t vd)
static

◆ VoutDisplayCropRatio()

static void VoutDisplayCropRatio ( int *  left,
int *  top,
int *  right,
int *  bottom,
const video_format_t source,
unsigned  num,
unsigned  den 
)
static

◆ VoutDisplayDelWindow()

static void VoutDisplayDelWindow ( vout_display_t vd,
vout_window_t window 
)
static

◆ VoutDisplayDestroyRender()

static void VoutDisplayDestroyRender ( vout_display_t vd)
static

◆ VoutDisplayEvent()

static void VoutDisplayEvent ( vout_display_t vd,
int  event,
va_list  args 
)
static

◆ VoutDisplayEventMouse()

static void VoutDisplayEventMouse ( vout_display_t vd,
int  event,
va_list  args 
)
static

◆ VoutDisplayFitWindow()

static void VoutDisplayFitWindow ( vout_display_t vd,
bool  default_size 
)
static

◆ VoutDisplayNewWindow()

static vout_window_t* VoutDisplayNewWindow ( vout_display_t vd,
unsigned  type 
)
static

◆ VoutDisplayResetRender()

static int VoutDisplayResetRender ( vout_display_t vd)
static