diff options
author | wm4 <wm4@nowhere> | 2012-12-19 12:04:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 20:04:11 +0100 |
commit | 15c7f7a33968edebe305e2845b32eb2383457d46 (patch) | |
tree | d9ac4532c4b2ceb2e7a08f16399dcbfda3eefa7f /video/filter/vf_expand.c | |
parent | aa6ba6372c627bc602647d225bdfb076f93bd291 (diff) | |
download | mpv-15c7f7a33968edebe305e2845b32eb2383457d46.tar.bz2 mpv-15c7f7a33968edebe305e2845b32eb2383457d46.tar.xz |
video: cleanup: move and rename vf_mpi_clear and vf_clone_attributes
These functions weren't specific to video filters and were misplaced
in vf.c. Move them to mp_image.c.
Fix the big endian test in vf_mpi_clear/mp_image_clear, which has been
messed up in 74df1d.
Diffstat (limited to 'video/filter/vf_expand.c')
-rw-r--r-- | video/filter/vf_expand.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/video/filter/vf_expand.c b/video/filter/vf_expand.c index 5f5ffcae7f..5ce5db16bd 100644 --- a/video/filter/vf_expand.c +++ b/video/filter/vf_expand.c @@ -129,15 +129,15 @@ static void clear_borders(struct vf_instance *vf, struct mp_image *dmpi, int w, int h) { // upper border (over the full width) - vf_mpi_clear(dmpi, 0, 0, vf->priv->exp_w, vf->priv->exp_y); + mp_image_clear(dmpi, 0, 0, vf->priv->exp_w, vf->priv->exp_y); // lower border - vf_mpi_clear(dmpi, 0, vf->priv->exp_y + h, vf->priv->exp_w, - vf->priv->exp_h - (vf->priv->exp_y + h)); + mp_image_clear(dmpi, 0, vf->priv->exp_y + h, vf->priv->exp_w, + vf->priv->exp_h - (vf->priv->exp_y + h)); // left - vf_mpi_clear(dmpi, 0, vf->priv->exp_y, vf->priv->exp_x, h); + mp_image_clear(dmpi, 0, vf->priv->exp_y, vf->priv->exp_x, h); // right - vf_mpi_clear(dmpi, vf->priv->exp_x + w, vf->priv->exp_y, - vf->priv->exp_w - (vf->priv->exp_x + w), h); + mp_image_clear(dmpi, vf->priv->exp_x + w, vf->priv->exp_y, + vf->priv->exp_w - (vf->priv->exp_x + w), h); } static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi) |