Commit 8e503a8e authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Luca Barbato
Browse files

crav1e: api: Add Encoded state

This matches 560c9cd5

.
Signed-off-by: default avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent d1762fe1
......@@ -40,6 +40,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 = -1,
}
......@@ -52,6 +54,7 @@ impl From<Option<rav1e::EncoderStatus>> for EncoderStatus {
rav1e::EncoderStatus::NeedMoreData => EncoderStatus::NeedMoreData,
rav1e::EncoderStatus::EnoughData => EncoderStatus::EnoughData,
rav1e::EncoderStatus::LimitReached => EncoderStatus::LimitReached,
rav1e::EncoderStatus::Encoded => EncoderStatus::Encoded,
rav1e::EncoderStatus::Failure => EncoderStatus::Failure,
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment