Thursday, January 28, 2016
symbian next file compression algorithm problem
Files on symbian system under compression algorithm, I follow the online lzw algorithms compress 10 after several characters on the original c language version of the compression result is not the same, c no problem, who knows how it's going ?
Have posted the following code to see heroes give some advice, thank you
Reply:
Headers
// Copyright (c) 2007, Qt Software. All rights reserved
// Author: Juncofenite.Xu Date: 2007.03 Version: 1.0.0
// CDealData.h: interface for the CDealData class
.// You just add this class to the project
// And the method to use may be:
// CDealData * a = CDealData :: NewL (_L16 ("c: \\ CallInfo \\ tmp \\ test.dat"), _L16 ("c: \\ CallInfo \\ tmp \\ test.lzw"));
// While compress just dispatch the function: a- & gt; Compress ();
// You could change the path at any time. It's easy, just enjoy it!
// If you have any question, you can mail to the author: xujunfeng000@163.com
////////////////////////////////////////////////// ////////////////////
#ifndef __PROJECTNAME_DEALDATA_H__
#define __PROJECTNAME_DEALDATA_H__
#include & lt; e32std.h & gt; // KMaxFileName
#include & lt; e32base.h & gt; // CArrayFixFlat
#include & lt; f32file.h & gt;
#define INIT_BITS 14
#define MAX_BITS 14 / * Do not exceed 14 with this program * /
#define HASHING_SHIFT MAX_BITS - 8
#if MAX_BITS == 14 / * Set the table size. Must be a prime * /
#define TABLE_SIZE 18041 / * number somewhat larger than 2 ^ MAX_BITS. * /
#elif MAX_BITS == 13
#define TABLE_SIZE 9029
#else
#define TABLE_SIZE 5021
No comments:
Post a Comment