Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rav1e-import-test
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
87
Issues
87
List
Boards
Labels
Milestones
Merge Requests
19
Merge Requests
19
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
Marvin Scholz
rav1e-import-test
Commits
f1c43dbd
Commit
f1c43dbd
authored
Apr 22, 2019
by
Thomas Daede
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse code for first keyframe and all other keyframes.
parent
c83f7cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
src/api.rs
src/api.rs
+6
-8
No files found.
src/api.rs
View file @
f1c43dbd
...
...
@@ -713,21 +713,19 @@ impl<T: Pixel> ContextInner<T> {
}
fn
build_frame_properties
(
&
mut
self
,
idx
:
u64
)
->
Result
<
(
FrameInvariants
<
T
>
,
bool
),
EncoderStatus
>
{
if
idx
==
0
{
let
mut
fi
=
if
idx
==
0
{
let
seq
=
Sequence
::
new
(
&
self
.config
);
// The first frame will always be a key frame
let
fi
=
FrameInvariants
::
new_key_frame
(
FrameInvariants
::
new_key_frame
(
&
FrameInvariants
::
new
(
self
.config
.clone
(),
seq
),
0
);
return
Ok
((
fi
,
true
));
}
let
mut
fi
=
self
.frame_invariants
[
&
(
idx
-
1
)]
.clone
();
)
}
else
{
self
.frame_invariants
[
&
(
idx
-
1
)]
.clone
()
};
// Initially set up the frame as an inter frame.
// We need to determine what the frame number is before we can
...
...
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