comparison libmpcodecs/ve_x264.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 578074a74d4e
children a08a78145d9b
comparison
equal deleted inserted replaced
17905:433494f162a9 17906:20aca9baf5d8
219 } 219 }
220 mod->param.i_cqm_preset = X264_CQM_CUSTOM; 220 mod->param.i_cqm_preset = X264_CQM_CUSTOM;
221 return 0; 221 return 0;
222 } 222 }
223 223
224 static int put_image(struct vf_instance_s *vf, mp_image_t *mpi); 224 static int put_image(struct vf_instance_s *vf, mp_image_t *mpi, double pts);
225 static int encode_frame(struct vf_instance_s *vf, x264_picture_t *pic_in); 225 static int encode_frame(struct vf_instance_s *vf, x264_picture_t *pic_in);
226 226
227 static int config(struct vf_instance_s* vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt) { 227 static int config(struct vf_instance_s* vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt) {
228 h264_module_t *mod=(h264_module_t*)vf->priv; 228 h264_module_t *mod=(h264_module_t*)vf->priv;
229 mod->mux->bih->biWidth = width; 229 mod->mux->bih->biWidth = width;
472 return 0; /* VFCAP_CSP_SUPPORTED */ 472 return 0; /* VFCAP_CSP_SUPPORTED */
473 } 473 }
474 return 0; 474 return 0;
475 } 475 }
476 476
477 static int put_image(struct vf_instance_s *vf, mp_image_t *mpi) 477 static int put_image(struct vf_instance_s *vf, mp_image_t *mpi, double pts)
478 { 478 {
479 h264_module_t *mod=(h264_module_t*)vf->priv; 479 h264_module_t *mod=(h264_module_t*)vf->priv;
480 int i; 480 int i;
481 481
482 memset(&mod->pic, 0, sizeof(x264_picture_t)); 482 memset(&mod->pic, 0, sizeof(x264_picture_t));