History

aacdec: move aacdec_common to aac/aacdec_tab

Start to clean up the decoder. Also renames a confusingly named file.

Lynne committed 2 years ago

Commit f55b5871 parent fc02b917 files · +21 −14Browse files

Unified · Split

7 files
  1. libavcodec/Makefile +3 −2
  2. libavcodec/aac/Makefile +5 −0
  3. libavcodec/aac/aacdec_tab.c +6 −5
  4. libavcodec/aac/aacdec_tab.h +4 −4
  5. libavcodec/aacdec.c +1 −1
  6. libavcodec/aacdec_fixed.c +1 −1
  7. libavcodec/aacsbr_template.c +1 −1
libavcodec/Makefile+3−2
@@ -64,6 +64,7 @@ OBJS = ac3_parser.o \ · 63 unmodified lines
6464 xiph.o \
6565
6666 # subsystems
67+include $(SRC_PATH)/libavcodec/aac/Makefile
6768 include $(SRC_PATH)/libavcodec/vvc/Makefile
6869 -include $(SRC_PATH)/libavcodec/$(ARCH)/vvc/Makefile
6970 OBJS-$(CONFIG_AANDCTTABLES) += aandcttab.o
@@ -179,11 +180,11 @@ OBJS-$(CONFIG_WMV2DSP) += wmv2dsp.o · 109 unmodified lines
179180 OBJS-$(CONFIG_ZERO12V_DECODER) += 012v.o
180181 OBJS-$(CONFIG_A64MULTI_ENCODER) += a64multienc.o elbg.o
181182 OBJS-$(CONFIG_A64MULTI5_ENCODER) += a64multienc.o elbg.o
182−OBJS-$(CONFIG_AAC_DECODER) += aacdec.o aacdec_common.o aactab.o \
183+OBJS-$(CONFIG_AAC_DECODER) += aacdec.o aactab.o \
183184 aacsbr.o aacps_common.o aacps_float.o \
184185 kbdwin.o \
185186 sbrdsp.o aacpsdsp_float.o cbrt_data.o
186−OBJS-$(CONFIG_AAC_FIXED_DECODER) += aacdec_fixed.o aacdec_common.o aactab.o \
187+OBJS-$(CONFIG_AAC_FIXED_DECODER) += aacdec_fixed.o aactab.o \
187188 aacsbr_fixed.o aacps_common.o aacps_fixed.o \
188189 kbdwin.o \
189190 sbrdsp_fixed.o aacpsdsp_fixed.o cbrt_data_fixed.o
libavcodec/aac/Makefile+5−0
@@ -0,0 +1,5 @@
1+clean::
2+ $(RM) $(CLEANSUFFIXES:%=libavcodec/aac/%)
3+
4+OBJS-$(CONFIG_AAC_DECODER) += aac/aacdec_tab.o
5+OBJS-$(CONFIG_AAC_FIXED_DECODER) += aac/aacdec_tab.o
libavcodec/aac/aacdec_tab.crenamed from libavcodec/aacdec_common.c+6−5
@@ -25,11 +25,12 @@ · 24 unmodified lines
2525 * Common code and tables of the AAC fixed- and floating-point decoders
2626 */
2727
28−#include "aac.h"
29−#include "aacdectab.h"
30−#include "aacps.h"
31−#include "aactab.h"
32−#include "vlc.h"
28+#include "aacdec_tab.h"
29+
30+#include "libavcodec/aac.h"
31+#include "libavcodec/aacps.h"
32+#include "libavcodec/aactab.h"
33+#include "libavcodec/vlc.h"
3334
3435 #include "libavutil/attributes.h"
3536 #include "libavutil/thread.h"
libavcodec/aac/aacdec_tab.hrenamed from libavcodec/aacdectab.h+4−4
@@ -25,12 +25,12 @@ · 24 unmodified lines
2525 * @author Maxim Gavrilov ( maxim.gavrilov gmail com )
2626 */
2727
28−#ifndef AVCODEC_AACDECTAB_H
29−#define AVCODEC_AACDECTAB_H
28+#ifndef AVCODEC_AAC_AACDEC_TAB_H
29+#define AVCODEC_AAC_AACDEC_TAB_H
3030
3131 #include <stdint.h>
3232
33−#include "vlc.h"
33+#include "libavcodec/vlc.h"
3434
3535 #include "libavutil/attributes_internal.h"
3636 #include "libavutil/channel_layout.h"
@@ -52,4 +52,4 @@ extern const int16_t ff_aac_channel_map[3][4][6]; · 15 unmodified lines
5252 extern const AVChannelLayout ff_aac_ch_layout[];
5353 FF_VISIBILITY_POP_HIDDEN
5454
55−#endif /* AVCODEC_AACDECTAB_H */
55+#endif /* AVCODEC_AAC_AACDEC_TAB_H */
libavcodec/aacdec.c+1−1
@@ -47,7 +47,7 @@ · 46 unmodified lines
4747 #include "aac.h"
4848 #include "aacdec.h"
4949 #include "aactab.h"
50−#include "aacdectab.h"
50+#include "aac/aacdec_tab.h"
5151 #include "adts_header.h"
5252 #include "cbrt_data.h"
5353 #include "sbr.h"
libavcodec/aacdec_fixed.c+1−1
@@ -72,7 +72,7 @@ · 71 unmodified lines
7272 #include "aac.h"
7373 #include "aacdec.h"
7474 #include "aactab.h"
75−#include "aacdectab.h"
75+#include "aac/aacdec_tab.h"
7676 #include "adts_header.h"
7777 #include "cbrt_data.h"
7878 #include "sbr.h"
libavcodec/aacsbr_template.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 */
3434
3535 #include "aacdec.h"
36−#include "aacdectab.h"
36+#include "aac/aacdec_tab.h"
3737 #include "avcodec.h"
3838 #include "libavutil/qsort.h"
3939

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t