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

Functions

static int CropCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int CropBorderCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int AspectCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int AutoScaleCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int FitCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int ZoomCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int AboveCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int WallPaperCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int FullscreenCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int SnapshotCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int VideoFilterCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int SubSourceCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int SubFilterCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int SubMarginCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int SecondarySubMarginCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static int ViewpointCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
static void AddCustomRatios (vout_thread_t *p_vout, const char *psz_var, char *psz_list)
 
enum vlc_video_fitting var_InheritFit (vlc_object_t *obj)
 
void vout_CreateVars (vout_thread_t *p_vout)
 
void vout_IntfInit (vout_thread_t *p_vout)
 
void vout_IntfReinit (vout_thread_t *p_vout)
 
void vout_IntfDeinit (vlc_object_t *obj)
 
static int VoutSnapshotPip (vout_thread_t *p_vout, picture_t *p_pic)
 This function will inject a subpicture into the vout with the provided picture.
 
static void VoutOsdSnapshot (vout_thread_t *p_vout, picture_t *p_pic, const char *psz_filename)
 This function will display the name and a PIP of the provided snapshot.
 
static void VoutSaveSnapshot (vout_thread_t *p_vout)
 This function will handle a snapshot request.
 
bool vout_ParseCrop (struct vout_crop *restrict cfg, const char *crop_str)
 
bool GetAspectRatio (const char *ar_str, unsigned *num, unsigned *den)
 

Variables

struct { 
 
   double   f_value 
 
   char   psz_label [13] 
 
p_zoom_values [] 
 
struct { 
 
   char   psz_value [8] 
 
   char   psz_label [8] 
 
p_crop_values [] 
 
struct { 
 
   char   psz_value [8] 
 
   char   psz_label [8] 
 
p_aspect_ratio_values [] 
 
struct { 
 
   enum vlc_video_fitting   fit 
 
   char   psz_label [15] 
 
p_fit_values [] 
 

Function Documentation

◆ AboveCallback()

static int AboveCallback ( vlc_object_t obj,
char const *  name,
vlc_value_t  prev,
vlc_value_t  cur,
void *  data 
)
static

◆ AddCustomRatios()

static void AddCustomRatios ( vout_thread_t p_vout,
const char *  psz_var,
char *  psz_list 
)
static

◆ AspectCallback()

static int AspectCallback ( vlc_object_t object,
char const *  cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  data 
)
static

◆ AutoScaleCallback()

static int AutoScaleCallback ( vlc_object_t obj,
char const *  name,
vlc_value_t  prev,
vlc_value_t  cur,
void *  data 
)
static

◆ CropBorderCallback()

static int CropBorderCallback ( vlc_object_t object,
char const *  cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  data 
)
static

◆ CropCallback()

static int CropCallback ( vlc_object_t object,
char const *  cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  data 
)
static

◆ FitCallback()

static int FitCallback ( vlc_object_t obj,
char const *  name,
vlc_value_t  prev,
vlc_value_t  cur,
void *  data 
)
static

◆ FullscreenCallback()

static int FullscreenCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
)
static

◆ GetAspectRatio()

bool GetAspectRatio ( const char *  ar_str,
unsigned *  num,
unsigned *  den 
)

References VLC_DAR_FROM_SOURCE.

Referenced by AspectCallback(), and vout_InitSource().

◆ SecondarySubMarginCallback()

static int SecondarySubMarginCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
)
static

◆ SnapshotCallback()

static int SnapshotCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
)
static

◆ SubFilterCallback()

static int SubFilterCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
)
static

◆ SubMarginCallback()

static int SubMarginCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
)
static

◆ SubSourceCallback()

static int SubSourceCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
)
static

◆ var_InheritFit()

◆ VideoFilterCallback()

static int VideoFilterCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
)
static

◆ ViewpointCallback()

static int ViewpointCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
)
static

◆ vout_CreateVars()

