comparison libmpcodecs/vf_yuy2.c @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents 00fff9a3b735
children bbb6ebec87a0
comparison
equal deleted inserted replaced
29262:7d545a6b8aff 29263:0f1b5b68af32
19 static int config(struct vf_instance_s* vf, 19 static int config(struct vf_instance_s* vf,
20 int width, int height, int d_width, int d_height, 20 int width, int height, int d_width, int d_height,
21 unsigned int flags, unsigned int outfmt){ 21 unsigned int flags, unsigned int outfmt){
22 22
23 sws_rgb2rgb_init(get_sws_cpuflags()); 23 sws_rgb2rgb_init(get_sws_cpuflags());
24 24
25 if(vf_next_query_format(vf,IMGFMT_YUY2)<=0){ 25 if(vf_next_query_format(vf,IMGFMT_YUY2)<=0){
26 mp_msg(MSGT_VFILTER, MSGL_WARN, MSGTR_MPCODECS_WarnNextFilterDoesntSupport, "YUY2"); 26 mp_msg(MSGT_VFILTER, MSGL_WARN, MSGTR_MPCODECS_WarnNextFilterDoesntSupport, "YUY2");
27 return 0; 27 return 0;
28 } 28 }
29 29
30 return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_YUY2); 30 return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_YUY2);
31 } 31 }
32 32
33 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ 33 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
34 mp_image_t *dmpi; 34 mp_image_t *dmpi;
42 yuv422ptoyuy2(mpi->planes[0],mpi->planes[1],mpi->planes[2], dmpi->planes[0], 42 yuv422ptoyuy2(mpi->planes[0],mpi->planes[1],mpi->planes[2], dmpi->planes[0],
43 mpi->w,mpi->h, mpi->stride[0],mpi->stride[1],dmpi->stride[0]); 43 mpi->w,mpi->h, mpi->stride[0],mpi->stride[1],dmpi->stride[0]);
44 else 44 else
45 yv12toyuy2(mpi->planes[0],mpi->planes[1],mpi->planes[2], dmpi->planes[0], 45 yv12toyuy2(mpi->planes[0],mpi->planes[1],mpi->planes[2], dmpi->planes[0],
46 mpi->w,mpi->h, mpi->stride[0],mpi->stride[1],dmpi->stride[0]); 46 mpi->w,mpi->h, mpi->stride[0],mpi->stride[1],dmpi->stride[0]);
47 47
48 vf_clone_mpi_attributes(dmpi, mpi); 48 vf_clone_mpi_attributes(dmpi, mpi);
49 49
50 return vf_next_put_image(vf,dmpi, pts); 50 return vf_next_put_image(vf,dmpi, pts);
51 } 51 }
52 52
53 //===========================================================================// 53 //===========================================================================//
54 54