Mercurial > mplayer.hg
comparison libmpcodecs/vf_rgb2bgr.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 |
comparison
equal
deleted
inserted
replaced
30641:b14b32c20935 | 30642:a972c1a4a012 |
---|---|
52 case IMGFMT_BGR32: return IMGFMT_RGB32; | 52 case IMGFMT_BGR32: return IMGFMT_RGB32; |
53 } | 53 } |
54 return 0; | 54 return 0; |
55 } | 55 } |
56 | 56 |
57 static int config(struct vf_instance_s* vf, | 57 static int config(struct vf_instance *vf, |
58 int width, int height, int d_width, int d_height, | 58 int width, int height, int d_width, int d_height, |
59 unsigned int flags, unsigned int outfmt){ | 59 unsigned int flags, unsigned int outfmt){ |
60 vf->priv->fmt=getfmt(outfmt,vf->priv->forced); | 60 vf->priv->fmt=getfmt(outfmt,vf->priv->forced); |
61 return vf_next_config(vf,width,height,d_width,d_height,flags,vf->priv->fmt); | 61 return vf_next_config(vf,width,height,d_width,d_height,flags,vf->priv->fmt); |
62 } | 62 } |
63 | 63 |
64 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ | 64 static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){ |
65 mp_image_t *dmpi; | 65 mp_image_t *dmpi; |
66 | 66 |
67 // hope we'll get DR buffer: | 67 // hope we'll get DR buffer: |
68 dmpi=vf_get_image(vf->next,vf->priv->fmt, | 68 dmpi=vf_get_image(vf->next,vf->priv->fmt, |
69 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, | 69 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, |
92 return vf_next_put_image(vf,dmpi, pts); | 92 return vf_next_put_image(vf,dmpi, pts); |
93 } | 93 } |
94 | 94 |
95 //===========================================================================// | 95 //===========================================================================// |
96 | 96 |
97 static int query_format(struct vf_instance_s* vf, unsigned int outfmt){ | 97 static int query_format(struct vf_instance *vf, unsigned int outfmt){ |
98 unsigned int fmt=getfmt(outfmt,vf->priv->forced); | 98 unsigned int fmt=getfmt(outfmt,vf->priv->forced); |
99 if(!fmt) return 0; | 99 if(!fmt) return 0; |
100 return vf_next_query_format(vf,fmt) & (~VFCAP_CSP_SUPPORTED_BY_HW); | 100 return vf_next_query_format(vf,fmt) & (~VFCAP_CSP_SUPPORTED_BY_HW); |
101 } | 101 } |
102 | 102 |