Re: Is my AvgTimerPerFrame calculation correct?



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


.



Relevant Pages

  • Re: Convert sampling rate
    ... a 20 ms frame contains 320 samples of type "short". ... I need to downsample the data into 8000Hz inside my C++ ... // Alessandro Angeli ... // a dot angeli at psynet dot net ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Is my AvgTimerPerFrame calculation correct?
    ... is supposed to mean the duration of each frame? ... You need to fill-in everything your third-party codec ... // Alessandro Angeli ... // a dot angeli at psynet dot net ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Temporal number in the decoder
    ... Before we start to decode a frame, I need to know when to ... display this. ... // Alessandro Angeli ... // a dot angeli at psynet dot net ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Retreiving video frame size?
    ... Either I'm blind or the only way I can find in this SDK ... the frame size if it is stored in the metadata (via the ... // Alessandro Angeli ... // a dot angeli at psynet dot net ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Create WMV files from images (JPG)
    ... - you had to specify a network sink as well as a file sink, ... // Alessandro Angeli ... // a dot angeli at psynet dot net ...
    (microsoft.public.windowsmedia.encoder)

Loading