History

lavc/jpeg2000dsp: make coefficients extern

This is so that they can be loaded from assembler, rather than duplicated.

Rémi Denis-Courmont committed 3 years ago

Commit b2a441a1 parent a5259f32 files · +4 −1Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/jpeg2000dsp.c +2 −1
  2. libavcodec/jpeg2000dsp.h +2 −0
libavcodec/jpeg2000dsp.c+2−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
26 26
27/* Inverse ICT parameters in float and integer.27/* Inverse ICT parameters in float and integer.
28 * int value = (float value) * (1<<16) */28 * int value = (float value) * (1<<16) */
29static const float f_ict_params[4] = {29const float ff_jpeg2000_f_ict_params[4] = {
30 1.402f,30 1.402f,
31 0.34413f,31 0.34413f,
32 0.71414f,32 0.71414f,
@@ -42,6 +42,7 @@ static const int i_ict_params[4] = { · 9 unmodified lines
42 42
43static void ict_float(void *_src0, void *_src1, void *_src2, int csize)43static void ict_float(void *_src0, void *_src1, void *_src2, int csize)
44{44{
45 const float *const f_ict_params = ff_jpeg2000_f_ict_params;
45 float *src0 = _src0, *src1 = _src1, *src2 = _src2;46 float *src0 = _src0, *src1 = _src1, *src2 = _src2;
46 float i0f, i1f, i2f;47 float i0f, i1f, i2f;
47 int i;48 int i;
libavcodec/jpeg2000dsp.h+2−0
@@ -30,6 +30,8 @@ typedef struct Jpeg2000DSPContext { · 29 unmodified lines
30 void (*mct_decode[FF_DWT_NB])(void *src0, void *src1, void *src2, int csize);30 void (*mct_decode[FF_DWT_NB])(void *src0, void *src1, void *src2, int csize);
31} Jpeg2000DSPContext;31} Jpeg2000DSPContext;
32 32
33extern const float ff_jpeg2000_f_ict_params[4];
34
33void ff_jpeg2000dsp_init(Jpeg2000DSPContext *c);35void ff_jpeg2000dsp_init(Jpeg2000DSPContext *c);
34void ff_jpeg2000dsp_init_x86(Jpeg2000DSPContext *c);36void ff_jpeg2000dsp_init_x86(Jpeg2000DSPContext *c);
35 37

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t