-
Notifications
You must be signed in to change notification settings - Fork 2
/
ICapture.h
46 lines (34 loc) · 1.36 KB
/
ICapture.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Copyright (C) 2002 Quake done Quick
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Supposed to be a general enough interface to audio/video capture
// that extending support to new forms of capture will not require
// much refactoring.
//
// (Currently only support for AVI on Win32 is implemented.)
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __Q_ICAPTURE__
#define __Q_ICAPTURE__
extern char Capture_DOTEXTENSION[5];
void Capture_Open(char* filename, char* codec, float fps, int audio_hz);
int Capture_WriteVideo(int width, int height, unsigned char* rgba_pixel_buffer);
int Capture_WriteAudio(int samples, unsigned char* stereo_16bit_sample_buffer);
int Capture_IsRecording();
void Capture_Close();
#endif
#ifdef __cplusplus
}
#endif