Skip to content

Commit 68c192b

Browse files
committed
Fix some symbol clashes apparently affecting the docker build
1 parent c2bcdd3 commit 68c192b

File tree

9 files changed

+37
-37
lines changed

9 files changed

+37
-37
lines changed

UI/GameInfoCache.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ void GameInfo::SetupTexture(Draw::DrawContext *thin3d, GameInfoTex &tex) {
357357
tex.texture = CreateTextureFromFileData(thin3d, (const uint8_t *)tex.data.data(), tex.data.size(), ImageFileType::DETECT, false, GetTitle().c_str());
358358
tex.timeLoaded = time_now_d();
359359
if (!tex.texture) {
360-
ERROR_LOG(G3D, "Failed creating texture (%s) from %d-byte file", GetTitle().c_str(), tex.data.size());
360+
ERROR_LOG(G3D, "Failed creating texture (%s) from %d-byte file", GetTitle().c_str(), (int)tex.data.size());
361361
}
362362
}
363363

ext/at3_standalone/atrac.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "atrac.h"
3434

35-
float ff_atrac_sf_table[64];
35+
float av_atrac_sf_table[64];
3636
static float qmf_window[48];
3737

3838
static const float qmf_48tap_half[24] = {
@@ -50,9 +50,9 @@ void ff_atrac_generate_tables(void)
5050
float s;
5151

5252
/* Generate scale factors */
53-
if (!ff_atrac_sf_table[63])
53+
if (!av_atrac_sf_table[63])
5454
for (i=0 ; i<64 ; i++)
55-
ff_atrac_sf_table[i] = pow(2.0, (i - 15) / 3.0);
55+
av_atrac_sf_table[i] = pow(2.0, (i - 15) / 3.0);
5656

5757
/* Generate the QMF window. */
5858
if (!qmf_window[47])

ext/at3_standalone/atrac.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ typedef struct AtracGCContext {
5151
int loc_size; ///< size of location code in samples
5252
} AtracGCContext;
5353

54-
extern float ff_atrac_sf_table[64];
54+
extern float av_atrac_sf_table[64];
5555

5656
/**
5757
* Generate common tables.

ext/at3_standalone/atrac3.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static int decode_spectrum(GetBitContext *gb, float *output)
297297
mantissas, subband_size);
298298

299299
/* decode the scale factor for this subband */
300-
scale_factor = ff_atrac_sf_table[sf_index[i]] *
300+
scale_factor = av_atrac_sf_table[sf_index[i]] *
301301
inv_max_quant[subband_vlc_index[i]];
302302

303303
/* inverse quantize the coefficients */
@@ -379,7 +379,7 @@ static int decode_tonal_components(GetBitContext *gb,
379379
coded_values = coded_values_per_component + 1;
380380
coded_values = FFMIN(max_coded_values, coded_values);
381381

382-
scale_factor = ff_atrac_sf_table[sf_index] *
382+
scale_factor = av_atrac_sf_table[sf_index] *
383383
inv_max_quant[quant_step_index];
384384

385385
read_quant_spectral_coeffs(gb, quant_step_index, coding_mode,

ext/at3_standalone/atrac3plusdsp.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -476,15 +476,15 @@ void ff_atrac3p_imdct(FFTContext *mdct_ctx, float *pIn,
476476
* Both regions are 32 samples long. */
477477
if (wind_id & 2) { /* 1st half: steep window */
478478
memset(pOut, 0, sizeof(float) * 32);
479-
vector_fmul(&pOut[32], &pOut[32], ff_sine_64, 64);
479+
vector_fmul(&pOut[32], &pOut[32], av_sine_64, 64);
480480
} else /* 1st half: simple sine window */
481-
vector_fmul(pOut, pOut, ff_sine_128, ATRAC3P_MDCT_SIZE / 2);
481+
vector_fmul(pOut, pOut, av_sine_128, ATRAC3P_MDCT_SIZE / 2);
482482

483483
if (wind_id & 1) { /* 2nd half: steep window */
484-
vector_fmul_reverse(&pOut[160], &pOut[160], ff_sine_64, 64);
484+
vector_fmul_reverse(&pOut[160], &pOut[160], av_sine_64, 64);
485485
memset(&pOut[224], 0, sizeof(float) * 32);
486486
} else /* 2nd half: simple sine window */
487-
vector_fmul_reverse(&pOut[128], &pOut[128], ff_sine_128, ATRAC3P_MDCT_SIZE / 2);
487+
vector_fmul_reverse(&pOut[128], &pOut[128], av_sine_128, ATRAC3P_MDCT_SIZE / 2);
488488
}
489489

490490
/* lookup table for fast modulo 23 op required for cyclic buffers of the IPQF */

ext/at3_standalone/fft.cpp

+18-18
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ COSTABLE(16384);
5454
COSTABLE(32768);
5555
COSTABLE(65536);
5656

57-
static FFTSample * const ff_cos_tabs[] = {
57+
static FFTSample * const av_cos_tabs[] = {
5858
NULL, NULL, NULL, NULL,
59-
ff_cos_16,
60-
ff_cos_32,
61-
ff_cos_64,
62-
ff_cos_128,
63-
ff_cos_256,
64-
ff_cos_512,
65-
ff_cos_1024,
66-
ff_cos_2048,
67-
ff_cos_4096,
68-
ff_cos_8192,
69-
ff_cos_16384,
70-
ff_cos_32768,
71-
ff_cos_65536,
59+
av_cos_16,
60+
av_cos_32,
61+
av_cos_64,
62+
av_cos_128,
63+
av_cos_256,
64+
av_cos_512,
65+
av_cos_1024,
66+
av_cos_2048,
67+
av_cos_4096,
68+
av_cos_8192,
69+
av_cos_16384,
70+
av_cos_32768,
71+
av_cos_65536,
7272
};
7373

7474
static void fft_permute_c(FFTContext *s, FFTComplex *z);
@@ -90,7 +90,7 @@ void ff_init_ff_cos_tabs(int index)
9090
int i;
9191
int m = 1<<index;
9292
double freq = 2*M_PI/m;
93-
FFTSample *tab = ff_cos_tabs[index];
93+
FFTSample *tab = av_cos_tabs[index];
9494
for(i=0; i<=m/4; i++)
9595
tab[i] = cos(i*freq);
9696
for(i=1; i<m/4; i++)
@@ -243,7 +243,7 @@ static void fft##n(FFTComplex *z)\
243243
fft##n2(z);\
244244
fft##n4(z+n4*2);\
245245
fft##n4(z+n4*3);\
246-
pass(z,ff_cos_##n,n4/2);\
246+
pass(z,av_cos_##n,n4/2);\
247247
}
248248

249249
static void fft4(FFTComplex *z)
@@ -279,8 +279,8 @@ static void fft8(FFTComplex *z)
279279
static void fft16(FFTComplex *z)
280280
{
281281
FFTDouble t1, t2, t3, t4, t5, t6;
282-
FFTSample cos_16_1 = ff_cos_16[1];
283-
FFTSample cos_16_3 = ff_cos_16[3];
282+
FFTSample cos_16_1 = av_cos_16[1];
283+
FFTSample cos_16_3 = av_cos_16[3];
284284

285285
fft8(z);
286286
fft4(z+8);

ext/at3_standalone/fft.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct FFTContext {
7373
};
7474

7575
#define COSTABLE(size) \
76-
DECLARE_ALIGNED(32, FFTSample, ff_cos_##size)[size/2]
76+
DECLARE_ALIGNED(32, FFTSample, av_cos_##size)[size/2]
7777

7878
extern COSTABLE(16);
7979
extern COSTABLE(32);

ext/at3_standalone/sinewin.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ SINETABLE(8192);
4040

4141
// Thie array is only accessed in init. However, not so for the
4242
// sine tables it points to.
43-
static float *ff_sine_windows[] = {
43+
static float *av_sine_windows[] = {
4444
NULL, NULL, NULL, NULL, NULL, // unused
45-
ff_sine_32 , ff_sine_64, ff_sine_128,
46-
ff_sine_256, ff_sine_512, ff_sine_1024,
47-
ff_sine_2048,ff_sine_4096, ff_sine_8192
45+
av_sine_32, av_sine_64, av_sine_128,
46+
av_sine_256, av_sine_512, av_sine_1024,
47+
av_sine_2048, av_sine_4096, av_sine_8192
4848
};
4949

5050
// Generate a sine window.
@@ -55,6 +55,6 @@ void ff_sine_window_init(float *window, int n) {
5555
}
5656

5757
void ff_init_ff_sine_windows(int index) {
58-
assert(index >= 0 && index < FF_ARRAY_ELEMS(ff_sine_windows));
59-
ff_sine_window_init(ff_sine_windows[index], 1 << index);
58+
assert(index >= 0 && index < FF_ARRAY_ELEMS(av_sine_windows));
59+
ff_sine_window_init(av_sine_windows[index], 1 << index);
6060
}

ext/at3_standalone/sinewin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "compat.h"
2424

2525
#define SINETABLE(size) \
26-
DECLARE_ALIGNED(32, float, ff_sine_##size)[size]
26+
DECLARE_ALIGNED(32, float, av_sine_##size)[size]
2727

2828
/**
2929
* Generate a sine window.

0 commit comments

Comments
 (0)