Article View: borland.public.cppbuilder.nativeapi
Article #1986Re: Multi-Thread HDC and Video Display
From: Jonathan Benedicto
Date: Thu, 24 May 2007 22:28
Date: Thu, 24 May 2007 22:28
46 lines
2327 bytes
2327 bytes
Robert G. Hoover wrote: > DrawDibDraw(HDRAWDIB hDD, HDC hDC, int left, int top...); Thread-safe IIRC > SetDIBitsToDevice(HDC hDC, int left, int top...) Not thread safe > StretchDIBitsToDevice(HDC hDC, int left, int top, int width, int > height...) Not thread safe > Does DrawDibDraw write "directly" to video memory rather than regular > memory? Is > there a difference on these modern PCs? I'd think that it will write to standard memory, then the CPU will transfer it to the video card. If you want to write directly to video memory, then Direct3D is probably the best way to go. > If StretchDIBitsToDevice is not thread-safe, is there an equivalent? Use DrawDibDraw :-) > Which would be best used for video streaming? Are there other options? DrawDibDraw or DirectShow's VMR9 renderer > Please forgive my ignorance. I've been writing video streaming apps for > nearly > 15 years. Apparently, I've been writing them wrong. ;) No problem :-) I had to go through this a while back when altering a video processing library to support thread-safe frame extraction and replacement. HTH Jon
Technical Details
Message-ID:
<46561194@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45f57403@newsgroups.borland.com> <4655cb92@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,411b13b57e2ea81a X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <invalid@nobody.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45f57403@newsgroups.borland.com> <4655cb92@newsgroups.borland.com> In-Reply-To: <4655cb92@newsgroups.borland.com> Subject: Re: Multi-Thread HDC and Video Display Date: Thu, 24 May 2007 18:28:29 -0400 Lines: 47 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16386 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386 NNTP-Posting-Host: 74.115.18.89 Message-ID: <46561194@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1180045716 74.115.18.89 (24 May 2007 15:28:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail