Throttle IDR frames: max once every 100 frames

This commit is contained in:
Patrick Nicolas
2024-04-30 12:25:15 +02:00
parent b526c98683
commit ee8babf08a
2 changed files with 19 additions and 1 deletions
+2
View File
@@ -60,6 +60,7 @@ private:
clock_offset clock;
std::atomic_bool sync_needed = true;
uint64_t last_idr_frame;
std::ofstream video_dump;
@@ -72,6 +73,7 @@ public:
int input_height,
float fps);
VideoEncoder();
virtual ~VideoEncoder() = default;
// called on present to submit command buffers for the image.