Article View: comp.graphics.algorithms
Article #31Re: IJG JPEG Engine and Win32
From: Jon Tara
Date: Wed, 10 Jan 1996 08:39
Date: Wed, 10 Jan 1996 08:39
26 lines
2131 bytes
2131 bytes
fortunat@interpath.com (Jumpstile Turner) wrote: > Incidently, I changed (and have been changing) a lot of stuff over >to Win32 API calls, memory and file handling. It sure seems a lot >faster now as opposed to using the standard C stuff, but this might be >my imagination. The right way to do this is to write your own source and destination drivers. I wrote a pair to read and write from/to MFC CArchives, and used this to integrate it into a JPEGImage class that I plugged into the Image clases from Barkakati's _Visual C++ Developer's Guide_. This is a pretty slick way to go - I can just JPEGimage->serialize() onto a TCP connection! Using the MFC 4.0 CSocket class, it only takes a couple of lines of code to open a CSocket, open a CArchive onto the CSocket, and then serialize the image. Poof! It shows up on my little Perl server at the other end. (And will start showing up on my web site, once I write the buffering code into the Perl program and the NSAPI function to read it from the memory buffers...) ________________________________________________________________________ jtara@live.net A new video clip (Netscape 1.1+) of San Diego Bay every half hour: <URL:http://live.net/sandiego/> Rated top 5% & "best 1000" by Point Communications jtara@mediashare.com Tools and services for CD-ROM and online catalogs: <URL:http://www.mediashare.com/> Also rated top 5% by Point Communications
Technical Details
Message-ID:
<30f378d9.15852447@news.connectnet.com>Path:
arc1-ca.pugleaf.net!news.connectnet.com!usenetReferences:
<4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com> <TGL.96Jan8083559@netcom23.netcom.com> <4crnpl$k49@redstone.interpath.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.connectnet.com!usenet From: jtara@connectnet.com (Jon Tara) Newsgroups: comp.graphics.algorithms,comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.multimedia,comp.os.ms-windows.programmer.win32 Subject: Re: IJG JPEG Engine and Win32 Date: Wed, 10 Jan 1996 08:39:00 GMT Organization: CONNECTnet Internet Network Services (service provider) Message-ID: <30f378d9.15852447@news.connectnet.com> References: <4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com> <TGL.96Jan8083559@netcom23.netcom.com> <4crnpl$k49@redstone.interpath.net> NNTP-Posting-Host: jtara.connectnet.com X-Newsreader: Forte Agent .99c/16.141