Romain Vimont 265a15e0b1 Accept float values for --max-fps
Android accepts a float value, there is no reason to limit the option
to be an integer.

In particular, it allows to capture at a rate lower than 1 fps. For
example, to capture 1 frame every 5 seconds:

    scrcpy --video-source=camera --max-fps=0.2

It was already possible to pass a float manually:

    scrcpy --video-source=camera \
        --video-codec-options=max-fps-to-encoder:float=0.2

But accepting a float directly for --max-fps is more convenient.

Refs <https://developer.android.com/reference/android/media/MediaFormat#KEY_MAX_FPS_TO_ENCODER>
2024-09-13 22:02:25 +02:00
..
2021-11-23 21:15:05 +01:00
2024-05-30 15:56:37 +02:00
2023-03-10 22:22:15 +01:00
2023-03-10 22:22:15 +01:00
2021-11-24 22:06:49 +01:00
2021-11-12 22:44:37 +01:00
2021-11-24 22:06:49 +01:00
2023-03-10 22:22:15 +01:00
2023-03-10 22:22:15 +01:00
2022-08-17 16:40:45 +02:00
2022-08-17 16:40:45 +02:00
2023-02-27 20:51:54 +01:00
2022-08-17 16:40:45 +02:00
2021-12-09 21:32:11 +01:00
2022-02-09 09:53:19 +01:00
2023-01-27 19:26:19 +01:00
2023-01-27 19:26:19 +01:00
2024-09-13 22:02:25 +02:00
2024-09-13 22:02:25 +02:00
2021-11-24 22:06:49 +01:00
2021-11-11 14:55:52 +01:00
2021-11-11 15:22:39 +01:00
2021-11-11 15:22:39 +01:00
2023-03-10 22:22:16 +01:00
2023-03-10 22:22:16 +01:00
2021-12-08 23:45:45 +01:00
2021-12-08 23:45:45 +01:00
2023-06-10 16:04:51 +02:00
2023-06-10 16:04:51 +02:00
2023-10-24 23:12:36 +02:00
2023-03-10 22:22:15 +01:00