Mercurial > libavcodec.hg
comparison msmpeg4.c @ 9007:043574c5c153 libavcodec
Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu.
author | stefano |
---|---|
date | Sun, 22 Feb 2009 13:48:55 +0000 |
parents | 56c41adae7d8 |
children | 25b3650b4db5 |
comparison
equal
deleted
inserted
replaced
9006:37ac731fe32c | 9007:043574c5c153 |
---|---|
83 static uint8_t rl_length[NB_RL_TABLES][MAX_LEVEL+1][MAX_RUN+1][2]; | 83 static uint8_t rl_length[NB_RL_TABLES][MAX_LEVEL+1][MAX_RUN+1][2]; |
84 #endif //CONFIG_ENCODERS | 84 #endif //CONFIG_ENCODERS |
85 | 85 |
86 static uint8_t static_rl_table_store[NB_RL_TABLES][2][2*MAX_RUN + MAX_LEVEL + 3]; | 86 static uint8_t static_rl_table_store[NB_RL_TABLES][2][2*MAX_RUN + MAX_LEVEL + 3]; |
87 | 87 |
88 static void common_init(MpegEncContext * s) | 88 static av_cold void common_init(MpegEncContext * s) |
89 { | 89 { |
90 static int initialized=0; | 90 static int initialized=0; |
91 | 91 |
92 switch(s->msmpeg4_version){ | 92 switch(s->msmpeg4_version){ |
93 case 1: | 93 case 1: |
161 put_bits(pb, 1, 1); | 161 put_bits(pb, 1, 1); |
162 put_bits(pb, 1, (n >= 2)); | 162 put_bits(pb, 1, (n >= 2)); |
163 } | 163 } |
164 } | 164 } |
165 | 165 |
166 void ff_msmpeg4_encode_init(MpegEncContext *s) | 166 av_cold void ff_msmpeg4_encode_init(MpegEncContext *s) |
167 { | 167 { |
168 static int init_done=0; | 168 static int init_done=0; |
169 int i; | 169 int i; |
170 | 170 |
171 common_init(s); | 171 common_init(s); |
993 static VLC v1_inter_cbpc_vlc; | 993 static VLC v1_inter_cbpc_vlc; |
994 VLC ff_inter_intra_vlc; | 994 VLC ff_inter_intra_vlc; |
995 | 995 |
996 /* This table is practically identical to the one from h263 | 996 /* This table is practically identical to the one from h263 |
997 * except that it is inverted. */ | 997 * except that it is inverted. */ |
998 static void init_h263_dc_for_msmpeg4(void) | 998 static av_cold void init_h263_dc_for_msmpeg4(void) |
999 { | 999 { |
1000 int level, uni_code, uni_len; | 1000 int level, uni_code, uni_len; |
1001 | 1001 |
1002 for(level=-256; level<256; level++){ | 1002 for(level=-256; level<256; level++){ |
1003 int size, v, l; | 1003 int size, v, l; |
1048 | 1048 |
1049 } | 1049 } |
1050 } | 1050 } |
1051 | 1051 |
1052 /* init all vlc decoding tables */ | 1052 /* init all vlc decoding tables */ |
1053 int ff_msmpeg4_decode_init(MpegEncContext *s) | 1053 av_cold int ff_msmpeg4_decode_init(MpegEncContext *s) |
1054 { | 1054 { |
1055 static int done = 0; | 1055 static int done = 0; |
1056 int i; | 1056 int i; |
1057 MVTable *mv; | 1057 MVTable *mv; |
1058 | 1058 |