diff options
author | wm4 <wm4@nowhere> | 2015-03-20 00:21:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-20 00:21:23 +0100 |
commit | 5f2a8474aee2a0353a07a6a74a0312f5e5f5ef23 (patch) | |
tree | efbca333ddc28a1006b1507667e7b58008bd9eab /video/mp_image.h | |
parent | 145922a0700b50ffb38f20957c28020562f8d428 (diff) | |
download | mpv-5f2a8474aee2a0353a07a6a74a0312f5e5f5ef23.tar.bz2 mpv-5f2a8474aee2a0353a07a6a74a0312f5e5f5ef23.tar.xz |
video: uninline memcpy_pic functions
There's literally no reason why these functions have to be inline (they
might be performance critical, but then the function call overhead isn't
going to matter at all).
Uninline them and move them to mp_image.c. Drop the header file and fix
all uses of it.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r-- | video/mp_image.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h index 7346fb73c3..70931ffb55 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -158,4 +158,9 @@ void mp_image_copy_fields_to_av_frame(struct AVFrame *dst, struct mp_image *mp_image_from_av_frame(struct AVFrame *av_frame); struct AVFrame *mp_image_to_av_frame_and_unref(struct mp_image *img); +void memcpy_pic(void *dst, const void *src, int bytesPerLine, int height, + int dstStride, int srcStride); +void memset_pic(void *dst, int fill, int bytesPerLine, int height, int stride); +void memset16_pic(void *dst, int fill, int unitsPerLine, int height, int stride); + #endif /* MPLAYER_MP_IMAGE_H */ |