Commit 1329ce1e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Try to improve comments

parent 4516c960
...@@ -47,7 +47,7 @@ typedef struct vout_display_owner_t vout_display_owner_t; ...@@ -47,7 +47,7 @@ typedef struct vout_display_owner_t vout_display_owner_t;
typedef struct vout_display_owner_sys_t vout_display_owner_sys_t; typedef struct vout_display_owner_sys_t vout_display_owner_sys_t;
/** /**
* It specifies the possible alignment used in vout_display. * Possible alignments for vout_display.
*/ */
typedef enum typedef enum
{ {
...@@ -119,7 +119,7 @@ typedef struct { ...@@ -119,7 +119,7 @@ typedef struct {
* Control query for vout_display_t * Control query for vout_display_t
*/ */
enum { enum {
/* Hide the mouse. It will be send when /* Hide the mouse. It will be sent when
* vout_display_t::info.b_hide_mouse is false */ * vout_display_t::info.b_hide_mouse is false */
VOUT_DISPLAY_HIDE_MOUSE, VOUT_DISPLAY_HIDE_MOUSE,
...@@ -129,31 +129,31 @@ enum { ...@@ -129,31 +129,31 @@ enum {
VOUT_DISPLAY_RESET_PICTURES, VOUT_DISPLAY_RESET_PICTURES,
/* Ask the module to acknowledge/refuse the fullscreen state change after /* Ask the module to acknowledge/refuse the fullscreen state change after
* being requested (externaly or by VOUT_DISPLAY_EVENT_FULLSCREEN */ * being requested (externally or by VOUT_DISPLAY_EVENT_FULLSCREEN */
VOUT_DISPLAY_CHANGE_FULLSCREEN, /* const vout_display_cfg_t *p_cfg */ VOUT_DISPLAY_CHANGE_FULLSCREEN, /* const vout_display_cfg_t *p_cfg */
/* Ask the module to acknowledge/refuse the on top state change after /* Ask the module to acknowledge/refuse the "always on top" state change
* being requested externaly */ * after being requested externally */
VOUT_DISPLAY_CHANGE_ON_TOP, /* int b_on_top */ VOUT_DISPLAY_CHANGE_ON_TOP, /* int b_on_top */
/* Ask the module to acknowledge/refuse the display size change requested /* Ask the module to acknowledge/refuse the display size change requested
* (externaly or by VOUT_DISPLAY_EVENT_DISPLAY_SIZE) */ * (externally or by VOUT_DISPLAY_EVENT_DISPLAY_SIZE) */
VOUT_DISPLAY_CHANGE_DISPLAY_SIZE, /* const vout_display_cfg_t *p_cfg */ VOUT_DISPLAY_CHANGE_DISPLAY_SIZE, /* const vout_display_cfg_t *p_cfg */
/* Ask the module to acknowledge/refuse fill display state change after /* Ask the module to acknowledge/refuse fill display state change after
* being requested externaly */ * being requested externally */
VOUT_DISPLAY_CHANGE_DISPLAY_FILLED, /* const vout_display_cfg_t *p_cfg */ VOUT_DISPLAY_CHANGE_DISPLAY_FILLED, /* const vout_display_cfg_t *p_cfg */
/* Ask the module to acknowledge/refuse zoom change after being requested /* Ask the module to acknowledge/refuse zoom change after being requested
* externaly */ * externally */
VOUT_DISPLAY_CHANGE_ZOOM, /* const vout_display_cfg_t *p_cfg */ VOUT_DISPLAY_CHANGE_ZOOM, /* const vout_display_cfg_t *p_cfg */
/* Ask the module to acknowledge/refuse source aspect ratio after being /* Ask the module to acknowledge/refuse source aspect ratio after being
* requested externaly */ * requested externally */
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT, /* const video_format_t *p_source */ VOUT_DISPLAY_CHANGE_SOURCE_ASPECT, /* const video_format_t *p_source */
/* Ask the module to acknowledge/refuse source crop change after being /* Ask the module to acknowledge/refuse source crop change after being
* requested externaly. * requested externally.
* The cropping requested is stored by video_format_t::i_x/y_offset and * The cropping requested is stored by video_format_t::i_x/y_offset and
* video_format_t::i_visible_width/height */ * video_format_t::i_visible_width/height */
VOUT_DISPLAY_CHANGE_SOURCE_CROP, /* const video_format_t *p_source */ VOUT_DISPLAY_CHANGE_SOURCE_CROP, /* const video_format_t *p_source */
...@@ -162,8 +162,8 @@ enum { ...@@ -162,8 +162,8 @@ enum {
/** /**
* Event from vout_display_t * Event from vout_display_t
* *
* For event that modifiy the state, you may send them multiple of times, * Events modifiying the state may be sent multiple times.
* only the transition will be kept and act upon. * Only the transition will be retained and acted upon.
*/ */
enum { enum {
/* TODO: /* TODO:
...@@ -201,13 +201,13 @@ struct vout_display_owner_t { ...@@ -201,13 +201,13 @@ struct vout_display_owner_t {
*/ */
vout_display_owner_sys_t *sys; vout_display_owner_sys_t *sys;
/* Event comming from the module /* Event coming from the module
* *
* This function is set prior to the module instantiation and must not * This function is set prior to the module instantiation and must not
* be overwritten nor used directly (use the vout_display_SendEvent* * be overwritten nor used directly (use the vout_display_SendEvent*
* wrapper. * wrapper.
* *
* You can send it at any time ie from any vout_display_t functions * You can send it at any time i.e. from any vout_display_t functions
* (TODO add support from a private thread). * (TODO add support from a private thread).
*/ */
void (*event)(vout_display_t *, int, va_list); void (*event)(vout_display_t *, int, va_list);
...@@ -228,16 +228,16 @@ struct vout_display_t { ...@@ -228,16 +228,16 @@ struct vout_display_t {
module_t *module; module_t *module;
/* Initial and current configuration. /* Initial and current configuration.
* You cannot modify it directly, you must use the appropriate event. * You cannot modify it directly, you must use the appropriate events.
* *
* It reflects the current in use value ie after the event has been accepted * It reflects the current values, i.e. after the event has been accepted
* and applied/configured if needed. * and applied/configured if needed.
*/ */
const vout_display_cfg_t *cfg; const vout_display_cfg_t *cfg;
/* video source format. /* video source format.
* *
* You are guaranted that in the open function, no cropping is asked. * Cropping is not requested while in the open function.
* You cannot change it. * You cannot change it.
*/ */
video_format_t source; video_format_t source;
...@@ -245,8 +245,8 @@ struct vout_display_t { ...@@ -245,8 +245,8 @@ struct vout_display_t {
/* picture_t format. /* picture_t format.
* *
* You can only change it inside the module open function to * You can only change it inside the module open function to
* match what you want and when a VOUT_DISPLAY_RESET_PICTURES * match what you want, and when a VOUT_DISPLAY_RESET_PICTURES control
* is called on your module and was successfull. * request is made and succeeds.
* *
* By default, it is equal to ::source except for the aspect ratio * By default, it is equal to ::source except for the aspect ratio
* which is undefined(0) and is ignored. * which is undefined(0) and is ignored.
...@@ -255,7 +255,7 @@ struct vout_display_t { ...@@ -255,7 +255,7 @@ struct vout_display_t {
/* Informations /* Informations
* *
* You can only set then in the open function. * You can only set them in the open function.
*/ */
vout_display_info_t info; vout_display_info_t info;
...@@ -296,7 +296,7 @@ struct vout_display_t { ...@@ -296,7 +296,7 @@ struct vout_display_t {
/* Private place holder for the vout_display_t module (optional) /* Private place holder for the vout_display_t module (optional)
* *
* A module is free to used it as it wishes. * A module is free to use it as it wishes.
*/ */
vout_display_sys_t *sys; vout_display_sys_t *sys;
...@@ -358,7 +358,7 @@ static inline void vout_display_SendEventMouseDoubleClick(vout_display_t *vd) ...@@ -358,7 +358,7 @@ static inline void vout_display_SendEventMouseDoubleClick(vout_display_t *vd)
} }
/** /**
* Ask for a new window with the given configuration as hint. * Asks for a new window with the given configuration as hint.
* *
* b_standalone/i_x/i_y may be overwritten by the core * b_standalone/i_x/i_y may be overwritten by the core
*/ */
...@@ -373,10 +373,10 @@ static inline void vout_display_DeleteWindow(vout_display_t *vd, ...@@ -373,10 +373,10 @@ static inline void vout_display_DeleteWindow(vout_display_t *vd,
} }
/** /**
* It computes the default display size given the source and * Computes the default display size given the source and
* the display configuration. * the display configuration.
* *
* It supposes that the picture will already be cropped. * This asssumes that the picture is already cropped.
*/ */
VLC_EXPORT( void, vout_display_GetDefaultDisplaySize, (int *width, int *height, const video_format_t *source, const vout_display_cfg_t *) ); VLC_EXPORT( void, vout_display_GetDefaultDisplaySize, (int *width, int *height, const video_format_t *source, const vout_display_cfg_t *) );
...@@ -392,9 +392,9 @@ typedef struct { ...@@ -392,9 +392,9 @@ typedef struct {
} vout_display_place_t; } vout_display_place_t;
/** /**
* It computes how to place a picture inside the display to respect * Computes how to place a picture inside the display to respect
* the given parameters. * the given parameters.
* It supposes that the cropping is done by an external mean. * This assumes that cropping is done by an external mean.
* *
* \param p_place Place inside the window (window pixel unit) * \param p_place Place inside the window (window pixel unit)
* \param p_source Video source format * \param p_source Video source format
......
...@@ -64,9 +64,9 @@ typedef struct { ...@@ -64,9 +64,9 @@ typedef struct {
int x; int x;
int y; int y;
/* Windows size int */ /* Windows size hint */
int width; unsigned width;
int height; unsigned height;
} vout_window_cfg_t; } vout_window_cfg_t;
...@@ -96,13 +96,13 @@ struct vout_window_t { ...@@ -96,13 +96,13 @@ struct vout_window_t {
/* Control on the module (mandatory) /* Control on the module (mandatory)
* *
* Do not use it directly but use vout_window_Control. * Do not use it directly; use vout_window_Control instead.
*/ */
int (*control)(vout_window_t *, int query, va_list); int (*control)(vout_window_t *, int query, va_list);
/* Private place holder for the vout_window_t module (optional) /* Private place holder for the vout_window_t module (optional)
* *
* A module is free to used it as it wishes. * A module is free to use it as it wishes.
*/ */
vout_window_sys_t *sys; vout_window_sys_t *sys;
}; };
...@@ -110,23 +110,23 @@ struct vout_window_t { ...@@ -110,23 +110,23 @@ struct vout_window_t {
/** /**
* It creates a new window. * It creates a new window.
* *
* XXX If you are inside a "vout display", you must use * @note If you are inside a "vout display", you must use
* vout_display_New/DeleteWindow when possible to allow window recycling. * vout_display_New/DeleteWindow when possible to allow window recycling.
*/ */
VLC_EXPORT( vout_window_t *, vout_window_New, (vlc_object_t *, const char *module, const vout_window_cfg_t *) ); VLC_EXPORT( vout_window_t *, vout_window_New, (vlc_object_t *, const char *module, const vout_window_cfg_t *) );
/** /**
* It deletes a window created by vout_window_New. * It deletes a window created by vout_window_New().
* *
* XXX See vout_window_New about window recycling. * @note See vout_window_New() about window recycling.
*/ */
VLC_EXPORT( void, vout_window_Delete, (vout_window_t *) ); VLC_EXPORT( void, vout_window_Delete, (vout_window_t *) );
/** /**
* It allows configuring a window. * It allows configuring a window.
* *
* XXX you must own the windows, and vout_window_t are not thread safe. * @warning The caller must own the window, as vout_window_t is not thread safe.
* You must not use it directly but prefer the vout_window_* wrappers. * You should use it the vout_window_* wrappers instead of this function.
*/ */
VLC_EXPORT( int, vout_window_Control, (vout_window_t *, int query, ...) ); VLC_EXPORT( int, vout_window_Control, (vout_window_t *, int query, ...) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment