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
b9de160c
Commit
b9de160c
authored
Jan 22, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: remove disabled FF_API_LAME_GLOBAL_OPTS cruft.
parent
3211932c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
18 deletions
+1
-18
avcodec.h
libavcodec/avcodec.h
+0
-3
libmp3lame.c
libavcodec/libmp3lame.c
+0
-3
options.c
libavcodec/options.c
+1
-9
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/avcodec.h
View file @
b9de160c
...
...
@@ -599,9 +599,6 @@ typedef struct RcOverride{
#if FF_API_SNOW_GLOBAL_OPTS
#define CODEC_FLAG2_MEMC_ONLY 0x00001000 ///< Only do ME/MC (I frames -> ref, P frame -> ME+MC).
#endif
#if FF_API_LAME_GLOBAL_OPTS
#define CODEC_FLAG2_BIT_RESERVOIR 0x00020000 ///< Use a bit reservoir when encoding if possible
#endif
/**
* @}
*/
...
...
libavcodec/libmp3lame.c
View file @
b9de160c
...
...
@@ -68,9 +68,6 @@ static av_cold int MP3lame_encode_init(AVCodecContext *avctx)
lame_set_VBR_quality
(
s
->
gfp
,
avctx
->
global_quality
/
(
float
)
FF_QP2LAMBDA
);
}
lame_set_bWriteVbrTag
(
s
->
gfp
,
0
);
#if FF_API_LAME_GLOBAL_OPTS
s
->
reservoir
=
avctx
->
flags2
&
CODEC_FLAG2_BIT_RESERVOIR
;
#endif
lame_set_disable_reservoir
(
s
->
gfp
,
!
s
->
reservoir
);
if
(
lame_init_params
(
s
->
gfp
)
<
0
)
goto
err_close
;
...
...
libavcodec/options.c
View file @
b9de160c
...
...
@@ -321,12 +321,7 @@ static const AVOption options[]={
{
"nr"
,
"noise reduction"
,
OFFSET
(
noise_reduction
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"rc_init_occupancy"
,
"number of bits which should be loaded into the rc buffer before decoding starts"
,
OFFSET
(
rc_initial_buffer_occupancy
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"inter_threshold"
,
NULL
,
OFFSET
(
inter_threshold
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
#if FF_API_LAME_GLOBAL_OPTS
#define LAME_DEFAULTS CODEC_FLAG2_BIT_RESERVOIR
#else
#define LAME_DEFAULTS 0
#endif
{
"flags2"
,
NULL
,
OFFSET
(
flags2
),
AV_OPT_TYPE_FLAGS
,
{.
dbl
=
LAME_DEFAULTS
},
0
,
UINT_MAX
,
V
|
A
|
E
|
D
,
"flags2"
},
{
"flags2"
,
NULL
,
OFFSET
(
flags2
),
AV_OPT_TYPE_FLAGS
,
{.
dbl
=
DEFAULT
},
0
,
UINT_MAX
,
V
|
A
|
E
|
D
,
"flags2"
},
{
"error"
,
NULL
,
OFFSET
(
error_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"qns"
,
"quantizer noise shaping"
,
OFFSET
(
quantizer_noise_shaping
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"threads"
,
NULL
,
OFFSET
(
thread_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
1
},
0
,
INT_MAX
,
V
|
E
|
D
,
"threads"
},
...
...
@@ -385,9 +380,6 @@ static const AVOption options[]={
#if FF_API_REQUEST_CHANNELS
{
"request_channels"
,
"set desired number of audio channels"
,
OFFSET
(
request_channels
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
0
,
INT_MAX
,
A
|
D
},
#endif
#if FF_API_LAME_GLOBAL_OPTS
{
"reservoir"
,
"use bit reservoir"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
CODEC_FLAG2_BIT_RESERVOIR
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"flags2"
},
#endif
{
"bits_per_raw_sample"
,
NULL
,
OFFSET
(
bits_per_raw_sample
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
},
{
"channel_layout"
,
NULL
,
OFFSET
(
channel_layout
),
AV_OPT_TYPE_INT64
,
{.
dbl
=
DEFAULT
},
0
,
INT64_MAX
,
A
|
E
|
D
,
"channel_layout"
},
{
"request_channel_layout"
,
NULL
,
OFFSET
(
request_channel_layout
),
AV_OPT_TYPE_INT64
,
{.
dbl
=
DEFAULT
},
0
,
INT64_MAX
,
A
|
D
,
"request_channel_layout"
},
...
...
libavcodec/version.h
View file @
b9de160c
...
...
@@ -41,9 +41,6 @@
#ifndef FF_API_REQUEST_CHANNELS
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#ifndef FF_API_LAME_GLOBAL_OPTS
#define FF_API_LAME_GLOBAL_OPTS (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_SNOW_GLOBAL_OPTS
#define FF_API_SNOW_GLOBAL_OPTS (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
...
...
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