Refactor nvfbc into abstract capture api

This commit is contained in:
dec05eba
2022-10-14 01:16:31 +02:00
parent 9d65552d05
commit 93d46b9767
11 changed files with 525 additions and 306 deletions

17
src/capture/capture.c Normal file
View File

@@ -0,0 +1,17 @@
#include "../../include/capture/capture.h"
int gsr_capture_start(gsr_capture *cap) {
return cap->start(cap);
}
void gsr_capture_stop(gsr_capture *cap) {
cap->stop(cap);
}
int gsr_capture_capture(gsr_capture *cap, AVFrame *frame) {
return cap->capture(cap, frame);
}
void gsr_capture_destroy(gsr_capture *cap) {
cap->destroy(cap);
}