Struct openh264::Decoder[][src]

pub struct Decoder { /* fields omitted */ }
Expand description

An OpenH264 decoder, converts packets to YUV.

Implementations

Create a decoder with default settings.

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.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.