Debian Codegraph @

prboom2/src/i_capture.h

raw
1 /* Emacs style mode select -*- C -*-
2 *-----------------------------------------------------------------------------
3 *
4 *
5 * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 * based on BOOM, a modified and improved DOOM engine
7 *
8 * Copyright (C) 2011 by
9 * Nicholai Main
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24 * 02111-1307, USA.
25 *
26 * DESCRIPTION:
27 *
28 *---------------------------------------------------------------------
29 */
30
31 #ifndef __I_CAPTURE__
32 #define __I_CAPTURE__
33
34 extern int cap_fps;
35 extern int cap_frac;
36 extern int cap_wipescreen;
37
38 // true if we're capturing video
39 extern int capturing_video;
40
41 // init and open sound, video pipes
42 // fn is filename passed from command line, typically final output file
43 void I_CapturePrep (const char *fn);
44
45 // capture a single frame of video (and corresponding audio length)
46 // and send it to pipes
47 void I_CaptureFrame (void);
48
49 // close pipes, call muxcommand, finalize
50 void I_CaptureFinish (void);
51
52 #endif