summaryrefslogtreecommitdiff
path: root/libavcodec/motionpixels_tablegen.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-08-30 17:35:18 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-08-31 10:33:02 +0200
commit03bf4572419739a6a308c2a667a62f4797fadf49 (patch)
tree17729e29c121b82f8133dc82365c4bb8f8609274 /libavcodec/motionpixels_tablegen.h
parent4fe448738e8d4d87295e1fc7b68bb04f7453c3b9 (diff)
downloadffmpeg-03bf4572419739a6a308c2a667a62f4797fadf49.tar.gz
Add av_cold to table generation functions.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/motionpixels_tablegen.h')
-rw-r--r--libavcodec/motionpixels_tablegen.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/motionpixels_tablegen.h b/libavcodec/motionpixels_tablegen.h
index 8fb840f0fa..4ffe74cbe5 100644
--- a/libavcodec/motionpixels_tablegen.h
+++ b/libavcodec/motionpixels_tablegen.h
@@ -24,6 +24,7 @@
#define AVCODEC_MOTIONPIXELS_TABLEGEN_H
#include <stdint.h>
+#include "libavutil/attributes.h"
typedef struct YuvPixel {
int8_t y, v, u;
@@ -49,7 +50,7 @@ static int mp_yuv_to_rgb(int y, int v, int u, int clip_rgb) {
#else
static YuvPixel mp_rgb_yuv_table[1 << 15];
-static void mp_set_zero_yuv(YuvPixel *p)
+static av_cold void mp_set_zero_yuv(YuvPixel *p)
{
int i, j;
@@ -63,7 +64,7 @@ static void mp_set_zero_yuv(YuvPixel *p)
}
}
-static void mp_build_rgb_yuv_table(YuvPixel *p)
+static av_cold void mp_build_rgb_yuv_table(YuvPixel *p)
{
int y, v, u, i;
@@ -81,7 +82,7 @@ static void mp_build_rgb_yuv_table(YuvPixel *p)
mp_set_zero_yuv(p + i * 32);
}
-static void motionpixels_tableinit(void)
+static av_cold void motionpixels_tableinit(void)
{
if (!mp_rgb_yuv_table[0].u)
mp_build_rgb_yuv_table(mp_rgb_yuv_table);