From 663f58eb03ce8bcaa21e751077144faaaf202b32 Mon Sep 17 00:00:00 2001 From: iovar Date: Sat, 11 Nov 2006 00:00:24 +0000 Subject: Cache files are now broken on 500mb parts, measured always as uncomressed bytes as gzwrite returns them, in order to avoid gzlib 2 gb file size limit. CacheFileN,SwapCacheFilesWrite,SwapCacheFilesRead functions have been added to achieve this without messing with normal operation(i.e. the rest of the program keeps operating on the same file pointer). Also PurgeCache function has been added to separate the task from encoding itself. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@160 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/include/recordmydesktop.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'recordmydesktop/include/recordmydesktop.h') diff --git a/recordmydesktop/include/recordmydesktop.h b/recordmydesktop/include/recordmydesktop.h index 5f2a1f0..e9f27b1 100644 --- a/recordmydesktop/include/recordmydesktop.h +++ b/recordmydesktop/include/recordmydesktop.h @@ -89,6 +89,9 @@ #error Only little-endian and big-endian systems are supported #endif +//500 mb file size +#define CACHE_FILE_SIZE_LIMIT (500*1<<20) + //do not be confused //this is useless and obsolete. @@ -713,6 +716,7 @@ int capture_busy, /**Function prototypes*/ +/** TODO document all the functions*/ void *PollDamage(void *pdata); void *GetFrame(void *pdata); void *EncodeImageBuffer(void *pdata); @@ -743,5 +747,9 @@ void SyncEncodeImageBuffer(ProgData *pdata); void CancelTimer(void); void SyncEncodeSoundBuffer(ProgData *pdata,signed char *buff); char *rmdWMCheck(Display *dpy,Window root); +void CacheFileN(char *name,char **newname,int n); +int SwapCacheFilesWrite(char *name,int n,gzFile **fp,FILE **ucfp); +int SwapCacheFilesRead(char *name,int n,gzFile **fp,FILE **ucfp); +int PurgeCache(CacheData *cache_data_t,int sound); #endif -- cgit v1.2.1