Mercurial > mplayer.hg
comparison libmpcodecs/vf_pullup.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 | a124f3abc1ec |
comparison
equal
deleted
inserted
replaced
17905:433494f162a9 | 17906:20aca9baf5d8 |
---|---|
116 | 116 |
117 mpi->flags |= MP_IMGFLAG_DIRECT; | 117 mpi->flags |= MP_IMGFLAG_DIRECT; |
118 mpi->flags &= ~MP_IMGFLAG_DRAW_CALLBACK; | 118 mpi->flags &= ~MP_IMGFLAG_DRAW_CALLBACK; |
119 } | 119 } |
120 | 120 |
121 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi) | 121 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts) |
122 { | 122 { |
123 struct pullup_context *c = vf->priv->ctx; | 123 struct pullup_context *c = vf->priv->ctx; |
124 struct pullup_buffer *b; | 124 struct pullup_buffer *b; |
125 struct pullup_frame *f; | 125 struct pullup_frame *f; |
126 mp_image_t *dmpi; | 126 mp_image_t *dmpi; |
261 if (mpi->qscale) { | 261 if (mpi->qscale) { |
262 dmpi->qscale = vf->priv->qbuf; | 262 dmpi->qscale = vf->priv->qbuf; |
263 dmpi->qstride = mpi->qstride; | 263 dmpi->qstride = mpi->qstride; |
264 dmpi->qscale_type = mpi->qscale_type; | 264 dmpi->qscale_type = mpi->qscale_type; |
265 } | 265 } |
266 return vf_next_put_image(vf, dmpi); | 266 return vf_next_put_image(vf, dmpi, MP_NOPTS_VALUE); |
267 } | 267 } |
268 dmpi = vf_get_image(vf->next, mpi->imgfmt, | 268 dmpi = vf_get_image(vf->next, mpi->imgfmt, |
269 MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE, | 269 MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE, |
270 mpi->width, mpi->height); | 270 mpi->width, mpi->height); |
271 | 271 |
280 if (mpi->qscale) { | 280 if (mpi->qscale) { |
281 dmpi->qscale = vf->priv->qbuf; | 281 dmpi->qscale = vf->priv->qbuf; |
282 dmpi->qstride = mpi->qstride; | 282 dmpi->qstride = mpi->qstride; |
283 dmpi->qscale_type = mpi->qscale_type; | 283 dmpi->qscale_type = mpi->qscale_type; |
284 } | 284 } |
285 ret = vf_next_put_image(vf, dmpi); | 285 ret = vf_next_put_image(vf, dmpi, MP_NOPTS_VALUE); |
286 pullup_release_frame(f); | 286 pullup_release_frame(f); |
287 return ret; | 287 return ret; |
288 } | 288 } |
289 | 289 |
290 static int query_format(struct vf_instance_s* vf, unsigned int fmt) | 290 static int query_format(struct vf_instance_s* vf, unsigned int fmt) |