ralfbiedert / openh264-rs

Idiomatic Rust wrappers around OpenH264.
66 stars 32 forks source link

Dynamically change resolution #44

Closed lolgesten closed 3 months ago

lolgesten commented 4 months ago

Hi! Thanks for making this nice wrapper!

We got our own wrapper that I'm considering getting rid of in favor of yours, however to do so we need to be able to dynamically change the resolution on the fly. We do this by delaying the initialization (raw_api.initialize_ext) until we see the first frame. And when the frame resolution changes, we call InitializeExt again – a use case openh264 supports.

Would you be open to a PR doing something along these lines?

ralfbiedert commented 4 months ago

Yes absolutely, dynamic resolution support would be great!