mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavc/jpeg2000dsp: make coefficients extern
This is so that they can be loaded from assembler, rather than duplicated.
This commit is contained in:
parent
a5259f326b
commit
b2a441a3be
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user