From 4e6ae21de9bc373801b68a28b66067480bda4288 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 5 Jan 2006 04:00:54 +0000 Subject: * Merged ioq3-460 - avi exporter - cl_autoRecordDemo - .asm dependencies --- src/renderer/tr_cmds.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/renderer/tr_cmds.c') 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; +} -- cgit