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/image_writer.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/image_writer.c')
-rw-r--r-- | video/image_writer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/image_writer.c b/video/image_writer.c index 570db961ca..b730f40bf6 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -39,9 +39,7 @@ #include "video/img_format.h" #include "video/mp_image.h" #include "video/fmt-conversion.h" - #include "video/sws_utils.h" -#include "video/filter/vf.h" #include "core/m_option.h" @@ -288,7 +286,7 @@ int write_image(struct mp_image *image, const struct image_writer_opts *opts, // - color levels broken in various ways thanks to libswscale if (image->imgfmt != destfmt || is_anamorphic) { struct mp_image *dst = alloc_mpi(d_w, d_h, destfmt); - vf_clone_mpi_attributes(dst, image); + mp_image_copy_attributes(dst, image); int flags = SWS_LANCZOS | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP | SWS_ACCURATE_RND | SWS_BITEXACT; |