comparison libmpcodecs/vf_vo.c @ 17906:20aca9baf5d8

passing pts through the filter layer (lets see if pts or cola comes out at the end)
author michael
date Tue, 21 Mar 2006 21:26:42 +0000
parents 6ff3379a0862
children d9a75b26da6c
comparison
equal deleted inserted replaced
17905:433494f162a9 17906:20aca9baf5d8
98 if(vo_directrendering && vo_config_count) 98 if(vo_directrendering && vo_config_count)
99 video_out->control(VOCTRL_GET_IMAGE,mpi); 99 video_out->control(VOCTRL_GET_IMAGE,mpi);
100 } 100 }
101 101
102 static int put_image(struct vf_instance_s* vf, 102 static int put_image(struct vf_instance_s* vf,
103 mp_image_t *mpi){ 103 mp_image_t *mpi, double pts){
104 if(!vo_config_count) return 0; // vo not configured? 104 if(!vo_config_count) return 0; // vo not configured?
105 // first check, maybe the vo/vf plugin implements draw_image using mpi: 105 // first check, maybe the vo/vf plugin implements draw_image using mpi:
106 if(video_out->control(VOCTRL_DRAW_IMAGE,mpi)==VO_TRUE) return 1; // done. 106 if(video_out->control(VOCTRL_DRAW_IMAGE,mpi)==VO_TRUE) return 1; // done.
107 // nope, fallback to old draw_frame/draw_slice: 107 // nope, fallback to old draw_frame/draw_slice:
108 if(!(mpi->flags&(MP_IMGFLAG_DIRECT|MP_IMGFLAG_DRAW_CALLBACK))){ 108 if(!(mpi->flags&(MP_IMGFLAG_DIRECT|MP_IMGFLAG_DRAW_CALLBACK))){