Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
03bf4572
Commit
03bf4572
authored
Aug 30, 2014
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add av_cold to table generation functions.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
4fe44873
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
9 deletions
+13
-9
aac_tablegen.h
libavcodec/aac_tablegen.h
+1
-1
aacps_tablegen.h
libavcodec/aacps_tablegen.h
+2
-2
cbrt_tablegen.h
libavcodec/cbrt_tablegen.h
+2
-1
dv_tablegen.h
libavcodec/dv_tablegen.h
+2
-1
motionpixels_tablegen.h
libavcodec/motionpixels_tablegen.h
+4
-3
mpegaudio_tablegen.h
libavcodec/mpegaudio_tablegen.h
+2
-1
No files found.
libavcodec/aac_tablegen.h
View file @
03bf4572
...
...
@@ -31,7 +31,7 @@
#include "libavutil/mathematics.h"
float
ff_aac_pow2sf_tab
[
428
];
void
ff_aac_tableinit
(
void
)
av_cold
void
ff_aac_tableinit
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
428
;
i
++
)
...
...
libavcodec/aacps_tablegen.h
View file @
03bf4572
...
...
@@ -70,7 +70,7 @@ static const float g2_Q4[] = {
0
.
16486303567403
f
,
0
.
23279856662996
f
,
0
.
25
f
};
static
void
make_filters_from_proto
(
float
(
*
filter
)[
8
][
2
],
const
float
*
proto
,
int
bands
)
static
av_cold
void
make_filters_from_proto
(
float
(
*
filter
)[
8
][
2
],
const
float
*
proto
,
int
bands
)
{
int
q
,
n
;
for
(
q
=
0
;
q
<
bands
;
q
++
)
{
...
...
@@ -82,7 +82,7 @@ static void make_filters_from_proto(float (*filter)[8][2], const float *proto, i
}
}
static
void
ps_tableinit
(
void
)
static
av_cold
void
ps_tableinit
(
void
)
{
static
const
float
ipdopd_sin
[]
=
{
0
,
M_SQRT1_2
,
1
,
M_SQRT1_2
,
0
,
-
M_SQRT1_2
,
-
1
,
-
M_SQRT1_2
};
static
const
float
ipdopd_cos
[]
=
{
1
,
M_SQRT1_2
,
0
,
-
M_SQRT1_2
,
-
1
,
-
M_SQRT1_2
,
0
,
M_SQRT1_2
};
...
...
libavcodec/cbrt_tablegen.h
View file @
03bf4572
...
...
@@ -25,6 +25,7 @@
#include <stdint.h>
#include <math.h>
#include "libavutil/attributes.h"
#if CONFIG_HARDCODED_TABLES
#define cbrt_tableinit()
...
...
@@ -32,7 +33,7 @@
#else
static
uint32_t
cbrt_tab
[
1
<<
13
];
static
void
cbrt_tableinit
(
void
)
static
av_cold
void
cbrt_tableinit
(
void
)
{
if
(
!
cbrt_tab
[(
1
<<
13
)
-
1
])
{
int
i
;
...
...
libavcodec/dv_tablegen.h
View file @
03bf4572
...
...
@@ -24,6 +24,7 @@
#define AVCODEC_DV_TABLEGEN_H
#include <stdint.h>
#include "libavutil/attributes.h"
#include "dvdata.h"
...
...
@@ -47,7 +48,7 @@ typedef struct dv_vlc_pair {
#else
static
struct
dv_vlc_pair
dv_vlc_map
[
DV_VLC_MAP_RUN_SIZE
][
DV_VLC_MAP_LEV_SIZE
];
static
void
dv_vlc_map_tableinit
(
void
)
static
av_cold
void
dv_vlc_map_tableinit
(
void
)
{
int
i
,
j
;
for
(
i
=
0
;
i
<
NB_DV_VLC
-
1
;
i
++
)
{
...
...
libavcodec/motionpixels_tablegen.h
View file @
03bf4572
...
...
@@ -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
);
...
...
libavcodec/mpegaudio_tablegen.h
View file @
03bf4572
...
...
@@ -25,6 +25,7 @@
#include <stdint.h>
#include <math.h>
#include "libavutil/attributes.h"
#define TABLE_4_3_SIZE (8191 + 16)*4
#if CONFIG_HARDCODED_TABLES
...
...
@@ -41,7 +42,7 @@ static float expval_table_float[512][16];
#define FRAC_BITS 23
#define IMDCT_SCALAR 1.759
static
void
mpegaudio_tableinit
(
void
)
static
av_cold
void
mpegaudio_tableinit
(
void
)
{
int
i
,
value
,
exponent
;
for
(
i
=
1
;
i
<
TABLE_4_3_SIZE
;
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