🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #313

jpg to bmp from FrameCallbackProc without fileio

#313
From: Peter Fagerbrant
Date: Mon, 17 Jan 2005 13:02
29 lines
1903 bytes
Hi.

Erlier in my application I capture frames from a USB camera with driver set 
at RGB24. I use the:
LRESULT PASCAL FrameCallbackProc(HWND hWnd, LPVIDEOHDR lpVHdr)
{ <snip>

I do some imgageprocessing directly on the bitmap arays.

My problem.
Now I have a new USB camera where I only can set the driver to jpeg.

What I need is to access the bitmapinfo as in my case with the RGB24 
version.

I do not understund the jpeg format well enogh to do a decompress by source.

I do not want to temporary save to a file, I need it to work directly on the 
arrays.
decompress the jpeg data directly from the lpVHdr->lpData and store it to an 
array CAMRESX*CAMRESY*3 large

Any sugestions?

I need to to work in memory becuse I need the speed. At least processing of 
10 frames/sek.

Best reg
Peter Fagerbrant 
Technical Details
Message-ID: <41ebb760@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!news-mue1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,e7775a35dcf064b6,start
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter Fagerbrant" <peter@fagerbrant.com>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: jpg to bmp from FrameCallbackProc without fileio
Date: Mon, 17 Jan 2005 14:02:24 +0100
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 193.14.171.139
Message-ID: <41ebb760@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105966944 193.14.171.139 (17 Jan 2005 05:02:24 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!news-mue1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail