diff options
Diffstat (limited to 'libmpcodecs/vf_pullup.c')
-rw-r--r-- | libmpcodecs/vf_pullup.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libmpcodecs/vf_pullup.c b/libmpcodecs/vf_pullup.c index faf195b613..efd5a56d80 100644 --- a/libmpcodecs/vf_pullup.c +++ b/libmpcodecs/vf_pullup.c @@ -51,7 +51,7 @@ static void init_pullup(struct vf_instance* vf, mp_image_t *mpi) if (gCpuCaps.has3DNowExt) c->cpu |= PULLUP_CPU_3DNOWEXT; if (gCpuCaps.hasSSE) c->cpu |= PULLUP_CPU_SSE; if (gCpuCaps.hasSSE2) c->cpu |= PULLUP_CPU_SSE2; - + pullup_init_context(c); vf->priv->init = 1; @@ -64,7 +64,7 @@ static void get_image(struct vf_instance* vf, mp_image_t *mpi) { struct pullup_context *c = vf->priv->ctx; struct pullup_buffer *b; - + if (mpi->type == MP_IMGTYPE_STATIC) return; if (!vf->priv->init) init_pullup(vf, mpi); @@ -73,7 +73,7 @@ static void get_image(struct vf_instance* vf, mp_image_t *mpi) if (!b) return; /* shouldn't happen... */ mpi->priv = b; - + mpi->planes[0] = b->planes[0]; mpi->planes[1] = b->planes[1]; mpi->planes[2] = b->planes[2]; @@ -95,9 +95,9 @@ static int put_image(struct vf_instance* vf, mp_image_t *mpi, double pts) int ret; int p; int i; - + if (!vf->priv->init) init_pullup(vf, mpi); - + if (mpi->flags & MP_IMGFLAG_DIRECT) { b = mpi->priv; mpi->priv = 0; @@ -221,11 +221,11 @@ static int put_image(struct vf_instance* vf, mp_image_t *mpi, double pts) dmpi->planes[0] = f->buffer->planes[0]; dmpi->planes[1] = f->buffer->planes[1]; dmpi->planes[2] = f->buffer->planes[2]; - + dmpi->stride[0] = c->stride[0]; dmpi->stride[1] = c->stride[1]; dmpi->stride[2] = c->stride[2]; - + if (mpi->qscale) { dmpi->qscale = vf->priv->qbuf; dmpi->qstride = mpi->qstride; @@ -294,5 +294,3 @@ const vf_info_t vf_info_pullup = { open, NULL }; - - |