Article View: borland.public.cppbuilder.multimedia
Article #314Re: jpg to bmp from FrameCallbackProc without fileio
From: Hans Galema
Date: Mon, 17 Jan 2005 13:34
Date: Mon, 17 Jan 2005 13:34
31 lines
1599 bytes
1599 bytes
Peter Fagerbrant wrote:
> 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.
> Any sugestions?
Can you assign the data to a stream and then to a TJPEGImage ?
#include <jpeg.hpp>
TJPEGImage *JPEGImage = new TJPEGImage;
JPEGImage->LoadFromStream ( .... )
Graphics::TBitmap *Bitmap = new Graphics::TBitmap;
Bitmap->Assign ( JPEGImage);
// use bitmap \
delete Bitmap;
delete JPEGImage;
Hans.
Technical Details
Message-ID:
<41ebbf15$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41ebb760@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,e7775a35dcf064b6 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 17 Jan 2005 14:34:21 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: jpg to bmp from FrameCallbackProc without fileio References: <41ebb760@newsgroups.borland.com> In-Reply-To: <41ebb760@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <41ebbf15$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105968917 129.125.201.248 (17 Jan 2005 05:35:17 -0800) Lines: 31 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail