Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy B. Terriberry
rav1e
Commits
560c9cd5
Commit
560c9cd5
authored
May 16, 2019
by
Luca Barbato
Committed by
Luca Barbato
May 22, 2019
Browse files
Do not use NeedMoreData to signal that a frame had been encoded
parent
e0961200
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/api.rs
View file @
560c9cd5
...
...
@@ -550,6 +550,8 @@ pub enum EncoderStatus {
/// May be emitted by `Context::receive_packet` after a flush request had been processed
/// or the frame limit had been reached.
LimitReached
,
/// A Frame had been encoded but not emitted yet
Encoded
,
/// Generic fatal error
Failure
,
}
...
...
@@ -894,7 +896,7 @@ impl<T: Pixel> ContextInner<T> {
let
fi
=
fi
.clone
();
self
.finalize_packet
(
rec
,
&
fi
)
}
else
{
Err
(
EncoderStatus
::
NeedMoreData
)
Err
(
EncoderStatus
::
Encoded
)
}
}
else
{
Err
(
EncoderStatus
::
NeedMoreData
)
...
...
src/bin/rav1e.rs
View file @
560c9cd5
...
...
@@ -88,6 +88,7 @@ fn process_frame<T: Pixel, D: Decoder>(
Err
(
EncoderStatus
::
Failure
)
=>
{
panic!
(
"Failed to encode video"
);
}
Err
(
EncoderStatus
::
Encoded
)
=>
{}
}
Some
(
frame_summaries
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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