diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
commit | 6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch) | |
tree | 0ed465592509105fdbeab27fc12ddbb2e3590aa5 /libmpcodecs/vf_pp.c | |
parent | eafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff) | |
download | mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.bz2 mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.xz |
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_pp.c')
-rw-r--r-- | libmpcodecs/vf_pp.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libmpcodecs/vf_pp.c b/libmpcodecs/vf_pp.c index 3566853770..2aae8ac45d 100644 --- a/libmpcodecs/vf_pp.c +++ b/libmpcodecs/vf_pp.c @@ -48,7 +48,7 @@ static int config(struct vf_instance_s* vf, case IMGFMT_411P: flags|= PP_FORMAT_411; break; default: flags|= PP_FORMAT_420; break; } - + if(vf->priv->context) pp_free_context(vf->priv->context); vf->priv->context= pp_get_context(width, height, flags); @@ -90,7 +90,7 @@ static int control(struct vf_instance_s* vf, int request, void* data){ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ if(vf->priv->pp&0xFFFF) return; // non-local filters enabled - if((mpi->type==MP_IMGTYPE_IPB || vf->priv->pp) && + if((mpi->type==MP_IMGTYPE_IPB || vf->priv->pp) && mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change if(!(mpi->flags&MP_IMGFLAG_ACCEPT_STRIDE) && mpi->imgfmt!=vf->priv->outfmt) return; // colorspace differ @@ -120,7 +120,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ (mpi->width+7)&(~7),(mpi->height+7)&(~7)); vf->dmpi->w=mpi->w; vf->dmpi->h=mpi->h; // display w;h } - + if(vf->priv->pp || !(mpi->flags&MP_IMGFLAG_DIRECT)){ // do the postprocessing! (or copy if no DR) pp_postprocess(mpi->planes ,mpi->stride, @@ -155,7 +155,7 @@ static int open(vf_instance_t *vf, char* args){ char *endptr, *name; int i; int hex_mode=0; - + vf->query_format=query_format; vf->control=control; vf->config=config; @@ -169,7 +169,7 @@ static int open(vf_instance_t *vf, char* args){ // check csp: vf->priv->outfmt=vf_match_csp(&vf->next,fmt_list,IMGFMT_YV12); if(!vf->priv->outfmt) return 0; // no csp match :( - + if(args){ hex_mode= strtol(args, &endptr, 0); if(*endptr){ @@ -192,9 +192,9 @@ static int open(vf_instance_t *vf, char* args){ /* hex mode for compatibility */ for(i=0; i<=PP_QUALITY_MAX; i++){ PPMode *ppMode; - + ppMode= (PPMode*)memalign(8, sizeof(PPMode)); - + ppMode->lumMode= hex_mode; ppMode->chromMode= ((hex_mode&0xFF)>>4) | (hex_mode&0xFFFFFF00); ppMode->maxTmpNoise[0]= 700; @@ -204,12 +204,12 @@ static int open(vf_instance_t *vf, char* args){ ppMode->minAllowedY= 16; ppMode->baseDcDiff= 256/4; ppMode->flatnessThreshold=40; - + vf->priv->ppMode[i]= ppMode; } } #endif - + vf->priv->pp=PP_QUALITY_MAX; return 1; } |