This is so that they can be loaded from assembler, rather than duplicated.
Showing the changes to libavcodec (2 of 2 files). Show all
Unified · Split
| @@ -26,7 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | /* Inverse ICT parameters in float and integer. |
| 28 | 28 | * int value = (float value) * (1<<16) */ |
| 29 | −static const float f_ict_params[4] = { | |
| 29 | +const float ff_jpeg2000_f_ict_params[4] = { | |
| 30 | 30 | 1.402f, |
| 31 | 31 | 0.34413f, |
| 32 | 32 | 0.71414f, |
| @@ -42,6 +42,7 @@ static const int i_ict_params[4] = { · 9 unmodified lines | ||
| 42 | 42 | |
| 43 | 43 | static 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 | 46 | float *src0 = _src0, *src1 = _src1, *src2 = _src2; |
| 46 | 47 | float i0f, i1f, i2f; |
| 47 | 48 | int i; |
| @@ -30,6 +30,8 @@ typedef struct Jpeg2000DSPContext { · 29 unmodified lines | ||
| 30 | 30 | void (*mct_decode[FF_DWT_NB])(void *src0, void *src1, void *src2, int csize); |
| 31 | 31 | } Jpeg2000DSPContext; |
| 32 | 32 | |
| 33 | +extern const float ff_jpeg2000_f_ict_params[4]; | |
| 34 | + | |
| 33 | 35 | void ff_jpeg2000dsp_init(Jpeg2000DSPContext *c); |
| 34 | 36 | void ff_jpeg2000dsp_init_x86(Jpeg2000DSPContext *c); |
| 35 | 37 | |