comparison libmpcodecs/vf_swapuv.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
30 #include "vf.h" 30 #include "vf.h"
31 31
32 32
33 //===========================================================================// 33 //===========================================================================//
34 34
35 static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ 35 static void get_image(struct vf_instance *vf, mp_image_t *mpi){
36 mp_image_t *dmpi= vf_get_image(vf->next, mpi->imgfmt, 36 mp_image_t *dmpi= vf_get_image(vf->next, mpi->imgfmt,
37 mpi->type, mpi->flags, mpi->w, mpi->h); 37 mpi->type, mpi->flags, mpi->w, mpi->h);
38 38
39 mpi->planes[0]=dmpi->planes[0]; 39 mpi->planes[0]=dmpi->planes[0];
40 mpi->planes[1]=dmpi->planes[2]; 40 mpi->planes[1]=dmpi->planes[2];
46 46
47 mpi->flags|=MP_IMGFLAG_DIRECT; 47 mpi->flags|=MP_IMGFLAG_DIRECT;
48 mpi->priv=(void*)dmpi; 48 mpi->priv=(void*)dmpi;
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 mp_image_t *dmpi; 52 mp_image_t *dmpi;
53 53
54 if(mpi->flags&MP_IMGFLAG_DIRECT){ 54 if(mpi->flags&MP_IMGFLAG_DIRECT){
55 dmpi=(mp_image_t*)mpi->priv; 55 dmpi=(mp_image_t*)mpi->priv;
56 } else { 56 } else {
70 return vf_next_put_image(vf,dmpi, pts); 70 return vf_next_put_image(vf,dmpi, pts);
71 } 71 }
72 72
73 //===========================================================================// 73 //===========================================================================//
74 74
75 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ 75 static int query_format(struct vf_instance *vf, unsigned int fmt){
76 switch(fmt) 76 switch(fmt)
77 { 77 {
78 case IMGFMT_YV12: 78 case IMGFMT_YV12:
79 case IMGFMT_I420: 79 case IMGFMT_I420:
80 case IMGFMT_IYUV: 80 case IMGFMT_IYUV: