summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_pp.c')
-rw-r--r--video/filter/vf_pp.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/video/filter/vf_pp.c b/video/filter/vf_pp.c
index bf1a513474..6a347bb9d9 100644
--- a/video/filter/vf_pp.c
+++ b/video/filter/vf_pp.c
@@ -44,10 +44,10 @@ struct vf_priv_s {
static int config(struct vf_instance *vf,
int width, int height, int d_width, int d_height,
- unsigned int voflags, unsigned int outfmt){
+ unsigned int voflags, unsigned int outfmt){
int flags=
(gCpuCaps.hasMMX ? PP_CPU_CAPS_MMX : 0)
- | (gCpuCaps.hasMMX2 ? PP_CPU_CAPS_MMX2 : 0);
+ | (gCpuCaps.hasMMX2 ? PP_CPU_CAPS_MMX2 : 0);
switch(outfmt){
case IMGFMT_444P: flags|= PP_FORMAT_444; break;
@@ -66,7 +66,7 @@ static void uninit(struct vf_instance *vf){
int i;
for(i=0; i<=PP_QUALITY_MAX; i++){
if(vf->priv->ppMode[i])
- pp_free_mode(vf->priv->ppMode[i]);
+ pp_free_mode(vf->priv->ppMode[i]);
}
if(vf->priv->context) pp_free_context(vf->priv->context);
}
@@ -77,7 +77,7 @@ static int query_format(struct vf_instance *vf, unsigned int fmt){
case IMGFMT_422P:
case IMGFMT_420P:
case IMGFMT_411P: ;
- return vf_next_query_format(vf,fmt);
+ return vf_next_query_format(vf,fmt);
}
return 0;
}
@@ -99,16 +99,16 @@ static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi)
// apparently this is required
assert(mpi->stride[0] >= ((mpi->w+7)&(~7)));
- // do the postprocessing! (or copy if no DR)
- pp_postprocess((const uint8_t **)mpi->planes, mpi->stride,
- dmpi->planes,dmpi->stride,
- (mpi->w+7)&(~7),mpi->h,
- mpi->qscale, mpi->qstride,
- vf->priv->ppMode[ vf->priv->pp ], vf->priv->context,
+ // do the postprocessing! (or copy if no DR)
+ pp_postprocess((const uint8_t **)mpi->planes, mpi->stride,
+ dmpi->planes,dmpi->stride,
+ (mpi->w+7)&(~7),mpi->h,
+ mpi->qscale, mpi->qstride,
+ vf->priv->ppMode[ vf->priv->pp ], vf->priv->context,
#ifdef PP_PICT_TYPE_QP2
- mpi->pict_type | (mpi->qscale_type ? PP_PICT_TYPE_QP2 : 0));
+ mpi->pict_type | (mpi->qscale_type ? PP_PICT_TYPE_QP2 : 0));
#else
- mpi->pict_type);
+ mpi->pict_type);
#endif
if (dmpi != mpi)
@@ -124,7 +124,7 @@ static int vf_open(vf_instance_t *vf){
vf->filter=filter;
vf->uninit=uninit;
- for(i=0; i<=PP_QUALITY_MAX; i++){
+ for(i=0; i<=PP_QUALITY_MAX; i++){
vf->priv->ppMode[i]= pp_get_mode_by_name_and_quality(vf->priv->arg, i);
if(vf->priv->ppMode[i]==NULL) return -1;
}