summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_vo.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-29 17:15:55 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-29 17:20:44 +0300
commit1888e57af7e1ce51517ad9bdc2d201eaf84a98d2 (patch)
treef1c87c4a44a38ee5d2adc35719beec3c3213c723 /libmpcodecs/vf_vo.c
parentba5f104836b487d70b0ab107fb7a1325566504ad (diff)
downloadmpv-1888e57af7e1ce51517ad9bdc2d201eaf84a98d2.tar.bz2
mpv-1888e57af7e1ce51517ad9bdc2d201eaf84a98d2.tar.xz
cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf"
Change 'struct vf_instance' pointer arguments to more standard style as in the subject. Also some other minor formatting fixes. Patch by Diego Biurrun.
Diffstat (limited to 'libmpcodecs/vf_vo.c')
-rw-r--r--libmpcodecs/vf_vo.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c
index adee2a3a4c..3d48b5fce0 100644
--- a/libmpcodecs/vf_vo.c
+++ b/libmpcodecs/vf_vo.c
@@ -49,10 +49,10 @@ struct vf_priv_s {
};
#define video_out (vf->priv->vo)
-static int query_format(struct vf_instance* vf, unsigned int fmt); /* forward declaration */
-static void draw_slice(struct vf_instance *vf, unsigned char **src, int *stride, int w,int h, int x, int y);
+static int query_format(struct vf_instance *vf, unsigned int fmt); /* forward declaration */
+static void draw_slice(struct vf_instance *vf, unsigned char** src, int* stride, int w,int h, int x, int y);
-static int config(struct vf_instance* vf,
+static int config(struct vf_instance *vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt){
@@ -93,7 +93,7 @@ static int config(struct vf_instance* vf,
return 1;
}
-static int control(struct vf_instance* vf, int request, void* data)
+static int control(struct vf_instance *vf, int request, void* data)
{
switch(request){
case VFCTRL_GET_DEINTERLACE:
@@ -167,7 +167,7 @@ static int control(struct vf_instance* vf, int request, void* data)
return CONTROL_UNKNOWN;
}
-static int query_format(struct vf_instance* vf, unsigned int fmt){
+static int query_format(struct vf_instance *vf, unsigned int fmt){
int flags = vo_control(video_out, VOCTRL_QUERY_FORMAT, &fmt);
// draw_slice() accepts stride, draw_frame() doesn't:
if(flags)
@@ -176,7 +176,7 @@ static int query_format(struct vf_instance* vf, unsigned int fmt){
return flags;
}
-static void get_image(struct vf_instance* vf,
+static void get_image(struct vf_instance *vf,
mp_image_t *mpi){
if (!video_out->config_ok)
return;
@@ -186,7 +186,7 @@ static void get_image(struct vf_instance* vf,
vo_control(video_out, VOCTRL_GET_IMAGE, mpi);
}
-static int put_image(struct vf_instance* vf,
+static int put_image(struct vf_instance *vf,
mp_image_t *mpi, double pts){
if(!video_out->config_ok) return 0; // vo not configured?
// first check, maybe the vo/vf plugin implements draw_image using mpi:
@@ -204,19 +204,19 @@ static int put_image(struct vf_instance* vf,
return 1;
}
-static void start_slice(struct vf_instance* vf,
+static void start_slice(struct vf_instance *vf,
mp_image_t *mpi) {
if(!video_out->config_ok) return; // vo not configured?
vo_control(video_out, VOCTRL_START_SLICE,mpi);
}
-static void draw_slice(struct vf_instance* vf,
+static void draw_slice(struct vf_instance *vf,
unsigned char** src, int* stride, int w,int h, int x, int y){
if(!video_out->config_ok) return; // vo not configured?
vo_draw_slice(video_out, src,stride,w,h,x,y);
}
-static void uninit(struct vf_instance* vf)
+static void uninit(struct vf_instance *vf)
{
if (vf->priv) {
/* Allow VO (which may live on to work with another instance of vf_vo)