raymanfx / libv4l-rs

Video4Linux2 bindings for Rust
MIT License
155 stars 65 forks source link

Enhance capture_device example with enum_frames, and add helper method. #25

Closed mijoharas closed 3 years ago

mijoharas commented 3 years ago

Hey, I didn't see an example on using the enum_* methods, and thought it could be handy.

I added it to an existing example, let me know if that's convenient or not. I also threw in a helper method in case people want to get a discrete vec of their stepwise resolutions (NOTE: I don't have a device with stepwise resolutions, so I technically haven't tested that one, but it's pretty straightforward).

Let me know what you think.

raymanfx commented 3 years ago

Pushed everything into next, let me know what you think.

mijoharas commented 3 years ago

Just looked at next, and looks great! Should I close this PR?

raymanfx commented 3 years ago

Awesome. Yeah, let's close this one.