mirror of
https://dev.lirent.ru/Vatrog/vm-automation-signaling.git
synced 2026-06-26 04:36:37 +03:00
20 lines
672 B
C
20 lines
672 B
C
|
|
/* capture.c — win32 registration of the capture backends into the neutral
|
||
|
|
* capture seam's backend table (data-driven; no per-backend branching). */
|
||
|
|
|
||
|
|
#include "capture.h" /* neutral seam: capture_backend / capture_backends */
|
||
|
|
#include "capture_nvfbc.h"
|
||
|
|
#include "capture_dda.h"
|
||
|
|
#include "capture_gdi.h"
|
||
|
|
|
||
|
|
/* data-driven backend table; main selects by EYES env or first available */
|
||
|
|
static const capture_backend g_backends[] = {
|
||
|
|
{ "nvfbc", nvfbc_start },
|
||
|
|
{ "dda", dda_start },
|
||
|
|
{ "gdi", gdi_start },
|
||
|
|
};
|
||
|
|
|
||
|
|
const capture_backend* capture_backends(int* count) {
|
||
|
|
*count = (int)(sizeof g_backends / sizeof g_backends[0]);
|
||
|
|
return g_backends;
|
||
|
|
}
|