Commit b2a441a3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lavc/jpeg2000dsp: make coefficients extern

This is so that they can be loaded from assembler, rather than
duplicated.
parent a5259f32
......@@ -26,7 +26,7 @@
/* Inverse ICT parameters in float and integer.
* int value = (float value) * (1<<16) */
static const float f_ict_params[4] = {
const float ff_jpeg2000_f_ict_params[4] = {
1.402f,
0.34413f,
0.71414f,
......@@ -42,6 +42,7 @@ static const int i_ict_params[4] = {
static void ict_float(void *_src0, void *_src1, void *_src2, int csize)
{
const float *const f_ict_params = ff_jpeg2000_f_ict_params;
float *src0 = _src0, *src1 = _src1, *src2 = _src2;
float i0f, i1f, i2f;
int i;
......
......@@ -30,6 +30,8 @@ typedef struct Jpeg2000DSPContext {
void (*mct_decode[FF_DWT_NB])(void *src0, void *src1, void *src2, int csize);
} Jpeg2000DSPContext;
extern const float ff_jpeg2000_f_ict_params[4];
void ff_jpeg2000dsp_init(Jpeg2000DSPContext *c);
void ff_jpeg2000dsp_init_x86(Jpeg2000DSPContext *c);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment