Mercurial > mplayer.hg
comparison libmpcodecs/vf_yuvcsp.c @ 30642:a972c1a4a012
cosmetics: Rename struct vf_instance_s --> vf_instance.
author | diego |
---|---|
date | Sun, 21 Feb 2010 15:48:03 +0000 |
parents | a7b908875c14 |
children | 7af3e6f901fd |
comparison
equal
deleted
inserted
replaced
30641:b14b32c20935 | 30642:a972c1a4a012 |
---|---|
32 int csp; | 32 int csp; |
33 }; | 33 }; |
34 | 34 |
35 //===========================================================================// | 35 //===========================================================================// |
36 | 36 |
37 static int config(struct vf_instance_s* vf, | 37 static int config(struct vf_instance *vf, |
38 int width, int height, int d_width, int d_height, | 38 int width, int height, int d_width, int d_height, |
39 unsigned int flags, unsigned int outfmt){ | 39 unsigned int flags, unsigned int outfmt){ |
40 return vf_next_config(vf, width, height, d_width, d_height, flags, outfmt); | 40 return vf_next_config(vf, width, height, d_width, d_height, flags, outfmt); |
41 } | 41 } |
42 | 42 |
46 | 46 |
47 static inline int clamp_c(int x){ | 47 static inline int clamp_c(int x){ |
48 return (x > 240) ? 240 : (x < 16) ? 16 : x; | 48 return (x > 240) ? 240 : (x < 16) ? 16 : x; |
49 } | 49 } |
50 | 50 |
51 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ | 51 static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){ |
52 int i,j; | 52 int i,j; |
53 uint8_t *y_in, *cb_in, *cr_in; | 53 uint8_t *y_in, *cb_in, *cr_in; |
54 uint8_t *y_out, *cb_out, *cr_out; | 54 uint8_t *y_out, *cb_out, *cr_out; |
55 | 55 |
56 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, | 56 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, |
80 } | 80 } |
81 | 81 |
82 //===========================================================================// | 82 //===========================================================================// |
83 | 83 |
84 /* | 84 /* |
85 static void uninit(struct vf_instance_s* vf){ | 85 static void uninit(struct vf_instance *vf){ |
86 free(vf->priv); | 86 free(vf->priv); |
87 } | 87 } |
88 */ | 88 */ |
89 | 89 |
90 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ | 90 static int query_format(struct vf_instance *vf, unsigned int fmt){ |
91 switch(fmt){ | 91 switch(fmt){ |
92 case IMGFMT_YV12: | 92 case IMGFMT_YV12: |
93 case IMGFMT_I420: | 93 case IMGFMT_I420: |
94 case IMGFMT_IYUV: | 94 case IMGFMT_IYUV: |
95 return 1; | 95 return 1; |