Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fe4d5fe9
Commit
fe4d5fe9
authored
Jun 13, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpeg2000: Mark static data init functions as av_cold
parent
71d6551e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
jpeg2000.c
libavcodec/jpeg2000.c
+2
-1
jpeg2000dec.c
libavcodec/jpeg2000dec.c
+2
-1
mqc.c
libavcodec/mqc.c
+3
-1
No files found.
libavcodec/jpeg2000.c
View file @
fe4d5fe9
...
...
@@ -25,6 +25,7 @@
* JPEG 2000 image encoder and decoder common functions
*/
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/mem.h"
#include "avcodec.h"
...
...
@@ -157,7 +158,7 @@ static int getsgnctxno(int flag, uint8_t *xorbit)
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
++
)
...
...
libavcodec/jpeg2000dec.c
View file @
fe4d5fe9
...
...
@@ -27,6 +27,7 @@
#include <inttypes.h>
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avcodec.h"
...
...
@@ -1470,7 +1471,7 @@ end:
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
();
...
...
libavcodec/mqc.c
View file @
fe4d5fe9
...
...
@@ -28,6 +28,8 @@
#include <string.h>
#include <stdint.h>
#include "libavutil/attributes.h"
#include "mqc.h"
/* MQ coder context state structure */
...
...
@@ -92,7 +94,7 @@ uint16_t ff_mqc_qe [2 * 47];
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
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment