Struct openh264::Decoder [−][src]
pub struct Decoder { /* fields omitted */ }
Expand description
An OpenH264 decoder, converts packets to YUV.
Implementations
Create a decoder with the provided configuration.
Decodes a complete H.264 bitstream and returns the latest picture.
This function can be called with:
- only a complete SPS / PPS header (usually the first some 30 bytes of a H.264 stream)
- the headers and series of complete frames
- new frames after previous headers and frames were successfully decoded.
In each case, it will return the decoded image in YUV format.
Errors
The function returns and error if any of the packets is incomplete, e.g., was truncated.