diff options
author | wm4 <wm4@nowhere> | 2014-04-13 18:00:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-13 18:03:01 +0200 |
commit | 78128bddda4bcea1f256fc13cc33fa2652ed277c (patch) | |
tree | 35bf6596cb8e2d7927618845833c3ee36534f890 /video/filter/vf_pp.c | |
parent | 44f382cf98564c0fe08bdc78579c284362cd6f3c (diff) | |
download | mpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.bz2 mpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.xz |
Kill all tabs
I hate tabs.
This replaces all tabs in all source files with spaces. The only
exception is old-makefile. The replacement was made by running the
GNU coreutils "expand" command on every file. Since the replacement was
automatic, it's possible that some formatting was destroyed (but perhaps
only if it was assuming that the end of a tab does not correspond to
aligning the end to multiples of 8 spaces).
Diffstat (limited to 'video/filter/vf_pp.c')
-rw-r--r-- | video/filter/vf_pp.c | 26 |
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; } |