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
3a78fb57
Commit
3a78fb57
authored
Sep 16, 2011
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libx264: introduce slice-max-size option
Yet another option useful for low latency streaming.
parent
b59efc94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
libx264.c
libavcodec/libx264.c
+5
-0
No files found.
libavcodec/libx264.c
View file @
3a78fb57
...
@@ -64,6 +64,7 @@ typedef struct X264Context {
...
@@ -64,6 +64,7 @@ typedef struct X264Context {
float
cplxblur
;
float
cplxblur
;
char
*
partitions
;
char
*
partitions
;
int
direct_pred
;
int
direct_pred
;
int
slice_max_size
;
}
X264Context
;
}
X264Context
;
static
void
X264_log
(
void
*
p
,
int
level
,
const
char
*
fmt
,
va_list
args
)
static
void
X264_log
(
void
*
p
,
int
level
,
const
char
*
fmt
,
va_list
args
)
...
@@ -390,6 +391,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
...
@@ -390,6 +391,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
if
(
x4
->
direct_pred
>=
0
)
if
(
x4
->
direct_pred
>=
0
)
x4
->
params
.
analyse
.
i_direct_mv_pred
=
x4
->
direct_pred
;
x4
->
params
.
analyse
.
i_direct_mv_pred
=
x4
->
direct_pred
;
if
(
x4
->
slice_max_size
>=
0
)
x4
->
params
.
i_slice_max_size
=
x4
->
slice_max_size
;
if
(
x4
->
fastfirstpass
)
if
(
x4
->
fastfirstpass
)
x264_param_apply_fastfirstpass
(
&
x4
->
params
);
x264_param_apply_fastfirstpass
(
&
x4
->
params
);
...
@@ -496,6 +500,7 @@ static const AVOption options[] = {
...
@@ -496,6 +500,7 @@ static const AVOption options[] = {
{
"spatial"
,
NULL
,
0
,
FF_OPT_TYPE_CONST
,
{
X264_DIRECT_PRED_SPATIAL
},
0
,
0
,
VE
,
"direct-pred"
},
{
"spatial"
,
NULL
,
0
,
FF_OPT_TYPE_CONST
,
{
X264_DIRECT_PRED_SPATIAL
},
0
,
0
,
VE
,
"direct-pred"
},
{
"temporal"
,
NULL
,
0
,
FF_OPT_TYPE_CONST
,
{
X264_DIRECT_PRED_TEMPORAL
},
0
,
0
,
VE
,
"direct-pred"
},
{
"temporal"
,
NULL
,
0
,
FF_OPT_TYPE_CONST
,
{
X264_DIRECT_PRED_TEMPORAL
},
0
,
0
,
VE
,
"direct-pred"
},
{
"auto"
,
NULL
,
0
,
FF_OPT_TYPE_CONST
,
{
X264_DIRECT_PRED_AUTO
},
0
,
0
,
VE
,
"direct-pred"
},
{
"auto"
,
NULL
,
0
,
FF_OPT_TYPE_CONST
,
{
X264_DIRECT_PRED_AUTO
},
0
,
0
,
VE
,
"direct-pred"
},
{
"slice-max-size"
,
"Constant quantization parameter rate control method"
,
OFFSET
(
slice_max_size
),
FF_OPT_TYPE_INT
,
{
-
1
},
-
1
,
INT_MAX
,
VE
},
{
NULL
},
{
NULL
},
};
};
...
...
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