diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-27 15:19:15 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-27 15:19:15 +0000 |
commit | 29d2e46787bee6bc3a951734d40a215088d58692 (patch) | |
tree | ee86c41aec5a5d762f06e08149e8086f2d569c6f /rMD-exp/src/cache_frame.c | |
parent | 1849f72f524948dddc02e530f7bfaa108a107ef1 (diff) |
image cache loading ,almost fuctional
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@123 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'rMD-exp/src/cache_frame.c')
-rw-r--r-- | rMD-exp/src/cache_frame.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rMD-exp/src/cache_frame.c b/rMD-exp/src/cache_frame.c index 8a1e0ca..c83b54b 100644 --- a/rMD-exp/src/cache_frame.c +++ b/rMD-exp/src/cache_frame.c @@ -150,13 +150,14 @@ void *CacheImageBuffer(void *pdata){ gzsetparams (fp,1,Z_FILTERED); else gzsetparams (fp,0,Z_FILTERED); + strncpy(fheader.frame_prefix,"FRAM",4); fheader.frameno=++frameno; fheader.current_total=frames_total; fheader.Ynum=ynum; fheader.Unum=unum; fheader.Vnum=vnum; fheader.pad=0; - gzwrite(fp,(void*)&fheader,16); + gzwrite(fp,(void*)&fheader,sizeof(FrameHeader)); //flush indexes if(ynum)gzwrite(fp,yblocks,ynum); if(unum)gzwrite(fp,ublocks,unum); @@ -189,7 +190,7 @@ void *CacheImageBuffer(void *pdata){ free(yuv[i].u); free(yuv[i].v); } -// fprintf(stderr,"Saved %d frames in a total of %d requests",frameno,frames_total); + fprintf(stderr,"Saved %d frames in a total of %d requests",frameno,frames_total); gzclose(fp); pthread_exit(&errno); } |