-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple User API #410
Comments
Since @atomnuker has a strong opinion regarding having a separate pub fn send_frame(&mut self, frame: F)
where F: Into<Option<Arc<Frame>>>) -> Result<(), EncoderStatus> {
// ...
self.q.push_back(frame.into());
// ...
} You can pass either Usage example in the playground |
Watercooler feedback: do not make the libaom mistakes, muxing information should be available TODO:
|
Additional Request: Provide a mean to configure the encoder through a string (possibly having the same structure of x264 and x265).
|
@robUx4 would you expand what you'd like to have from the encoder here regarding this issue ? |
An encoder should provide the structure in the CodecPrivate https://github.com/Matroska-Org/matroska-specification/blob/master/codec/av1.md#codecprivate-1 |
The api landed last August, this issues can be closed (and we can discuss later if we want to extend the API) |
Status
API:
Config
struct with all the configuration itemsFromStr
to parse a x264-like stringDisplay
to produce a x264-like stringparse_option(o: &str)
to update the configuration using a x264-likekey:value
stringnew_context() -> Context
Context
: opaque struct embedding the existing FrameInvariants, Sequencenew_frame() -> Arc<Frame>
receive_obu_header() -> Vec<u8>
send_frame(frame: Arc<Frame>)
/receive_packet() -> Packet
Usage:
cli
toolsdecode_tests
Main ideas
Single Context
In the future
Config
follow the builder pattern.Frame allocator
Frame
In the future
Send/Receive/Flush model
In the future
Future
-based API on top of this.The text was updated successfully, but these errors were encountered: