mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-06 09:07:05 +00:00
Add SDL Video Capture, with back-end for linux/macos/ios/android
This commit is contained in:
@@ -923,6 +923,22 @@ SDL3_0.0.0 {
|
||||
SDL_SetPropertyWithCleanup;
|
||||
SDL_SetX11EventHook;
|
||||
SDL_GetGlobalProperties;
|
||||
SDL_OpenVideoCapture;
|
||||
SDL_SetVideoCaptureSpec;
|
||||
SDL_OpenVideoCaptureWithSpec;
|
||||
SDL_GetVideoCaptureDeviceName;
|
||||
SDL_GetVideoCaptureSpec;
|
||||
SDL_GetVideoCaptureFormat;
|
||||
SDL_GetNumVideoCaptureFormats;
|
||||
SDL_GetVideoCaptureFrameSize;
|
||||
SDL_GetNumVideoCaptureFrameSizes;
|
||||
SDL_GetVideoCaptureStatus;
|
||||
SDL_StartVideoCapture;
|
||||
SDL_AcquireVideoCaptureFrame;
|
||||
SDL_ReleaseVideoCaptureFrame;
|
||||
SDL_StopVideoCapture;
|
||||
SDL_CloseVideoCapture;
|
||||
SDL_GetVideoCaptureDevices;
|
||||
# extra symbols go here (don't modify this line)
|
||||
local: *;
|
||||
};
|
||||
|
||||
@@ -948,3 +948,19 @@
|
||||
#define SDL_SetPropertyWithCleanup SDL_SetPropertyWithCleanup_REAL
|
||||
#define SDL_SetX11EventHook SDL_SetX11EventHook_REAL
|
||||
#define SDL_GetGlobalProperties SDL_GetGlobalProperties_REAL
|
||||
#define SDL_OpenVideoCapture SDL_OpenVideoCapture_REAL
|
||||
#define SDL_SetVideoCaptureSpec SDL_SetVideoCaptureSpec_REAL
|
||||
#define SDL_OpenVideoCaptureWithSpec SDL_OpenVideoCaptureWithSpec_REAL
|
||||
#define SDL_GetVideoCaptureDeviceName SDL_GetVideoCaptureDeviceName_REAL
|
||||
#define SDL_GetVideoCaptureSpec SDL_GetVideoCaptureSpec_REAL
|
||||
#define SDL_GetVideoCaptureFormat SDL_GetVideoCaptureFormat_REAL
|
||||
#define SDL_GetNumVideoCaptureFormats SDL_GetNumVideoCaptureFormats_REAL
|
||||
#define SDL_GetVideoCaptureFrameSize SDL_GetVideoCaptureFrameSize_REAL
|
||||
#define SDL_GetNumVideoCaptureFrameSizes SDL_GetNumVideoCaptureFrameSizes_REAL
|
||||
#define SDL_GetVideoCaptureStatus SDL_GetVideoCaptureStatus_REAL
|
||||
#define SDL_StartVideoCapture SDL_StartVideoCapture_REAL
|
||||
#define SDL_AcquireVideoCaptureFrame SDL_AcquireVideoCaptureFrame_REAL
|
||||
#define SDL_ReleaseVideoCaptureFrame SDL_ReleaseVideoCaptureFrame_REAL
|
||||
#define SDL_StopVideoCapture SDL_StopVideoCapture_REAL
|
||||
#define SDL_CloseVideoCapture SDL_CloseVideoCapture_REAL
|
||||
#define SDL_GetVideoCaptureDevices SDL_GetVideoCaptureDevices_REAL
|
||||
|
||||
@@ -981,3 +981,19 @@ SDL_DYNAPI_PROC(SDL_PropertiesID,SDL_GetDisplayProperties,(SDL_DisplayID a),(a),
|
||||
SDL_DYNAPI_PROC(int,SDL_SetPropertyWithCleanup,(SDL_PropertiesID a, const char *b, void *c, void (SDLCALL *d)(void *userdata, void *value), void *e),(a,b,c,d,e),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_SetX11EventHook,(SDL_X11EventHook a, void *b),(a,b),)
|
||||
SDL_DYNAPI_PROC(SDL_PropertiesID,SDL_GetGlobalProperties,(void),(),return)
|
||||
SDL_DYNAPI_PROC(SDL_VideoCaptureDevice*,SDL_OpenVideoCapture,(SDL_VideoCaptureDeviceID a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_SetVideoCaptureSpec,(SDL_VideoCaptureDevice *a, const SDL_VideoCaptureSpec *b, SDL_VideoCaptureSpec *c, int d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(SDL_VideoCaptureDevice*,SDL_OpenVideoCaptureWithSpec,(SDL_VideoCaptureDeviceID a, const SDL_VideoCaptureSpec *b, SDL_VideoCaptureSpec *c, int d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetVideoCaptureDeviceName,(SDL_VideoCaptureDeviceID a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetVideoCaptureSpec,(SDL_VideoCaptureDevice *a, SDL_VideoCaptureSpec *b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetVideoCaptureFormat,(SDL_VideoCaptureDevice *a, int b, Uint32 *c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumVideoCaptureFormats,(SDL_VideoCaptureDevice *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetVideoCaptureFrameSize,(SDL_VideoCaptureDevice *a, Uint32 b, int c, int *d, int *e),(a,b,c,d,e),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumVideoCaptureFrameSizes,(SDL_VideoCaptureDevice *a, Uint32 b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(SDL_VideoCaptureStatus,SDL_GetVideoCaptureStatus,(SDL_VideoCaptureDevice *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_StartVideoCapture,(SDL_VideoCaptureDevice *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_AcquireVideoCaptureFrame,(SDL_VideoCaptureDevice *a, SDL_VideoCaptureFrame *b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_ReleaseVideoCaptureFrame,(SDL_VideoCaptureDevice *a, SDL_VideoCaptureFrame *b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_StopVideoCapture,(SDL_VideoCaptureDevice *a),(a),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_CloseVideoCapture,(SDL_VideoCaptureDevice *a),(a),)
|
||||
SDL_DYNAPI_PROC(SDL_VideoCaptureDeviceID*,SDL_GetVideoCaptureDevices,(int *a),(a),return)
|
||||
|
||||
Reference in New Issue
Block a user