◆ vout_IntfDeinit()

◆ vout_IntfInit()

◆ vout_IntfReinit()

void vout_IntfReinit ( vout_thread_t p_vout)

References var_TriggerCallback().

Referenced by vout_Request().

◆ vout_ParseCrop()

bool vout_ParseCrop ( struct vout_crop *restrict  cfg,
const char *  crop_str 
)

◆ VoutOsdSnapshot()

static void VoutOsdSnapshot ( vout_thread_t p_vout,
picture_t p_pic,
const char *  psz_filename 
)
static

This function will display the name and a PIP of the provided snapshot.

References msg_Dbg, msg_Warn, var_InheritBool(), vout_OSDMessage(), VOUT_SPU_CHANNEL_OSD, and VoutSnapshotPip().

Referenced by VoutSaveSnapshot().

◆ VoutSaveSnapshot()

◆ VoutSnapshotPip()

◆ WallPaperCallback()

static int WallPaperCallback ( vlc_object_t obj,
char const *  name,
vlc_value_t  prev,
vlc_value_t  cur,
void *  data 
)
static

◆ ZoomCallback()

static int ZoomCallback ( vlc_object_t obj,
char const *  name,
vlc_value_t  prev,
vlc_value_t  cur,
void *  data 
)
static

Variable Documentation

◆ f_value

◆ fit

◆ [struct]

const struct { ... } p_aspect_ratio_values[]
Initial value:
= {
{ "", N_("Default") },
{ "16:9", "16:9" },
{ "4:3", "4:3" },
{ "1:1", "1:1" },
{ "16:10", "16:10" },
{ "221:100", "2.21:1" },
{ "235:100", "2.35:1" },
{ "239:100", "2.39:1" },
{ "5:4", "5:4" },
}
#define N_(str)
Definition vlc_fixups.h:453

Referenced by vout_CreateVars().

◆ [struct]

const struct { ... } p_crop_values[]
Initial value:
= {
{ "", N_("Default") },
{ "16:10", "16:10" },
{ "16:9", "16:9" },
{ "4:3", "4:3" },
{ "185:100", "1.85:1" },
{ "221:100", "2.21:1" },
{ "235:100", "2.35:1" },
{ "239:100", "2.39:1" },
{ "5:3", "5:3" },
{ "5:4", "5:4" },
{ "1:1", "1:1" },
}

Referenced by vout_CreateVars().

◆ [struct]

const struct { ... } p_fit_values[]
Initial value:
= {
{ VLC_VIDEO_FIT_NONE, N_("None") },
{ VLC_VIDEO_FIT_SMALLER, N_("Inside Window") },
{ VLC_VIDEO_FIT_LARGER, N_("Outside Window") },
{ VLC_VIDEO_FIT_WIDTH, N_("Window Width") },
{ VLC_VIDEO_FIT_HEIGHT, N_("Window Height") },
}
@ VLC_VIDEO_FIT_HEIGHT
Fit to height.
Definition vlc_vout_display.h:89
@ VLC_VIDEO_FIT_LARGER
Fit outside / to largest dimension.
Definition vlc_vout_display.h:87
@ VLC_VIDEO_FIT_NONE
No automatic scaling (use explicit zoom ratio)
Definition vlc_vout_display.h:85
@ VLC_VIDEO_FIT_SMALLER
Fit inside / to smallest dimension.
Definition vlc_vout_display.h:86
@ VLC_VIDEO_FIT_WIDTH
Fit to width.
Definition vlc_vout_display.h:88

Referenced by vout_CreateVars().

◆ [struct]

const struct { ... } p_zoom_values[]
Initial value:
= {
{ 0.25, N_("1:4 Quarter") },
{ 0.5, N_("1:2 Half") },
{ 1, N_("1:1 Original") },
{ 2, N_("2:1 Double") },
}

Referenced by vout_CreateVars().

◆ psz_label

char psz_label[15]

◆ psz_value