Add -fm 'content' option to match fps to captured content, only x11 window capture currently supported

This commit is contained in:
dec05eba
2024-06-21 22:18:23 +02:00
parent 4bfb095f8d
commit ab78e56872
12 changed files with 214 additions and 41 deletions

View File

@@ -21,6 +21,7 @@ struct gsr_capture {
/* These methods should not be called manually. Call gsr_capture_* instead */
int (*start)(gsr_capture *cap, AVCodecContext *video_codec_context, AVFrame *frame);
void (*tick)(gsr_capture *cap, AVCodecContext *video_codec_context); /* can be NULL */
bool (*consume_damage)(gsr_capture *cap); /* can be NULL */
bool (*should_stop)(gsr_capture *cap, bool *err); /* can be NULL */
int (*capture)(gsr_capture *cap, AVFrame *frame);
void (*capture_end)(gsr_capture *cap, AVFrame *frame); /* can be NULL */