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

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
2626
2727 /* Inverse ICT parameters in float and integer.
2828 * int value = (float value) * (1<<16) */
29−static const float f_ict_params[4] = {
29+const float ff_jpeg2000_f_ict_params[4] = {
3030 1.402f,
3131 0.34413f,
3232 0.71414f,
@@ -42,6 +42,7 @@ static const int i_ict_params[4] = { · 9 unmodified lines
4242
4343 static void ict_float(void *_src0, void *_src1, void *_src2, int csize)
4444 {
45+ const float *const f_ict_params = ff_jpeg2000_f_ict_params;
4546 float *src0 = _src0, *src1 = _src1, *src2 = _src2;
4647 float i0f, i1f, i2f;
4748 int i;
libavcodec/jpeg2000dsp.h+2−0
@@ -30,6 +30,8 @@ typedef struct Jpeg2000DSPContext { · 29 unmodified lines
3030 void (*mct_decode[FF_DWT_NB])(void *src0, void *src1, void *src2, int csize);
3131 } Jpeg2000DSPContext;
3232
33+extern const float ff_jpeg2000_f_ict_params[4];
34+
3335 void ff_jpeg2000dsp_init(Jpeg2000DSPContext *c);
3436 void ff_jpeg2000dsp_init_x86(Jpeg2000DSPContext *c);
3537

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