Create a program that reads a .wav files, and then compress the file losslessly using the basic Huffman coding and the LZW coding, respectively (treating every sample as a symbol).Your program should...

Create a program that reads a .wav files, and then compress the file losslessly using the basic Huffman coding and the LZW coding, respectively (treating every sample as a symbol).Your program should first show an “open file” dialog box for loading the wave file. We assume that the audio file is PCM coded and mono, and the total number of samples will be an even number less than 65536. You can’t call any existing library function that automatically interpret the .wav file; rather, your program should interpret the file byte by byte according to the .wav format. Your program should then compress the file and display the compression ratios. Only the compression ratios for Huffman and LZW are to be displayed, no others.You should submit an executable file of your program and your source code. Coding with QT Creator is preferred.


Create a program that reads a .wav files, and then compress the file losslessly using the basic Huffman coding and the LZW coding, respectively (treating every sample as a symbol). Your program should first show an “open file” dialog box for loading the wave file. We assume that the audio file is PCM coded and mono, and the total number of samples will be an even number less than 65536. You can’t call any existing library function that automatically interpret the .wav file; rather, your program should interpret the file byte by byte according to the .wav format. Your program should then compress the file and display the compression ratios. Only the compression ratios for Huffman and LZW are to be displayed, no others. You should submit an executable file of your program and your source code. Coding with QT Creator is preferred.
Aug 01, 2021
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here