Re: Is my AvgTimerPerFrame calculation correct?
- From: "Alessandro Angeli [MVP::DS/MF]" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Jul 2006 01:59:12 +0200
El Bobo Libre wrote:
Alessandro - you are awesome! Thank-you so much!
In the rcSource and rcTarget members, shouldn't the
(right, bottom) members be (width -1, height -1) ?
If the frame size is 352x240, wouldn't that make the
viewable/writable dimensions (0,0) - (351, 239) ?
Good question. Maybe it should, but nobody uses it that way.
I think that's because, according to the Win32 doc page on
RECT in GDI, <<<the rectangle is filled up to, but not
including, the right column and bottom row of pixels>>> so
right = left + width and not actually right and the same
goes for top/bottom.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// a dot angeli at psynet dot net
.
- References:
- Re: Is my AvgTimerPerFrame calculation correct?
- From: Alessandro Angeli [MVP::DS/MF]
- Re: Is my AvgTimerPerFrame calculation correct?
- From: El Bobo Libre
- Re: Is my AvgTimerPerFrame calculation correct?
- Prev by Date: Re: Is my AvgTimerPerFrame calculation correct?
- Next by Date: Several artists for one song
- Previous by thread: Re: Is my AvgTimerPerFrame calculation correct?
- Next by thread: Several artists for one song
- Index(es):
Relevant Pages
|
Loading