* JPEG 2000 image encoder and decoder common functions
*/
+#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/mem.h"
#include "avcodec.h"
return ctxlbltab[hcontrib][vcontrib];
}
-void ff_jpeg2000_init_tier1_luts(void)
+void av_cold ff_jpeg2000_init_tier1_luts(void)
{
int i, j;
for (i = 0; i < 256; i++)
#include <inttypes.h>
+#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avcodec.h"
return ret;
}
-static void jpeg2000_init_static_data(AVCodec *codec)
+static av_cold void jpeg2000_init_static_data(AVCodec *codec)
{
ff_jpeg2000_init_tier1_luts();
ff_mqc_init_context_tables();
#include <string.h>
#include <stdint.h>
+#include "libavutil/attributes.h"
+
#include "mqc.h"
/* MQ coder context state structure */
uint8_t ff_mqc_nlps[2 * 47];
uint8_t ff_mqc_nmps[2 * 47];
-void ff_mqc_init_context_tables(void)
+void av_cold ff_mqc_init_context_tables(void)
{
int i;
for (i = 0; i < 47; i++) {