Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
991f3de1
Commit
991f3de1
authored
Mar 25, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3enc: Add codec-specific options for writing AC-3 metadata.
parent
c6c2dfcf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
782 additions
and
18 deletions
+782
-18
encoders.texi
doc/encoders.texi
+336
-0
ac3.h
libavcodec/ac3.h
+11
-0
ac3dec.c
libavcodec/ac3dec.c
+0
-10
ac3enc.c
libavcodec/ac3enc.c
+433
-8
ac3enc_fixed.c
libavcodec/ac3enc_fixed.c
+1
-0
ac3enc_float.c
libavcodec/ac3enc_float.c
+1
-0
No files found.
doc/encoders.texi
View file @
991f3de1
This diff is collapsed.
Click to expand it.
libavcodec/ac3.h
View file @
991f3de1
...
...
@@ -48,6 +48,17 @@
#define EXP_D25 2
#define EXP_D45 3
/* pre-defined gain values */
#define LEVEL_PLUS_3DB 1.4142135623730950
#define LEVEL_PLUS_1POINT5DB 1.1892071150027209
#define LEVEL_MINUS_1POINT5DB 0.8408964152537145
#define LEVEL_MINUS_3DB 0.7071067811865476
#define LEVEL_MINUS_4POINT5DB 0.5946035575013605
#define LEVEL_MINUS_6DB 0.5000000000000000
#define LEVEL_MINUS_9DB 0.3535533905932738
#define LEVEL_ZERO 0.0000000000000000
#define LEVEL_ONE 1.0000000000000000
/** Delta bit allocation strategy */
typedef
enum
{
DBA_REUSE
=
0
,
...
...
libavcodec/ac3dec.c
View file @
991f3de1
...
...
@@ -67,16 +67,6 @@ static const uint8_t quantization_tab[16] = {
static
float
dynamic_range_tab
[
256
];
/** Adjustments in dB gain */
#define LEVEL_PLUS_3DB 1.4142135623730950
#define LEVEL_PLUS_1POINT5DB 1.1892071150027209
#define LEVEL_MINUS_1POINT5DB 0.8408964152537145
#define LEVEL_MINUS_3DB 0.7071067811865476
#define LEVEL_MINUS_4POINT5DB 0.5946035575013605
#define LEVEL_MINUS_6DB 0.5000000000000000
#define LEVEL_MINUS_9DB 0.3535533905932738
#define LEVEL_ZERO 0.0000000000000000
#define LEVEL_ONE 1.0000000000000000
static
const
float
gain_levels
[
9
]
=
{
LEVEL_PLUS_3DB
,
LEVEL_PLUS_1POINT5DB
,
...
...
libavcodec/ac3enc.c
View file @
991f3de1
This diff is collapsed.
Click to expand it.
libavcodec/ac3enc_fixed.c
View file @
991f3de1
...
...
@@ -410,5 +410,6 @@ AVCodec ff_ac3_fixed_encoder = {
NULL
,
.
sample_fmts
=
(
const
enum
AVSampleFormat
[]){
AV_SAMPLE_FMT_S16
,
AV_SAMPLE_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"ATSC A/52A (AC-3)"
),
.
priv_class
=
&
ac3enc_class
,
.
channel_layouts
=
ac3_channel_layouts
,
};
libavcodec/ac3enc_float.c
View file @
991f3de1
...
...
@@ -120,5 +120,6 @@ AVCodec ff_ac3_encoder = {
NULL
,
.
sample_fmts
=
(
const
enum
AVSampleFormat
[]){
AV_SAMPLE_FMT_FLT
,
AV_SAMPLE_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"ATSC A/52A (AC-3)"
),
.
priv_class
=
&
ac3enc_class
,
.
channel_layouts
=
ac3_channel_layouts
,
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment