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
c4f7bee0
Commit
c4f7bee0
authored
Oct 08, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: deprecate unused mb_threshold field
parent
685be3d1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
avcodec.h
libavcodec/avcodec.h
+3
-4
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+0
-7
options_table.h
libavcodec/options_table.h
+1
-1
No files found.
libavcodec/avcodec.h
View file @
c4f7bee0
...
@@ -1614,14 +1614,13 @@ typedef struct AVCodecContext {
...
@@ -1614,14 +1614,13 @@ typedef struct AVCodecContext {
*/
*/
attribute_deprecated
attribute_deprecated
int
me_threshold
;
int
me_threshold
;
#endif
/**
/**
* Macroblock threshold below which the user specified macroblock types will be used.
* @deprecated this field is unused
* - encoding: Set by user.
* - decoding: unused
*/
*/
attribute_deprecated
int
mb_threshold
;
int
mb_threshold
;
#endif
/**
/**
* precision of the intra DC coefficient - 8
* precision of the intra DC coefficient - 8
...
...
libavcodec/mpegvideo_enc.c
View file @
c4f7bee0
...
@@ -510,13 +510,6 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
...
@@ -510,13 +510,6 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
return
-
1
;
return
-
1
;
}
}
i
=
(
INT_MAX
/
2
+
128
)
>>
8
;
if
(
avctx
->
mb_threshold
>=
i
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"mb_threshold too large, max is %d
\n
"
,
i
-
1
);
return
-
1
;
}
if
(
avctx
->
b_frame_strategy
&&
(
avctx
->
flags
&
CODEC_FLAG_PASS2
))
{
if
(
avctx
->
b_frame_strategy
&&
(
avctx
->
flags
&
CODEC_FLAG_PASS2
))
{
av_log
(
avctx
,
AV_LOG_INFO
,
av_log
(
avctx
,
AV_LOG_INFO
,
"notice: b_frame_strategy only affects the first pass
\n
"
);
"notice: b_frame_strategy only affects the first pass
\n
"
);
...
...
libavcodec/options_table.h
View file @
c4f7bee0
...
@@ -322,8 +322,8 @@ static const AVOption avcodec_options[] = {
...
@@ -322,8 +322,8 @@ static const AVOption avcodec_options[] = {
{
"auto"
,
"autodetect a suitable number of threads to use"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
0
},
INT_MIN
,
INT_MAX
,
V
|
E
|
D
,
"threads"
},
{
"auto"
,
"autodetect a suitable number of threads to use"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
0
},
INT_MIN
,
INT_MAX
,
V
|
E
|
D
,
"threads"
},
#if FF_API_MPV_OPT
#if FF_API_MPV_OPT
{
"me_threshold"
,
"motion estimation threshold"
,
OFFSET
(
me_threshold
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"me_threshold"
,
"motion estimation threshold"
,
OFFSET
(
me_threshold
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
#endif
{
"mb_threshold"
,
"macroblock threshold"
,
OFFSET
(
mb_threshold
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"mb_threshold"
,
"macroblock threshold"
,
OFFSET
(
mb_threshold
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
#endif
{
"dc"
,
"intra_dc_precision"
,
OFFSET
(
intra_dc_precision
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"dc"
,
"intra_dc_precision"
,
OFFSET
(
intra_dc_precision
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"nssew"
,
"nsse weight"
,
OFFSET
(
nsse_weight
),
AV_OPT_TYPE_INT
,
{.
i64
=
8
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"nssew"
,
"nsse weight"
,
OFFSET
(
nsse_weight
),
AV_OPT_TYPE_INT
,
{.
i64
=
8
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"skip_top"
,
"number of macroblock rows at the top which are skipped"
,
OFFSET
(
skip_top
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
D
},
{
"skip_top"
,
"number of macroblock rows at the top which are skipped"
,
OFFSET
(
skip_top
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
D
},
...
...
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