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
01a4259b
Commit
01a4259b
authored
Feb 03, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: remove the FF_API_USE_LPC cruft.
parent
db4d3a74
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
27 deletions
+0
-27
avcodec.h
libavcodec/avcodec.h
+0
-10
flacenc.c
libavcodec/flacenc.c
+0
-11
options.c
libavcodec/options.c
+0
-3
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/avcodec.h
View file @
01a4259b
...
...
@@ -2531,16 +2531,6 @@ typedef struct AVCodecContext {
int
compression_level
;
#define FF_COMPRESSION_DEFAULT -1
#if FF_API_USE_LPC
/**
* Sets whether to use LPC mode - used by FLAC encoder.
* - encoding: Set by user.
* - decoding: unused
* @deprecated Deprecated in favor of lpc_type and lpc_passes.
*/
int
use_lpc
;
#endif
/**
* LPC coefficient precision - used by FLAC encoder
* - encoding: Set by user.
...
...
libavcodec/flacenc.c
View file @
01a4259b
...
...
@@ -285,17 +285,6 @@ static av_cold int flac_encode_init(AVCodecContext *avctx)
s
->
options
.
max_partition_order
=
((
int
[]){
2
,
2
,
3
,
3
,
3
,
8
,
8
,
8
,
8
,
8
,
8
,
8
,
8
})[
level
];
/* set compression option overrides from AVCodecContext */
#if FF_API_USE_LPC
/* for compatibility with deprecated AVCodecContext.use_lpc */
if
(
avctx
->
use_lpc
==
0
)
{
s
->
options
.
lpc_type
=
AV_LPC_TYPE_FIXED
;
}
else
if
(
avctx
->
use_lpc
==
1
)
{
s
->
options
.
lpc_type
=
AV_LPC_TYPE_LEVINSON
;
}
else
if
(
avctx
->
use_lpc
>
1
)
{
s
->
options
.
lpc_type
=
AV_LPC_TYPE_CHOLESKY
;
s
->
options
.
lpc_passes
=
avctx
->
use_lpc
-
1
;
}
#endif
if
(
avctx
->
lpc_type
>
AV_LPC_TYPE_DEFAULT
)
{
if
(
avctx
->
lpc_type
>
AV_LPC_TYPE_CHOLESKY
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"unknown lpc type: %d
\n
"
,
avctx
->
lpc_type
);
...
...
libavcodec/options.c
View file @
01a4259b
...
...
@@ -396,9 +396,6 @@ static const AVOption options[]={
{
"ivlc"
,
"intra vlc table"
,
0
,
FF_OPT_TYPE_CONST
,
CODEC_FLAG2_INTRA_VLC
,
INT_MIN
,
INT_MAX
,
V
|
E
,
"flags2"
},
{
"b_sensitivity"
,
"adjusts sensitivity of b_frame_strategy 1"
,
OFFSET
(
b_sensitivity
),
FF_OPT_TYPE_INT
,
40
,
1
,
INT_MAX
,
V
|
E
},
{
"compression_level"
,
NULL
,
OFFSET
(
compression_level
),
FF_OPT_TYPE_INT
,
FF_COMPRESSION_DEFAULT
,
INT_MIN
,
INT_MAX
,
V
|
A
|
E
},
#if FF_API_USE_LPC
{
"use_lpc"
,
"sets whether to use LPC mode (FLAC)"
,
OFFSET
(
use_lpc
),
FF_OPT_TYPE_INT
,
-
1
,
INT_MIN
,
INT_MAX
,
A
|
E
},
#endif
{
"lpc_coeff_precision"
,
"LPC coefficient precision (FLAC)"
,
OFFSET
(
lpc_coeff_precision
),
FF_OPT_TYPE_INT
,
DEFAULT
,
0
,
INT_MAX
,
A
|
E
},
{
"min_prediction_order"
,
NULL
,
OFFSET
(
min_prediction_order
),
FF_OPT_TYPE_INT
,
-
1
,
INT_MIN
,
INT_MAX
,
A
|
E
},
{
"max_prediction_order"
,
NULL
,
OFFSET
(
max_prediction_order
),
FF_OPT_TYPE_INT
,
-
1
,
INT_MIN
,
INT_MAX
,
A
|
E
},
...
...
libavcodec/version.h
View file @
01a4259b
...
...
@@ -41,9 +41,6 @@
#ifndef FF_API_PALETTE_CONTROL
#define FF_API_PALETTE_CONTROL (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_USE_LPC
#define FF_API_USE_LPC (LIBAVCODEC_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_SET_STRING_OLD
#define FF_API_SET_STRING_OLD (LIBAVCODEC_VERSION_MAJOR < 53)
#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