Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Where is the best place to start working with data compression in c++.I want to compress data on
two endpoints on one endpoint i want to compress data and on other i want decompress.
Please help me.
Posted 21-Mar-13 5:50am
Comments
enhzflep at 22-Mar-13 0:21am
   
zlib
Wrapping the c functions into your own class is a solution I've used in the past.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

There are two things here, working with data compression and working with C++.
 
To crack data compression you'll nee to understand the mathematics and algorithms at least reasonably well from a theoretical point of view, in other words on paper. A quick search tells me I might start somewhere like here[^].
 
Assuming you've nailed data compression theory the next part is C++. You'll need data structures and I/O that match the kind of data you're working with, and in particular the ammount of data you're working with. Compressing a single JPEG image into the smallest possible space using tens of billions of cycles to do fractal compression is a very different ball game from compressing live HD video in real time, i.e 30+ frames per second.
 
Given that you're not likely to want to do everything from scratch the first time you might look into some exisitng frameworks like ACE for high speed comms or GStreamer or Microsoft Media Foundation for building a video pipeline and then add your compression/decompression as a new plugin or layer.
 
The rest is going to be down to practised C++ technique and the details of your specification. I wish you luck.
  Permalink  
Comments
enhzflep at 22-Mar-13 0:21am
   

Oops! Intended for op.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I used this one for my C++ projects:
Zip Utils - clean, elegant, simple, C++/Win32[^]
 
-Saurabh
  Permalink  
Comments
Alamgirable at 21-Mar-13 11:02am
   
Is it possible to compress data by working with binaries?
Saurabh.Garg at 21-Mar-13 11:07am
   
What do you mean by binaries? Do you want a compiled library and just use it? The project I linked contains two files only: one for compressing and one for uncompressing.
 
-Saurabh

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 319
2 CPallini 275
3 DamithSL 214
4 Maciej Los 185
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 21 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100