From 5f2a8474aee2a0353a07a6a74a0312f5e5f5ef23 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Mar 2015 00:21:23 +0100 Subject: 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. --- video/mp_image.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/mp_image.h') 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 */ -- cgit v1.2.3