Questions tagged [lzw]

LZW (Lempel-Ziv-Welch) is a compression algorithm which supersedes LZ78.

LZW (Lempel-Ziv-Welch) is a compression algorithm which supersedes LZ78.

You can find more information about LZW on Wikipedia.

185 questions
0
votes
1 answer

iText: Error extracting images -- getting NullPointerException in LZWDecoder

I am using iText v5.4.2. I am trying to parse images from a PDF file. I get NullPointerException for certain images in certain PDF files. The PDF file with one "faulty" image can be downloaded here:…
Maksim Sorokin
  • 2,334
  • 3
  • 34
  • 61
0
votes
1 answer

LZW decoding miss the first code entry

I followed the Rosetta Java code implementation. I tried do this LZW coding with my own Dictionary and not with the ASCII Dictionary which was used. When I try with my own Dictioanry there is a problem about decoding... The result is wrong, because…
blaces
  • 497
  • 3
  • 10
  • 24
0
votes
1 answer

PERL LZW compression with output codes are 9 bits long

From the Page : http://www.verypdf.com/document/pdf-format-reference/pg_0072.htm I am trying use the same details to compress and decompress , it not working any perl modules (LZW) Source ASCII codes : 45 45 45 45 45 65 45 45 45 66 Current Output…
Tree
  • 9,532
  • 24
  • 64
  • 83
0
votes
1 answer

Array of variable length strings for lzw compression

Right here is the function itself. I'm having a segfault in there because apparently I'm unable to assign the string to that value in the array. clang/gcc both give me a warning. Clang's is a bit better which is "expecting char assigning char *". I…
133794m3r
  • 5,028
  • 3
  • 24
  • 37
0
votes
1 answer

GIF Understanding Image Decoding - Lempel-Ziv-Welch

I'm trying to build some code I can use to convert a GIF file to another file format (which I already know how to create. [I am trying to streamline conversion from GIF to GRF - a printer graphic file format.]) I am working off of information from…
teynon
  • 7,540
  • 10
  • 63
  • 106
0
votes
1 answer

Trouble understanding php function for LZW decompression in JSend

I'm trying to convert the LZW decompressor from JSend which is in php to javascript, and I've gotten to a function I can't quite make sense of. private static function decompressLZW($aCodes) { $sData = ''; $oDictionary = range("\x0000",…
AdamB
  • 3,101
  • 4
  • 34
  • 44
0
votes
1 answer

Lossless compression theory, is compression ratio based on size of pattern and times repeated?

I was wondering which of the following scenarios will achieve the highest ratio with lossless algorithms applied to binary data with repeated data. Am I correct to assume the compression ratio depends on patterns? Size Times repeated For example…
chineerat
  • 97
  • 2
  • 12
0
votes
1 answer

LZW Data Compression In Lua

Possible Duplicate: LZW Compression In Lua Here is my code for compressing data in Lua using the LZW compression method. My problem is that the function is returning the character 'T', instead of returning the full compressed string…
Nicholas Rubin
  • 317
  • 1
  • 4
  • 14
0
votes
4 answers

LZW compression & dictionary

I'm looking into implementing LZW compression in C++, and not sure of the best dictionary implementation. Hash table made sense, but I don't understand how I would be able to 'reassign' values. If the table gets full, I need to be able to start…
DillPixel
  • 955
  • 1
  • 14
  • 20
0
votes
3 answers

is it possible to make lzw compression/decompression parallel?

i have read this article on how to compress/decompress data using LZW but i'm looking to make it use multiple threads... but i think it is not possible. what do you think? any papers or articles on this subject? or even hints on how to do it.
Hannoun Yassir
  • 20,583
  • 23
  • 77
  • 112
-1
votes
1 answer

Java LZW Compresss & Decompress with Image

I've checked many sources about LZW compression but it didn't work with image file. Here are the resources what I have checked so far: https://www.codemiles.com/java/lzw-data-compression-decompression-algorithm-java-code-t99.html This one the…
Chhorn Soro
  • 3,061
  • 8
  • 27
  • 43
-1
votes
2 answers

why strcat producing this error?

[Warning] passing argument 1 of 'strcat' makes pointer from integer without a cast THIS ERROR IS COMING WHEN I AM USING STRCAT WHAT SHOULD I DO , below is my code #include #include void main() { char a[20], b[256], p =…
Rachit
  • 7
  • 1
-1
votes
2 answers

Can I use dll in Turbo C++ program and do we have any dll for lzw compression and decompression

I was trying to create a lzw compression program. But i need to finish it by today itself so i want to use some dll for taking my input as txt file and output to as a text file. I want to do this in TURBO C++ code which are doing my remaining…
Shantanu Gupta
  • 20,688
  • 54
  • 182
  • 286
-1
votes
2 answers

LZW encoding for large file

I am building an LZW encoding algorithm, which uses dictionary and hashing so it can reach fast enough for working words already stored in a dictionary. The algorithm gives proper results when ran on smaller files (cca few hundreds of symbols), but…
Whizzil
  • 1,264
  • 6
  • 22
  • 39
-1
votes
1 answer

LZW in matlab how can I put the image to the LZW algorithm

Thank you in advance for you help, my question is I am doing LZW compression in Matlab , I choose the image through a selection dialog box then I read the image by imread command after that I do not know what to do or how to do what I have is the…
1 2 3
12
13