diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-04-18 15:54:45 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-05-04 22:48:05 +0200 |
commit | 2b677ffca54a5fbef9c8860841c32f28ecd68f70 (patch) | |
tree | 7fb8d59367a3d45f1811f7eb0d9ddd41effd0d19 | |
parent | 1fda184a85178cfd7b98d9e308d18e1ded76a511 (diff) | |
download | ffmpeg-2b677ffca54a5fbef9c8860841c32f28ecd68f70.tar.gz |
swscale: Add av_cold attributes to init functions missing them
-rw-r--r-- | libswscale/rgb2rgb_template.c | 4 | ||||
-rw-r--r-- | libswscale/utils.c | 17 | ||||
-rw-r--r-- | libswscale/x86/rgb2rgb_template.c | 4 |
3 files changed, 15 insertions, 10 deletions
diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c index 3785ef9f07..3da2b0b2aa 100644 --- a/libswscale/rgb2rgb_template.c +++ b/libswscale/rgb2rgb_template.c @@ -26,6 +26,8 @@ #include <stddef.h> +#include "libavutil/attributes.h" + static inline void rgb24tobgr32_c(const uint8_t *src, uint8_t *dst, int src_size) { @@ -907,7 +909,7 @@ static void uyvytoyuv422_c(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, } } -static inline void rgb2rgb_init_c(void) +static av_cold void rgb2rgb_init_c(void) { rgb15to16 = rgb15to16_c; rgb15tobgr24 = rgb15tobgr24_c; diff --git a/libswscale/utils.c b/libswscale/utils.c index 6bbdb64f8d..93cb60fdf1 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -208,11 +208,12 @@ static double getSplineCoeff(double a, double b, double c, double d, dist - 1.0); } -static int initFilter(int16_t **outFilter, int32_t **filterPos, - int *outFilterSize, int xInc, int srcW, int dstW, - int filterAlign, int one, int flags, int cpu_flags, - SwsVector *srcFilter, SwsVector *dstFilter, - double param[2], int is_horizontal) +static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos, + int *outFilterSize, int xInc, int srcW, + int dstW, int filterAlign, int one, + int flags, int cpu_flags, + SwsVector *srcFilter, SwsVector *dstFilter, + double param[2], int is_horizontal) { int i; int filterSize; @@ -600,9 +601,9 @@ fail: } #if HAVE_MMXEXT_INLINE -static int init_hscaler_mmxext(int dstW, int xInc, uint8_t *filterCode, - int16_t *filter, int32_t *filterPos, - int numSplits) +static av_cold int init_hscaler_mmxext(int dstW, int xInc, uint8_t *filterCode, + int16_t *filter, int32_t *filterPos, + int numSplits) { uint8_t *fragmentA; x86_reg imm8OfPShufW1A; diff --git a/libswscale/x86/rgb2rgb_template.c b/libswscale/x86/rgb2rgb_template.c index 205b749244..5aeef8ca2c 100644 --- a/libswscale/x86/rgb2rgb_template.c +++ b/libswscale/x86/rgb2rgb_template.c @@ -26,6 +26,8 @@ #include <stddef.h> +#include "libavutil/attributes.h" + #undef PREFETCH #undef MOVNTQ #undef EMMS @@ -2465,7 +2467,7 @@ static void RENAME(uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, co #endif /* !COMPILE_TEMPLATE_AMD3DNOW */ #endif /* !COMPILE_TEMPLATE_SSE2 */ -static inline void RENAME(rgb2rgb_init)(void) +static av_cold void RENAME(rgb2rgb_init)(void) { #if !COMPILE_TEMPLATE_SSE2 #if !COMPILE_TEMPLATE_AMD3DNOW |