summaryrefslogtreecommitdiff
path: root/src/renderer/tr_cmds.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-01-05 04:00:54 +0000
committerTim Angus <tim@ngus.net>2006-01-05 04:00:54 +0000
commit4e6ae21de9bc373801b68a28b66067480bda4288 (patch)
tree0ffa6b987d2ca06daacc7abffe453a4336b3b6da /src/renderer/tr_cmds.c
parent436df98d2345c4caee3f415e75f009f96ef77697 (diff)
* Merged ioq3-460
- avi exporter - cl_autoRecordDemo - .asm dependencies
Diffstat (limited to 'src/renderer/tr_cmds.c')
-rw-r--r--src/renderer/tr_cmds.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/renderer/tr_cmds.c b/src/renderer/tr_cmds.c
index bbcf6385..d637aec0 100644
--- a/src/renderer/tr_cmds.c
+++ b/src/renderer/tr_cmds.c
@@ -446,3 +446,30 @@ void RE_EndFrame( int *frontEndMsec, int *backEndMsec ) {
backEnd.pc.msec = 0;
}
+/*
+=============
+RE_TakeVideoFrame
+=============
+*/
+void RE_TakeVideoFrame( int width, int height,
+ byte *captureBuffer, byte *encodeBuffer, qboolean motionJpeg )
+{
+ videoFrameCommand_t *cmd;
+
+ if( !tr.registered ) {
+ return;
+ }
+
+ cmd = R_GetCommandBuffer( sizeof( *cmd ) );
+ if( !cmd ) {
+ return;
+ }
+
+ cmd->commandId = RC_VIDEOFRAME;
+
+ cmd->width = width;
+ cmd->height = height;
+ cmd->captureBuffer = captureBuffer;
+ cmd->encodeBuffer = encodeBuffer;
+ cmd->motionJpeg = motionJpeg;
+}