Mercurial > mplayer.hg
comparison libmpcodecs/vf_expand.c @ 15941:0e449f0367a4
cosmetics.
author | ods15 |
---|---|
date | Fri, 08 Jul 2005 06:39:47 +0000 |
parents | 4119b6ef4e87 |
children | 098d3c815fe2 |
comparison
equal
deleted
inserted
replaced
15940:f3284e71b34c | 15941:0e449f0367a4 |
---|---|
187 vf->priv->exp_h = vf->priv->exp_w * vf->priv->aspect; | 187 vf->priv->exp_h = vf->priv->exp_w * vf->priv->aspect; |
188 } else { | 188 } else { |
189 vf->priv->exp_w = vf->priv->exp_h / vf->priv->aspect; | 189 vf->priv->exp_w = vf->priv->exp_h / vf->priv->aspect; |
190 } | 190 } |
191 } | 191 } |
192 if (vf->priv->round > 1) { | 192 if (vf->priv->round > 1) { // round up. |
193 vf->priv->exp_w = (1 + (vf->priv->exp_w - 1) / vf->priv->round) * vf->priv->round; | 193 vf->priv->exp_w = (1 + (vf->priv->exp_w - 1) / vf->priv->round) * vf->priv->round; |
194 vf->priv->exp_h = (1 + (vf->priv->exp_h - 1) / vf->priv->round) * vf->priv->round; | 194 vf->priv->exp_h = (1 + (vf->priv->exp_h - 1) / vf->priv->round) * vf->priv->round; |
195 } | 195 } |
196 | 196 |
197 if(vf->priv->exp_x<0 || vf->priv->exp_x+width>vf->priv->exp_w) vf->priv->exp_x=(vf->priv->exp_w-width)/2; | 197 if(vf->priv->exp_x<0 || vf->priv->exp_x+width>vf->priv->exp_w) vf->priv->exp_x=(vf->priv->exp_w-width)/2; |
198 if(vf->priv->exp_y<0 || vf->priv->exp_y+height>vf->priv->exp_h) vf->priv->exp_y=(vf->priv->exp_h-height)/2; | 198 if(vf->priv->exp_y<0 || vf->priv->exp_y+height>vf->priv->exp_h) vf->priv->exp_y=(vf->priv->exp_h-height)/2; |