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_local.h | |
parent | 436df98d2345c4caee3f415e75f009f96ef77697 (diff) |
* Merged ioq3-460
- avi exporter
- cl_autoRecordDemo
- .asm dependencies
Diffstat (limited to 'src/renderer/tr_local.h')
-rw-r--r-- | src/renderer/tr_local.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/renderer/tr_local.h b/src/renderer/tr_local.h index 4119efac..7efed35d 100644 --- a/src/renderer/tr_local.h +++ b/src/renderer/tr_local.h @@ -1216,6 +1216,7 @@ skin_t *R_GetSkinByHandle( qhandle_t hSkin ); int R_ComputeLOD( trRefEntity_t *ent ); +const void *RB_TakeVideoFrameCmd( const void *data ); // // tr_shader.c @@ -1580,6 +1581,15 @@ typedef struct { qboolean jpeg; } screenshotCommand_t; +typedef struct { + int commandId; + int width; + int height; + byte *captureBuffer; + byte *encodeBuffer; + qboolean motionJpeg; +} videoFrameCommand_t; + typedef enum { RC_END_OF_LIST, RC_SET_COLOR, @@ -1587,7 +1597,8 @@ typedef enum { RC_DRAW_SURFS, RC_DRAW_BUFFER, RC_SWAP_BUFFERS, - RC_SCREENSHOT + RC_SCREENSHOT, + RC_VIDEOFRAME } renderCommand_t; @@ -1636,6 +1647,11 @@ void RE_StretchPic ( float x, float y, float w, float h, void RE_BeginFrame( stereoFrame_t stereoFrame ); void RE_EndFrame( int *frontEndMsec, int *backEndMsec ); void SaveJPG(char * filename, int quality, int image_width, int image_height, unsigned char *image_buffer); +int SaveJPGToBuffer( byte *buffer, int quality, + int image_width, int image_height, + byte *image_buffer ); +void RE_TakeVideoFrame( int width, int height, + byte *captureBuffer, byte *encodeBuffer, qboolean motionJpeg ); // font stuff void R_InitFreeType( void ); |