Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
e0b9f94b
Commit
e0b9f94b
authored
14 years ago
by
Justin Ruggles
Browse files
Options
Downloads
Patches
Plain Diff
cosmetics: use some size macros in ac3tab.c/h
Originally committed as revision 25969 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ce571ceb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libavcodec/ac3.h
+2
-2
2 additions, 2 deletions
libavcodec/ac3.h
libavcodec/ac3tab.c
+3
-3
3 additions, 3 deletions
libavcodec/ac3tab.c
libavcodec/ac3tab.h
+4
-3
4 additions, 3 deletions
libavcodec/ac3tab.h
with
9 additions
and
8 deletions
libavcodec/ac3.h
+
2
−
2
View file @
e0b9f94b
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
#ifndef AVCODEC_AC3_H
#ifndef AVCODEC_AC3_H
#define AVCODEC_AC3_H
#define AVCODEC_AC3_H
#include
"ac3tab.h"
#define AC3_MAX_CODED_FRAME_SIZE 3840
/* in bytes */
#define AC3_MAX_CODED_FRAME_SIZE 3840
/* in bytes */
#define AC3_MAX_CHANNELS 6
/* including LFE channel */
#define AC3_MAX_CHANNELS 6
/* including LFE channel */
...
@@ -39,6 +37,8 @@
...
@@ -39,6 +37,8 @@
#define AC3_WINDOW_SIZE (AC3_BLOCK_SIZE * 2)
#define AC3_WINDOW_SIZE (AC3_BLOCK_SIZE * 2)
#define AC3_CRITICAL_BANDS 50
#define AC3_CRITICAL_BANDS 50
#include
"ac3tab.h"
/* exponent encoding strategy */
/* exponent encoding strategy */
#define EXP_REUSE 0
#define EXP_REUSE 0
#define EXP_NEW 1
#define EXP_NEW 1
...
...
This diff is collapsed.
Click to expand it.
libavcodec/ac3tab.c
+
3
−
3
View file @
e0b9f94b
...
@@ -135,7 +135,7 @@ const uint16_t ff_ac3_bitrate_tab[19] = {
...
@@ -135,7 +135,7 @@ const uint16_t ff_ac3_bitrate_tab[19] = {
/* AC-3 MDCT window */
/* AC-3 MDCT window */
/* MDCT window */
/* MDCT window */
const
int16_t
ff_ac3_window
[
256
]
=
{
const
int16_t
ff_ac3_window
[
AC3_WINDOW_SIZE
/
2
]
=
{
4
,
7
,
12
,
16
,
21
,
28
,
34
,
42
,
4
,
7
,
12
,
16
,
21
,
28
,
34
,
42
,
51
,
61
,
72
,
84
,
97
,
111
,
127
,
145
,
51
,
61
,
72
,
84
,
97
,
111
,
127
,
145
,
164
,
184
,
207
,
231
,
257
,
285
,
315
,
347
,
164
,
184
,
207
,
231
,
257
,
285
,
315
,
347
,
...
@@ -199,7 +199,7 @@ const uint8_t ff_ac3_log_add_tab[260]= {
...
@@ -199,7 +199,7 @@ const uint8_t ff_ac3_log_add_tab[260]= {
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
};
};
const
uint16_t
ff_ac3_hearing_threshold_tab
[
50
][
3
]
=
{
const
uint16_t
ff_ac3_hearing_threshold_tab
[
AC3_CRITICAL_BANDS
][
3
]
=
{
{
0x04d0
,
0x04f0
,
0x0580
},
{
0x04d0
,
0x04f0
,
0x0580
},
{
0x04d0
,
0x04f0
,
0x0580
},
{
0x04d0
,
0x04f0
,
0x0580
},
{
0x0440
,
0x0460
,
0x04b0
},
{
0x0440
,
0x0460
,
0x04b0
},
...
@@ -286,7 +286,7 @@ const uint16_t ff_ac3_fast_gain_tab[8]= {
...
@@ -286,7 +286,7 @@ const uint16_t ff_ac3_fast_gain_tab[8]= {
0x080
,
0x100
,
0x180
,
0x200
,
0x280
,
0x300
,
0x380
,
0x400
,
0x080
,
0x100
,
0x180
,
0x200
,
0x280
,
0x300
,
0x380
,
0x400
,
};
};
const
uint8_t
ff_ac3_critical_band_size_tab
[
50
]
=
{
const
uint8_t
ff_ac3_critical_band_size_tab
[
AC3_CRITICAL_BANDS
]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
6
,
6
,
6
,
6
,
6
,
6
,
12
,
12
,
12
,
12
,
24
,
24
,
24
,
24
,
24
3
,
6
,
6
,
6
,
6
,
6
,
6
,
12
,
12
,
12
,
12
,
24
,
24
,
24
,
24
,
24
...
...
This diff is collapsed.
Click to expand it.
libavcodec/ac3tab.h
+
4
−
3
View file @
e0b9f94b
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#define AVCODEC_AC3TAB_H
#define AVCODEC_AC3TAB_H
#include
"libavutil/common.h"
#include
"libavutil/common.h"
#include
"ac3.h"
extern
const
uint16_t
ff_ac3_frame_size_tab
[
38
][
3
];
extern
const
uint16_t
ff_ac3_frame_size_tab
[
38
][
3
];
extern
const
uint8_t
ff_ac3_channels_tab
[
8
];
extern
const
uint8_t
ff_ac3_channels_tab
[
8
];
...
@@ -31,9 +32,9 @@ extern const uint8_t ff_ac3_enc_channel_map[8][2][6];
...
@@ -31,9 +32,9 @@ extern const uint8_t ff_ac3_enc_channel_map[8][2][6];
extern
const
uint8_t
ff_ac3_dec_channel_map
[
8
][
2
][
6
];
extern
const
uint8_t
ff_ac3_dec_channel_map
[
8
][
2
][
6
];
extern
const
uint16_t
ff_ac3_sample_rate_tab
[
3
];
extern
const
uint16_t
ff_ac3_sample_rate_tab
[
3
];
extern
const
uint16_t
ff_ac3_bitrate_tab
[
19
];
extern
const
uint16_t
ff_ac3_bitrate_tab
[
19
];
extern
const
int16_t
ff_ac3_window
[
256
];
extern
const
int16_t
ff_ac3_window
[
AC3_WINDOW_SIZE
/
2
];
extern
const
uint8_t
ff_ac3_log_add_tab
[
260
];
extern
const
uint8_t
ff_ac3_log_add_tab
[
260
];
extern
const
uint16_t
ff_ac3_hearing_threshold_tab
[
50
][
3
];
extern
const
uint16_t
ff_ac3_hearing_threshold_tab
[
AC3_CRITICAL_BANDS
][
3
];
extern
const
uint8_t
ff_ac3_bap_tab
[
64
];
extern
const
uint8_t
ff_ac3_bap_tab
[
64
];
extern
const
uint8_t
ff_ac3_slow_decay_tab
[
4
];
extern
const
uint8_t
ff_ac3_slow_decay_tab
[
4
];
extern
const
uint8_t
ff_ac3_fast_decay_tab
[
4
];
extern
const
uint8_t
ff_ac3_fast_decay_tab
[
4
];
...
@@ -41,7 +42,7 @@ extern const uint16_t ff_ac3_slow_gain_tab[4];
...
@@ -41,7 +42,7 @@ extern const uint16_t ff_ac3_slow_gain_tab[4];
extern
const
uint16_t
ff_ac3_db_per_bit_tab
[
4
];
extern
const
uint16_t
ff_ac3_db_per_bit_tab
[
4
];
extern
const
int16_t
ff_ac3_floor_tab
[
8
];
extern
const
int16_t
ff_ac3_floor_tab
[
8
];
extern
const
uint16_t
ff_ac3_fast_gain_tab
[
8
];
extern
const
uint16_t
ff_ac3_fast_gain_tab
[
8
];
extern
const
uint8_t
ff_ac3_critical_band_size_tab
[
50
];
extern
const
uint8_t
ff_ac3_critical_band_size_tab
[
AC3_CRITICAL_BANDS
];
extern
const
uint16_t
ff_eac3_default_chmap
[
8
];
extern
const
uint16_t
ff_eac3_default_chmap
[
8
];
/** Custom channel map locations bitmask
/** Custom channel map locations bitmask
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment