Questions tagged [lossless-compression]

Lossless data compression is a class of data compression algorithms that allows the original data to be perfectly reconstructed from the compressed data.

Lossless data compression is used in many applications. For example, it is used in the ZIP file format and in the GNU tool gzip. It is also often used as a component within lossy data compression technologies (e.g. lossless mid/side joint stereo preprocessing by the LAME MP3 encoder and other lossy audio encoders).

220 questions
-1
votes
2 answers

Image processing with lossy compression

If we compare image procesing of the losslessly compressed images with the image processing of the lossy compressed images, does the latter provide the results comparable to the former one. I am asking this question because the images prodiced by…
Xolve
  • 22,298
  • 21
  • 77
  • 125
-2
votes
0 answers

change audio part from mkv video file to flac audio file without losing quality

how could I write a Linux command to manipulate ffmpeg to change audio part from mkv video file to flac audio file without losing quality? I use following command and I found that the size of audio file is almost the same as video file. ffmpeg -i…
-2
votes
1 answer

decompress a doc file using LZS algorithm

https://github.com/sgherro/Exercises-cpp/blob/89bbd78eeac9666ed20f083ebf116e693a8c23ce/Lempel-Ziv-Stac/main.cpp I am using this algorithm to decompress my doc file but it only decompress the partial file data not fully decompress can anyone help me…
user123
  • 1
  • 2
-2
votes
1 answer

How to record video with exact frames timestamp in c++

I would like to record frames from a camera in c++. The camera frame-rate is not constant, and I need to store each image with its timestamp (I am using OS clock, and storing the image milliseconds precision). I have already stored the captured…
taihu
  • 72
  • 1
  • 7
-2
votes
1 answer

What is the best lossless compression algorithm for random data

I need to compress a random stream data like [25,94,182,3,254, ...]. The number of data are close to 4 million. I currently only get 1.4x ratio by Huffman code. The LZW algorithm I tried is take too much time to compress. I hope to find out an…
Vincent 炜森
  • 109
  • 1
  • 2
  • 7
-3
votes
2 answers

Choosing compression algorithm with highest compression ratio

I'm looking for a compression algorithm that: must be loseless must have very high compression ratio must be supported in browser via JavaScript libs or natively shouldn't be fast. Goals: to compress dense array of 8 million double-precision…
-3
votes
2 answers

Bounds check - out of bounds

I'm in need of a little debugging. The code is 100% compile-ready. However, it crashes if given either a small fragment of a document to compress, and when it decompresses it gives a error about bounds checking. I'm a little afraid of running it as…
thexiv
  • 27
  • 9
-3
votes
1 answer

Compression or encrypt data

I have two bytes and I want to compress them into a single byte using a key( key length can be up to 64 bits). And further I want to be able to retrieve the two bytes by using the compressed byte and the same key. Someone has an idea how to do…
-3
votes
1 answer

Trouble in writing the predictive rule #5 in java code

I am in the process of writing code to build an algorithm for the JPEG predictive rule #5 which states: I'[i,j] = I[i, j-1] + I[[i-1, j] + I[i-1, j-1]]/2 I have previously built an algorithm that satisfies the condition of rule #4 and the line of…
-4
votes
3 answers

What is the best way to compress a sequence of about 2 millions numbers (value range is from 1-->28)

I am trying to compress a list of integer numbers, where: There is no negative number. The value range of items is from [1....28] There are totally 2482113 items in the list. Currently I'm using 5 bits to store each number. The "appearing"…
UenX
  • 162
  • 10
1 2 3
14
15