comparison libmpcodecs/vf_yuy2.c @ 10993:7f95a79ba916

10l
author alex
date Fri, 03 Oct 2003 22:32:28 +0000
parents 89da8ec89558
children 6ff3379a0862
comparison
equal deleted inserted replaced
10992:a22b67e448cf 10993:7f95a79ba916
10 #include "mp_image.h" 10 #include "mp_image.h"
11 #include "vf.h" 11 #include "vf.h"
12 12
13 #include "../libvo/fastmemcpy.h" 13 #include "../libvo/fastmemcpy.h"
14 #include "../postproc/rgb2rgb.h" 14 #include "../postproc/rgb2rgb.h"
15 #include "vf_scale.h"
15 16
16 //===========================================================================// 17 //===========================================================================//
17 18
18 static int config(struct vf_instance_s* vf, 19 static int config(struct vf_instance_s* vf,
19 int width, int height, int d_width, int d_height, 20 int width, int height, int d_width, int d_height,
20 unsigned int flags, unsigned int outfmt){ 21 unsigned int flags, unsigned int outfmt){
22
23 sws_rgb2rgb_init(get_sws_cpuflags());
21 24
22 if(vf_next_query_format(vf,IMGFMT_YUY2)<=0){ 25 if(vf_next_query_format(vf,IMGFMT_YUY2)<=0){
23 printf("yuy2 not supported by next filter/vo :(\n"); 26 printf("yuy2 not supported by next filter/vo :(\n");
24 return 0; 27 return 0;
25 } 28 }