diff options
author | Tim Angus <tim@ngus.net> | 2006-01-05 04:00:54 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-01-05 04:00:54 +0000 |
commit | 4e6ae21de9bc373801b68a28b66067480bda4288 (patch) | |
tree | 0ffa6b987d2ca06daacc7abffe453a4336b3b6da /src/renderer/tr_cmds.c | |
parent | 436df98d2345c4caee3f415e75f009f96ef77697 (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.c | 27 |
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; +} |