diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-26 01:45:04 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-26 01:45:04 +0000 |
commit | 3370b5318c1845704ae95f1d919a37bb881f52f9 (patch) | |
tree | d66c14908d44b7ad404abbaf5b70bc8726a80b4d /rMD-exp/src/cache_frame.c | |
parent | ba11f851311f9f92f92fcd8148a8f621b736e979 (diff) |
cache initialization, image flushing
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@115 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'rMD-exp/src/cache_frame.c')
-rw-r--r-- | rMD-exp/src/cache_frame.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rMD-exp/src/cache_frame.c b/rMD-exp/src/cache_frame.c index 6b214e0..6f97723 100644 --- a/rMD-exp/src/cache_frame.c +++ b/rMD-exp/src/cache_frame.c @@ -25,7 +25,8 @@ **********************************************************************************/ #include <recordmydesktop.h> -#include <zlib.h> + + void MakeChecksums(unsigned char *buf,int width,int height,int divisor,unsigned short int *checksums){ int i,k,j,m; @@ -60,8 +61,8 @@ void *CacheImageBuffer(void *pdata){ pthread_mutex_init(&pmut,NULL); pthread_mutex_init(&imut,NULL); yuv_buffer yuv[2]; - gzFile *fp; - fp=gzopen("temp.out","wb1f"); + gzFile *fp=((ProgData *)pdata)->cache_data->ifp; + if(fp==NULL)exit(13); unsigned short int checksums_y[2][256], |