openh264 0.9.3

Idiomatic bindings for OpenH264.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use openh264::OpenH264API;
use openh264::decoder::Decoder;
use openh264::encoder::{Encoder, EncoderConfig};

fn is_send_sync(_: impl Send + Sync + 'static) {}

#[test]
#[cfg(feature = "source")]
fn decoder_encoder_are_send_sync() {
    is_send_sync(Decoder::new());
    is_send_sync(Encoder::with_api_config(OpenH264API::from_source(), EncoderConfig::default()));
}