• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: programmatically decompress lzw data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programmatically decompress lzw data


  • Subject: Re: programmatically decompress lzw data
  • From: Ben Dougall <email@hidden>
  • Date: Fri, 5 Sep 2003 00:29:01 +0100

thanks very much for your reply.

On Thursday, September 4, 2003, at 07:05 pm, Joe Zobkiw wrote:

what's the best / simplest way to decompress some data that has been
compressed using the lzw method using cocoa/obj-c code?

You can always wrap the uncompress command-line application (see man
uncompress) using NSTask/NSPipe as is commonly done. If you truly want
source code within your application instead, you can find lots of
sample source (in a variety of languages) for LZW by doing a Google
search that will most likely compile with little trouble.

i would prefer internal code to an external system app / utility. i was hoping code already existed and was accessible like with zlib but it doesn't appear to be.

It is my
understanding that the patent for LZW expired this year but I'm not
sure of any legal ramifications of using found source code unless you
find some that is in the public domain, etc.

i *believe* (in other words i have no real idea) that that patent only applies to compression, so if your code just decompresses you're not effected by the patent (if it still exists or not), which is all i want my code to do, so i probably will look into doing that.

this is probably very silly: would there any way to pretend that your data is a tiff and get the tiff methods to decompress it? i've never used those functions but while searching cocoa's documentation for lzw NSTIFFCompression and NSBitmapImageRep came up.. ? probably best to forget that. just hoping to find something that's already in code / cocoa though.

thanks. ben.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: programmatically decompress lzw data
      • From: "Dennis C.De Mars" <email@hidden>
    • Re: programmatically decompress lzw data
      • From: Joe Zobkiw <email@hidden>
References: 
 >Re: programmatically decompress lzw data (From: Joe Zobkiw <email@hidden>)

  • Prev by Date: Re: get/set/enumerate keyboard layouts and input methods
  • Next by Date: Re: programmatically decompress lzw data
  • Previous by thread: Re: programmatically decompress lzw data
  • Next by thread: Re: programmatically decompress lzw data
  • Index(es):
    • Date
    • Thread