VLC  4.0.0-dev
display.c File Reference
Include dependency graph for display.c:

Data Structures

struct  vout_display_priv_t
 

Functions

static int vout_display_Control (vout_display_t *vd, int query)
 
void vout_display_GetDefaultDisplaySize (unsigned *width, unsigned *height, const video_format_t *source, const struct vout_display_placement *dp)
 Computes the default display size given the source and the display configuration. More...
 
void vout_display_PlacePicture (vout_display_place_t *restrict place, const video_format_t *restrict source, const struct vout_display_placement *restrict dp)
 
void vout_display_TranslateCoordinates (int *restrict xp, int *restrict yp, const video_format_t *restrict source, const struct vout_display_placement *restrict dp)
 Translates window coordinates to video coordinates. More...
 
static picture_tVideoBufferNew (filter_t *filter)
 
static vlc_decoder_deviceDisplayHoldDecoderDevice (vlc_object_t *o, void *sys)
 
static int VoutDisplayCreateRender (vout_display_t *vd)
 
static void VoutDisplayCropRatio (int *left, int *top, int *right, int *bottom, const video_format_t *source, unsigned num, unsigned den)
 
picture_pool_tvout_GetPool (vout_display_t *vd, unsigned count)
 It retrieves a picture pool from the display. More...
 
bool vout_IsDisplayFiltered (vout_display_t *vd)
 
picture_tvout_ConvertForDisplay (vout_display_t *vd, picture_t *picture)
 
picture_tvout_display_Prepare (vout_display_t *vd, picture_t *picture, subpicture_t *subpic, vlc_tick_t date)
 Prepares a picture for display. More...
 
void vout_FilterFlush (vout_display_t *vd)
 
static void vout_display_Reset (vout_display_t *vd)
 
static int vout_UpdateSourceCrop (vout_display_t *vd)
 
static int vout_SetSourceAspect (vout_display_t *vd, unsigned sar_num, unsigned sar_den)
 
void VoutFixFormatAR (video_format_t *fmt)
 
void vout_UpdateDisplaySourceProperties (vout_display_t *vd, const video_format_t *source, const vlc_rational_t *forced_dar)
 
void vout_display_SetSize (vout_display_t *vd, unsigned width, unsigned height)
 
void vout_SetDisplayFitting (vout_display_t *vd, enum vlc_video_fitting fit)
 
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, const struct vout_crop *restrict crop)
 
void vout_SetDisplayViewpoint (vout_display_t *vd, const vlc_viewpoint_t *p_viewpoint)
 
vout_display_tvout_display_New (vlc_object_t *parent, const video_format_t *source, vlc_video_context *vctx, const vout_display_cfg_t *cfg, const char *module, const vout_display_owner_t *owner)
 Creates video output display. More...
 
void vout_display_Delete (vout_display_t *vd)
 Destroys a video output display. More...
 

Variables

static const struct filter_video_callbacks vout_display_filter_cbs
 

Function Documentation

◆ DisplayHoldDecoderDevice()

static vlc_decoder_device* DisplayHoldDecoderDevice ( vlc_object_t o,
void *  sys 
)
static

◆ VideoBufferNew()

◆ vout_ConvertForDisplay()

◆ vout_display_Control()

◆ vout_display_PlacePicture()

◆ vout_display_Reset()

◆ vout_display_TranslateCoordinates()

void vout_display_TranslateCoordinates ( int *restrict  xp,
int *restrict  yp,
const video_format_t *restrict  source,
const struct vout_display_placement *restrict  dp 
)

◆ vout_FilterFlush()

void vout_FilterFlush ( vout_display_t vd)

◆ vout_GetPool()

picture_pool_t* vout_GetPool ( vout_display_t vd,
unsigned  count 
)

It retrieves a picture pool from the display.

References container_of, count, vout_display_priv_t::display_fmt, picture_pool_NewFromFormat(), and vout_display_priv_t::pool.

Referenced by VideoBufferNew(), and vout_OpenWrapper().

◆ vout_IsDisplayFiltered()

bool vout_IsDisplayFiltered ( vout_display_t vd)

◆ vout_SetDisplayAspect()

◆ vout_SetDisplayCrop()

void vout_SetDisplayCrop ( vout_display_t vd,
const struct vout_crop *restrict  crop 
)

◆ vout_SetDisplayFitting()

◆ vout_SetDisplayViewpoint()

◆ vout_SetDisplayZoom()

◆ vout_SetSourceAspect()

◆ vout_UpdateDisplaySourceProperties()

◆ vout_UpdateSourceCrop()

◆ VoutDisplayCreateRender()

◆ VoutDisplayCropRatio()

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

◆ VoutFixFormatAR()

Variable Documentation

◆ vout_display_filter_cbs

const struct filter_video_callbacks vout_display_filter_cbs
static
Initial value:
= {
}
static picture_t * VideoBufferNew(filter_t *filter)
Definition: display.c:252
static vlc_decoder_device * DisplayHoldDecoderDevice(vlc_object_t *o, void *sys)
Definition: display.c:268

Referenced by VoutDisplayCreateRender().