mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Remove sinewin.cpp/h
This commit is contained in:
parent
b6b869ddee
commit
a93bbf39ba
10 changed files with 14 additions and 132 deletions
|
@ -396,7 +396,6 @@
|
|||
<ClInclude Include="..\ext\at3_standalone\get_bits.h" />
|
||||
<ClInclude Include="..\ext\at3_standalone\intreadwrite.h" />
|
||||
<ClInclude Include="..\ext\at3_standalone\mem.h" />
|
||||
<ClInclude Include="..\ext\at3_standalone\sinewin.h" />
|
||||
<ClInclude Include="..\ext\basis_universal\basisu.h" />
|
||||
<ClInclude Include="..\ext\basis_universal\basisu_containers.h" />
|
||||
<ClInclude Include="..\ext\basis_universal\basisu_containers_impl.h" />
|
||||
|
@ -605,7 +604,6 @@
|
|||
<ClCompile Include="..\ext\at3_standalone\compat.cpp" />
|
||||
<ClCompile Include="..\ext\at3_standalone\fft.cpp" />
|
||||
<ClCompile Include="..\ext\at3_standalone\mem.cpp" />
|
||||
<ClCompile Include="..\ext\at3_standalone\sinewin.cpp" />
|
||||
<ClCompile Include="..\ext\basis_universal\basisu_transcoder.cpp" />
|
||||
<ClCompile Include="..\ext\libpng17\png.c">
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
|
||||
|
|
|
@ -557,9 +557,6 @@
|
|||
<ClInclude Include="..\ext\at3_standalone\mem.h">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\ext\at3_standalone\sinewin.h">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="ABI.cpp" />
|
||||
|
@ -1032,9 +1029,6 @@
|
|||
<ClCompile Include="..\ext\at3_standalone\mem.cpp">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\ext\at3_standalone\sinewin.cpp">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\ext\at3_standalone\atrac.cpp">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
@ -251,7 +251,6 @@
|
|||
<ClInclude Include="..\..\ext\at3_standalone\get_bits.h" />
|
||||
<ClInclude Include="..\..\ext\at3_standalone\intreadwrite.h" />
|
||||
<ClInclude Include="..\..\ext\at3_standalone\mem.h" />
|
||||
<ClInclude Include="..\..\ext\at3_standalone\sinewin.h" />
|
||||
<ClInclude Include="..\..\ext\basis_universal\basisu.h" />
|
||||
<ClInclude Include="..\..\ext\basis_universal\basisu_containers.h" />
|
||||
<ClInclude Include="..\..\ext\basis_universal\basisu_containers_impl.h" />
|
||||
|
@ -402,7 +401,6 @@
|
|||
<ClCompile Include="..\..\ext\at3_standalone\fft.cpp" />
|
||||
<ClCompile Include="..\..\ext\at3_standalone\get_bits.cpp" />
|
||||
<ClCompile Include="..\..\ext\at3_standalone\mem.cpp" />
|
||||
<ClCompile Include="..\..\ext\at3_standalone\sinewin.cpp" />
|
||||
<ClCompile Include="..\..\ext\basis_universal\basisu_transcoder.cpp" />
|
||||
<ClCompile Include="..\..\ext\libpng17\png.c" />
|
||||
<ClCompile Include="..\..\ext\libpng17\pngerror.c" />
|
||||
|
|
|
@ -492,9 +492,6 @@
|
|||
<ClCompile Include="..\..\ext\at3_standalone\mem.cpp">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\ext\at3_standalone\sinewin.cpp">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="targetver.h" />
|
||||
|
@ -943,9 +940,6 @@
|
|||
<ClInclude Include="..\..\ext\at3_standalone\mem.h">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\ext\at3_standalone\sinewin.h">
|
||||
<Filter>ext\at3_standalone</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\Common\Math\fast\fast_matrix_neon.S">
|
||||
|
|
|
@ -121,8 +121,7 @@ AT3_STANDALONE_FILES := \
|
|||
${SRC}/ext/at3_standalone/get_bits.cpp \
|
||||
${SRC}/ext/at3_standalone/compat.cpp \
|
||||
${SRC}/ext/at3_standalone/fft.cpp \
|
||||
${SRC}/ext/at3_standalone/mem.cpp \
|
||||
${SRC}/ext/at3_standalone/sinewin.cpp
|
||||
${SRC}/ext/at3_standalone/mem.cpp
|
||||
|
||||
RCHEEVOS_FILES := \
|
||||
${SRC}/ext/rcheevos/src/rapi/rc_api_common.c \
|
||||
|
|
|
@ -15,7 +15,6 @@ set(ALL_SOURCE_FILES
|
|||
${SRC_DIR}/compat.cpp
|
||||
${SRC_DIR}/fft.cpp
|
||||
${SRC_DIR}/mem.cpp
|
||||
${SRC_DIR}/sinewin.cpp
|
||||
)
|
||||
|
||||
add_library(at3_standalone STATIC ${ALL_SOURCE_FILES})
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "float_dsp.h"
|
||||
#include "sinewin.h"
|
||||
#include "fft.h"
|
||||
#include "atrac3plus.h"
|
||||
|
||||
|
@ -91,12 +90,22 @@ const float av_atrac3p_mant_tab[8] = {
|
|||
0.035619736
|
||||
};
|
||||
|
||||
DECLARE_ALIGNED(32, float, av_sine_64)[64];
|
||||
DECLARE_ALIGNED(32, float, av_sine_128)[128];
|
||||
|
||||
// Generate a sine window.
|
||||
static void ff_sine_window_init(float *window, int n) {
|
||||
int i;
|
||||
for (i = 0; i < n; i++)
|
||||
window[i] = sinf((i + 0.5) * (M_PI / (2.0 * n)));
|
||||
}
|
||||
|
||||
#define ATRAC3P_MDCT_SIZE (ATRAC3P_SUBBAND_SAMPLES * 2)
|
||||
|
||||
void ff_atrac3p_init_imdct(FFTContext *mdct_ctx)
|
||||
{
|
||||
ff_init_ff_sine_windows(7);
|
||||
ff_init_ff_sine_windows(6);
|
||||
ff_sine_window_init(av_sine_64, 64);
|
||||
ff_sine_window_init(av_sine_128, 128);
|
||||
|
||||
/* Initialize the MDCT transform. */
|
||||
ff_mdct_init(mdct_ctx, 8, 1, -1.0);
|
||||
|
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* This file is part of FFmpeg.
|
||||
*
|
||||
* FFmpeg is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* FFmpeg is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with FFmpeg; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <math.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include "aac_defines.h"
|
||||
#include "compat.h"
|
||||
|
||||
#include "mem.h"
|
||||
#include "aac_defines.h"
|
||||
|
||||
#include "sinewin.h"
|
||||
|
||||
SINETABLE(32);
|
||||
SINETABLE(64);
|
||||
SINETABLE(128);
|
||||
SINETABLE(256);
|
||||
SINETABLE(512);
|
||||
SINETABLE(1024);
|
||||
SINETABLE(2048);
|
||||
SINETABLE(4096);
|
||||
SINETABLE(8192);
|
||||
|
||||
// Thie array is only accessed in init. However, not so for the
|
||||
// sine tables it points to.
|
||||
static float *av_sine_windows[] = {
|
||||
NULL, NULL, NULL, NULL, NULL, // unused
|
||||
av_sine_32, av_sine_64, av_sine_128,
|
||||
av_sine_256, av_sine_512, av_sine_1024,
|
||||
av_sine_2048, av_sine_4096, av_sine_8192
|
||||
};
|
||||
|
||||
// Generate a sine window.
|
||||
void ff_sine_window_init(float *window, int n) {
|
||||
int i;
|
||||
for (i = 0; i < n; i++)
|
||||
window[i] = sinf((i + 0.5) * (M_PI / (2.0 * n)));
|
||||
}
|
||||
|
||||
void ff_init_ff_sine_windows(int index) {
|
||||
assert(index >= 0 && index < FF_ARRAY_ELEMS(av_sine_windows));
|
||||
ff_sine_window_init(av_sine_windows[index], 1 << index);
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2008 Robert Swain
|
||||
*
|
||||
* This file is part of FFmpeg.
|
||||
*
|
||||
* FFmpeg is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* FFmpeg is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with FFmpeg; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
#define SINETABLE(size) \
|
||||
DECLARE_ALIGNED(32, float, av_sine_##size)[size]
|
||||
|
||||
/**
|
||||
* Generate a sine window.
|
||||
* @param window pointer to half window
|
||||
* @param n size of half window
|
||||
*/
|
||||
void ff_sine_window_init(float *window, int n);
|
||||
|
||||
/**
|
||||
* initialize the specified entry of ff_sine_windows
|
||||
*/
|
||||
void ff_init_ff_sine_windows(int index);
|
||||
|
||||
extern SINETABLE(32);
|
||||
extern SINETABLE(64);
|
||||
extern SINETABLE(128);
|
||||
extern SINETABLE(256);
|
||||
extern SINETABLE(512);
|
||||
extern SINETABLE(1024);
|
||||
extern SINETABLE(2048);
|
||||
extern SINETABLE(4096);
|
||||
extern SINETABLE(8192);
|
|
@ -271,8 +271,7 @@ SOURCES_CXX += \
|
|||
${EXTDIR}/at3_standalone/get_bits.cpp \
|
||||
${EXTDIR}/at3_standalone/compat.cpp \
|
||||
${EXTDIR}/at3_standalone/fft.cpp \
|
||||
${EXTDIR}/at3_standalone/mem.cpp \
|
||||
${EXTDIR}/at3_standalone/sinewin.cpp
|
||||
${EXTDIR}/at3_standalone/mem.cpp
|
||||
|
||||
ifeq ($(PLATFORM_EXT), android)
|
||||
COREFLAGS += -DHAVE_DLFCN_H
|
||||
|
|
Loading…
Add table
Reference in a new issue