Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
3e9af0fb
Commit
3e9af0fb
authored
Jun 30, 2010
by
John Koleszar
Committed by
Code Review
Jun 30, 2010
Browse files
Options
Browse Files
Download
Plain Diff
Merge "ivfenc: correct fixed kf interval, --disable-kf"
parents
63ffc1ae
b1e36f28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ivfenc.c
ivfenc.c
+5
-4
No files found.
ivfenc.c
View file @
3e9af0fb
...
...
@@ -505,9 +505,11 @@ static const arg_def_t kf_min_dist = ARG_DEF(NULL, "kf-min-dist", 1,
"Minimum keyframe interval (frames)"
);
static
const
arg_def_t
kf_max_dist
=
ARG_DEF
(
NULL
,
"kf-max-dist"
,
1
,
"Maximum keyframe interval (frames)"
);
static
const
arg_def_t
kf_disabled
=
ARG_DEF
(
NULL
,
"disable-kf"
,
0
,
"Disable keyframe placement"
);
static
const
arg_def_t
*
kf_args
[]
=
{
&
kf_min_dist
,
&
kf_max_dist
,
NULL
&
kf_min_dist
,
&
kf_max_dist
,
&
kf_disabled
,
NULL
};
...
...
@@ -800,6 +802,8 @@ int main(int argc, const char **argv_)
cfg
.
kf_min_dist
=
arg_parse_uint
(
&
arg
);
else
if
(
arg_match
(
&
arg
,
&
kf_max_dist
,
argi
))
cfg
.
kf_max_dist
=
arg_parse_uint
(
&
arg
);
else
if
(
arg_match
(
&
arg
,
&
kf_disabled
,
argi
))
cfg
.
kf_mode
=
VPX_KF_DISABLED
;
else
argj
++
;
}
...
...
@@ -1016,9 +1020,6 @@ int main(int argc, const char **argv_)
/* Construct Encoder Context */
if
(
cfg
.
kf_min_dist
==
cfg
.
kf_max_dist
)
cfg
.
kf_mode
=
VPX_KF_FIXED
;
vpx_codec_enc_init
(
&
encoder
,
codec
->
iface
,
&
cfg
,
show_psnr
?
VPX_CODEC_USE_PSNR
:
0
);
ctx_exit_on_error
(
&
encoder
,
"Failed to initialize encoder"
);
...
...
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