comparison libmpcodecs/vf_vo.c @ 28611:00c0123b6df3

Add VOCAP_NOSLICES and use it to allow vo_vdpau to not support slices for YV12 - since VDPAU only has functions to upload the full frame at once there is no sense in supporting draw_slice for that.
author reimar
date Wed, 18 Feb 2009 12:30:15 +0000
parents e887c2dd6c62
children 3a3370c00ba6
comparison
equal deleted inserted replaced
28610:2a1e03c1a4ba 28611:00c0123b6df3
30 #endif 30 #endif
31 }; 31 };
32 #define video_out (vf->priv->vo) 32 #define video_out (vf->priv->vo)
33 33
34 static int query_format(struct vf_instance_s* vf, unsigned int fmt); /* forward declaration */ 34 static int query_format(struct vf_instance_s* vf, unsigned int fmt); /* forward declaration */
35 static void draw_slice(struct vf_instance_s* vf, unsigned char** src, int* stride, int w,int h, int x, int y);
35 36
36 static int config(struct vf_instance_s* vf, 37 static int config(struct vf_instance_s* vf,
37 int width, int height, int d_width, int d_height, 38 int width, int height, int d_width, int d_height,
38 unsigned int flags, unsigned int outfmt){ 39 unsigned int flags, unsigned int outfmt){
39 40
59 mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Comment: %s\n", info->comment); 60 mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Comment: %s\n", info->comment);
60 } 61 }
61 62
62 // save vo's stride capability for the wanted colorspace: 63 // save vo's stride capability for the wanted colorspace:
63 vf->default_caps=query_format(vf,outfmt); 64 vf->default_caps=query_format(vf,outfmt);
65 vf->draw_slice = (vf->default_caps & VOCAP_NOSLICES) ? NULL : draw_slice;
64 66
65 if(config_video_out(video_out,width,height,d_width,d_height,flags,"MPlayer",outfmt)) 67 if(config_video_out(video_out,width,height,d_width,d_height,flags,"MPlayer",outfmt))
66 return 0; 68 return 0;
67 69
68 #ifdef CONFIG_ASS 70 #ifdef CONFIG_ASS