Mercurial > mplayer.hg
comparison libmpcodecs/vf_cropdetect.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | 00fff9a3b735 |
children | 55bf07ab4c89 |
comparison
equal
deleted
inserted
replaced
29262:7d545a6b8aff | 29263:0f1b5b68af32 |
---|---|
71 dmpi->stride[2]=mpi->stride[2]; | 71 dmpi->stride[2]=mpi->stride[2]; |
72 dmpi->width=mpi->width; | 72 dmpi->width=mpi->width; |
73 dmpi->height=mpi->height; | 73 dmpi->height=mpi->height; |
74 | 74 |
75 if(++vf->priv->fno>2){ // ignore first 2 frames - they may be empty | 75 if(++vf->priv->fno>2){ // ignore first 2 frames - they may be empty |
76 | 76 |
77 for(y=0;y<vf->priv->y1;y++){ | 77 for(y=0;y<vf->priv->y1;y++){ |
78 if(checkline(mpi->planes[0]+mpi->stride[0]*y,bpp,mpi->w,bpp)>vf->priv->limit){ | 78 if(checkline(mpi->planes[0]+mpi->stride[0]*y,bpp,mpi->w,bpp)>vf->priv->limit){ |
79 vf->priv->y1=y; | 79 vf->priv->y1=y; |
80 break; | 80 break; |
81 } | 81 } |
104 | 104 |
105 // round x and y (up), important for yuv colorspaces | 105 // round x and y (up), important for yuv colorspaces |
106 // make sure they stay rounded! | 106 // make sure they stay rounded! |
107 x=(vf->priv->x1+1)&(~1); | 107 x=(vf->priv->x1+1)&(~1); |
108 y=(vf->priv->y1+1)&(~1); | 108 y=(vf->priv->y1+1)&(~1); |
109 | 109 |
110 w = vf->priv->x2 - x + 1; | 110 w = vf->priv->x2 - x + 1; |
111 h = vf->priv->y2 - y + 1; | 111 h = vf->priv->y2 - y + 1; |
112 | 112 |
113 // w and h must be divisible by 2 as well because of yuv | 113 // w and h must be divisible by 2 as well because of yuv |
114 // colorspace problems. | 114 // colorspace problems. |