mirror of https://github.com/mpv-player/mpv
vf_crop, vf_expand: remove ancient and useless messages
These are redundant.
This commit is contained in:
parent
e207c24b32
commit
00c18b32bf
|
@ -58,7 +58,7 @@ static int config(struct vf_instance *vf,
|
|||
// check:
|
||||
if(vf->priv->crop_w+vf->priv->crop_x>width ||
|
||||
vf->priv->crop_h+vf->priv->crop_y>height){
|
||||
MP_WARN(vf, "[CROP] Bad position/width/height - cropped area outside of the original!\n");
|
||||
MP_WARN(vf, "Bad position/width/height - cropped area outside of the original!\n");
|
||||
return 0;
|
||||
}
|
||||
vf_rescale_dsize(&d_width, &d_height, width, height,
|
||||
|
@ -85,11 +85,6 @@ static int vf_open(vf_instance_t *vf){
|
|||
vf->config=config;
|
||||
vf->filter=filter;
|
||||
vf->query_format=query_format;
|
||||
MP_INFO(vf, "Crop: %d x %d, %d ; %d\n",
|
||||
vf->priv->crop_w,
|
||||
vf->priv->crop_h,
|
||||
vf->priv->crop_x,
|
||||
vf->priv->crop_y);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,18 +63,12 @@ static int config(struct vf_instance *vf,
|
|||
vf->priv->exp_y = vf->priv->cfg_exp_y;
|
||||
vf->priv->exp_w = vf->priv->cfg_exp_w;
|
||||
vf->priv->exp_h = vf->priv->cfg_exp_h;
|
||||
// calculate the missing parameters:
|
||||
#if 0
|
||||
if(vf->priv->exp_w<width) vf->priv->exp_w=width;
|
||||
if(vf->priv->exp_h<height) vf->priv->exp_h=height;
|
||||
#else
|
||||
if ( vf->priv->exp_w == -1 ) vf->priv->exp_w=width;
|
||||
else if (vf->priv->exp_w < -1 ) vf->priv->exp_w=width - vf->priv->exp_w;
|
||||
else if ( vf->priv->exp_w<width ) vf->priv->exp_w=width;
|
||||
if ( vf->priv->exp_h == -1 ) vf->priv->exp_h=height;
|
||||
else if ( vf->priv->exp_h < -1 ) vf->priv->exp_h=height - vf->priv->exp_h;
|
||||
else if( vf->priv->exp_h<height ) vf->priv->exp_h=height;
|
||||
#endif
|
||||
if (vf->priv->aspect) {
|
||||
float adjusted_aspect = vf->priv->aspect;
|
||||
adjusted_aspect *= ((double)width/height) / ((double)d_width/d_height);
|
||||
|
@ -149,13 +143,6 @@ static int vf_open(vf_instance_t *vf){
|
|||
vf->config=config;
|
||||
vf->query_format=query_format;
|
||||
vf->filter=filter;
|
||||
MP_INFO(vf, "Expand: %d x %d, %d ; %d, aspect: %f, round: %d\n",
|
||||
vf->priv->cfg_exp_w,
|
||||
vf->priv->cfg_exp_h,
|
||||
vf->priv->cfg_exp_x,
|
||||
vf->priv->cfg_exp_y,
|
||||
vf->priv->aspect,
|
||||
vf->priv->round);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue