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
aee036cd
Commit
aee036cd
authored
May 10, 2020
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: move aacenc profiles to profiles.h
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
337fe4bc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
30 deletions
+20
-30
codecs.texi
doc/codecs.texi
+0
-20
aacenc.c
libavcodec/aacenc.c
+2
-0
libfdk-aacenc.c
libavcodec/libfdk-aacenc.c
+2
-0
options_table.h
libavcodec/options_table.h
+0
-10
profiles.h
libavcodec/profiles.h
+16
-0
No files found.
doc/codecs.texi
View file @
aee036cd
...
...
@@ -841,26 +841,6 @@ Possible values:
@table @samp
@item unknown
@item aac_main
@item aac_low
@item aac_ssr
@item aac_ltp
@item aac_he
@item aac_he_v2
@item aac_ld
@item aac_eld
@item mpeg2_aac_low
@item mpeg2_aac_he
@item mpeg4_sp
@item mpeg4_core
...
...
libavcodec/aacenc.c
View file @
aee036cd
...
...
@@ -39,6 +39,7 @@
#include "mpeg4audio.h"
#include "kbdwin.h"
#include "sinewin.h"
#include "profiles.h"
#include "aac.h"
#include "aactab.h"
...
...
@@ -1131,6 +1132,7 @@ static const AVOption aacenc_options[] = {
{
"aac_ltp"
,
"Long term prediction"
,
offsetof
(
AACEncContext
,
options
.
ltp
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
0
},
-
1
,
1
,
AACENC_FLAGS
},
{
"aac_pred"
,
"AAC-Main prediction"
,
offsetof
(
AACEncContext
,
options
.
pred
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
0
},
-
1
,
1
,
AACENC_FLAGS
},
{
"aac_pce"
,
"Forces the use of PCEs"
,
offsetof
(
AACEncContext
,
options
.
pce
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
0
},
-
1
,
1
,
AACENC_FLAGS
},
FF_AAC_PROFILE_OPTS
{
NULL
}
};
...
...
libavcodec/libfdk-aacenc.c
View file @
aee036cd
...
...
@@ -25,6 +25,7 @@
#include "avcodec.h"
#include "audio_frame_queue.h"
#include "internal.h"
#include "profiles.h"
#ifdef AACENCODER_LIB_VL0
#define FDKENC_VER_AT_LEAST(vl0, vl1) \
...
...
@@ -62,6 +63,7 @@ static const AVOption aac_enc_options[] = {
{
"latm"
,
"Output LATM/LOAS encapsulated data"
,
offsetof
(
AACContext
,
latm
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
1
,
AV_OPT_FLAG_AUDIO_PARAM
|
AV_OPT_FLAG_ENCODING_PARAM
},
{
"header_period"
,
"StreamMuxConfig and PCE repetition period (in frames)"
,
offsetof
(
AACContext
,
header_period
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
0xffff
,
AV_OPT_FLAG_AUDIO_PARAM
|
AV_OPT_FLAG_ENCODING_PARAM
},
{
"vbr"
,
"VBR mode (1-5)"
,
offsetof
(
AACContext
,
vbr
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
5
,
AV_OPT_FLAG_AUDIO_PARAM
|
AV_OPT_FLAG_ENCODING_PARAM
},
FF_AAC_PROFILE_OPTS
{
NULL
}
};
...
...
libavcodec/options_table.h
View file @
aee036cd
...
...
@@ -263,16 +263,6 @@ static const AVOption avcodec_options[] = {
{
"skip_bottom"
,
"number of macroblock rows at the bottom which are skipped"
,
OFFSET
(
skip_bottom
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
D
},
{
"profile"
,
NULL
,
OFFSET
(
profile
),
AV_OPT_TYPE_INT
,
{.
i64
=
FF_PROFILE_UNKNOWN
},
INT_MIN
,
INT_MAX
,
V
|
A
|
E
|
CC
,
"avctx.profile"
},
{
"unknown"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_UNKNOWN
},
INT_MIN
,
INT_MAX
,
V
|
A
|
E
,
"avctx.profile"
},
{
"aac_main"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_MAIN
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"aac_low"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_LOW
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"aac_ssr"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_SSR
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"aac_ltp"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_LTP
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"aac_he"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_HE
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"aac_he_v2"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_HE_V2
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"aac_ld"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_LD
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"aac_eld"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_ELD
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"mpeg2_aac_low"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_MPEG2_AAC_LOW
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"mpeg2_aac_he"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_MPEG2_AAC_HE
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"dts"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_DTS
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"dts_es"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_DTS_ES
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
{
"dts_96_24"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_DTS_96_24
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"avctx.profile"
},
...
...
libavcodec/profiles.h
View file @
aee036cd
...
...
@@ -20,6 +20,22 @@
#define AVCODEC_PROFILES_H
#include "avcodec.h"
#include "libavutil/opt.h"
#define FF_AVCTX_PROFILE_OPTION(name, description, type, value) \
{name, description, 0, AV_OPT_TYPE_CONST, {.i64 = value }, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_## type ##_PARAM, "avctx.profile"},
#define FF_AAC_PROFILE_OPTS \
FF_AVCTX_PROFILE_OPTION("aac_main", NULL, AUDIO, FF_PROFILE_AAC_MAIN)\
FF_AVCTX_PROFILE_OPTION("aac_low", NULL, AUDIO, FF_PROFILE_AAC_LOW)\
FF_AVCTX_PROFILE_OPTION("aac_ssr", NULL, AUDIO, FF_PROFILE_AAC_SSR)\
FF_AVCTX_PROFILE_OPTION("aac_ltp", NULL, AUDIO, FF_PROFILE_AAC_LTP)\
FF_AVCTX_PROFILE_OPTION("aac_he", NULL, AUDIO, FF_PROFILE_AAC_HE)\
FF_AVCTX_PROFILE_OPTION("aac_he_v2", NULL, AUDIO, FF_PROFILE_AAC_HE_V2)\
FF_AVCTX_PROFILE_OPTION("aac_ld", NULL, AUDIO, FF_PROFILE_AAC_LD)\
FF_AVCTX_PROFILE_OPTION("aac_eld", NULL, AUDIO, FF_PROFILE_AAC_ELD)\
FF_AVCTX_PROFILE_OPTION("mpeg2_aac_low", NULL, AUDIO, FF_PROFILE_MPEG2_AAC_LOW)\
FF_AVCTX_PROFILE_OPTION("mpeg2_aac_he", NULL, AUDIO, FF_PROFILE_MPEG2_AAC_HE)\
extern
const
AVProfile
ff_aac_profiles
[];
extern
const
AVProfile
ff_dca_profiles
[];
...
...
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