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
97dc86b7
Commit
97dc86b7
authored
Apr 29, 2011
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In libx264 wrapper, change wpredp to a codec specific option.
parent
be315a32
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
libx264.c
libavcodec/libx264.c
+4
-1
options.c
libavcodec/options.c
+0
-1
No files found.
libavcodec/libx264.c
View file @
97dc86b7
...
...
@@ -41,6 +41,7 @@ typedef struct X264Context {
const
char
*
level
;
int
fastfirstpass
;
const
char
*
stats
;
const
char
*
weightp
;
}
X264Context
;
static
void
X264_log
(
void
*
p
,
int
level
,
const
char
*
fmt
,
va_list
args
)
...
...
@@ -252,7 +253,6 @@ static av_cold int X264_init(AVCodecContext *avctx)
x4
->
params
.
analyse
.
i_direct_mv_pred
=
avctx
->
directpred
;
x4
->
params
.
analyse
.
b_weighted_bipred
=
avctx
->
flags2
&
CODEC_FLAG2_WPRED
;
x4
->
params
.
analyse
.
i_weighted_pred
=
avctx
->
weighted_p_pred
;
if
(
avctx
->
me_method
==
ME_EPZS
)
x4
->
params
.
analyse
.
i_me_method
=
X264_ME_DIA
;
...
...
@@ -302,6 +302,8 @@ static av_cold int X264_init(AVCodecContext *avctx)
x4
->
params
.
p_log_private
=
avctx
;
x4
->
params
.
i_log_level
=
X264_LOG_DEBUG
;
OPT_STR
(
"weightp"
,
x4
->
weightp
);
x4
->
params
.
b_intra_refresh
=
avctx
->
flags2
&
CODEC_FLAG2_INTRA_REFRESH
;
x4
->
params
.
rc
.
i_bitrate
=
avctx
->
bit_rate
/
1000
;
x4
->
params
.
rc
.
i_vbv_buffer_size
=
avctx
->
rc_buffer_size
/
1000
;
...
...
@@ -404,6 +406,7 @@ static const AVOption options[] = {
{
"profile"
,
"Set profile restrictions"
,
OFFSET
(
profile
),
FF_OPT_TYPE_STRING
,
0
,
0
,
0
,
VE
},
{
"level"
,
"Specify level (as defined by Annex A)"
,
OFFSET
(
level
),
FF_OPT_TYPE_STRING
,
0
,
0
,
0
,
VE
},
{
"passlogfile"
,
"Filename for 2 pass stats"
,
OFFSET
(
stats
),
FF_OPT_TYPE_STRING
,
0
,
0
,
0
,
VE
},
{
"wpredp"
,
"Weighted prediction for P-frames"
,
OFFSET
(
weightp
),
FF_OPT_TYPE_STRING
,
0
,
0
,
0
,
VE
},
{
NULL
},
};
...
...
libavcodec/options.c
View file @
97dc86b7
...
...
@@ -120,7 +120,6 @@ static const AVOption options[]={
{
"b_qfactor"
,
"qp factor between p and b frames"
,
OFFSET
(
b_quant_factor
),
FF_OPT_TYPE_FLOAT
,
1
.
25
,
-
FLT_MAX
,
FLT_MAX
,
V
|
E
},
{
"rc_strategy"
,
"ratecontrol method"
,
OFFSET
(
rc_strategy
),
FF_OPT_TYPE_INT
,
DEFAULT
,
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"b_strategy"
,
"strategy to choose between I/P/B-frames"
,
OFFSET
(
b_frame_strategy
),
FF_OPT_TYPE_INT
,
0
,
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"wpredp"
,
"weighted prediction analysis method"
,
OFFSET
(
weighted_p_pred
),
FF_OPT_TYPE_INT
,
0
,
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"ps"
,
"rtp payload size in bytes"
,
OFFSET
(
rtp_payload_size
),
FF_OPT_TYPE_INT
,
DEFAULT
,
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"mv_bits"
,
NULL
,
OFFSET
(
mv_bits
),
FF_OPT_TYPE_INT
,
DEFAULT
,
INT_MIN
,
INT_MAX
},
{
"header_bits"
,
NULL
,
OFFSET
(
header_bits
),
FF_OPT_TYPE_INT
,
DEFAULT
,
INT_MIN
,
INT_MAX
},
...
...
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