Closed MV10 closed 3 years ago
Yeah that's native MMAL you're seeing there, I've just used the struct type that's marshalled through to represent framerate but yes I agree that this can be improved. It would need to be a double
as the new camera module can support a framerate as low as 0.005.
I'll look at adding this in for v0.7.
Setting FPS with
MMAL_RATIONAL_T
seemed weird when I was getting started with the library. I'm not a photography / camera guy, is the need for fractions commonplace or is that just native MMAL peeking through?Since I'm getting involved with v0.7 and the 0.6
VideoFramerate
code has to change toFramerate
anyway, maybe 0.7 uses a regularint
for Framerate and internally converts toMMAL_RATIONAL_T
? Or if fractions really are commonly used, perhaps aFramerate.FPS(int)
static helper class?