summaryrefslogtreecommitdiff
path: root/recordmydesktop/include
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-11 00:00:24 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-11 00:00:24 +0000
commit663f58eb03ce8bcaa21e751077144faaaf202b32 (patch)
tree3fe34d8e9a9390922015142891fd6b4e79b865c4 /recordmydesktop/include
parentb89af75ae20823839a343b1d877fba7d9d76b640 (diff)
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
Diffstat (limited to 'recordmydesktop/include')
-rw-r--r--recordmydesktop/include/recordmydesktop.h8
1 files changed, 8 insertions, 0 deletions
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
© All Rights Reserved