mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-07 15:19:55 +09:00
Refactor nvfbc into abstract capture api
This commit is contained in:
17
src/capture/capture.c
Normal file
17
src/capture/capture.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user