Page 1 of 1

ResizeMovie() vs MovieWidth-/Height()

Posted: Sat Sep 11, 2010 9:41 pm
by nco2k
imho MovieWidth/-Height() should return the new values, after using ResizeMovie().

Code: Select all

If InitMovie() And LoadMovie(0, #PB_Compiler_Home+"Examples\Sources\Data\Geebee2.bmp")
  Debug MovieWidth(0); returns 128
  Debug MovieHeight(0); returns 128
  ResizeMovie(0, 0, 0, 640, 480)
  Debug MovieWidth(0); still returns 128, should be 640
  Debug MovieHeight(0); still returns 128, should be 480
EndIf
btw it would be cool to have a #PB_Movie_Width/-Height flag for MovieInfo(), which return the original Width/Height:

Code: Select all

If InitMovie() And LoadMovie(0, #PB_Compiler_Home+"Examples\Sources\Data\Geebee2.bmp")
  Debug MovieWidth(0); will return 128
  Debug MovieHeight(0); will return 128
  Debug MovieInfo(0, #PB_Movie_Width); will return 128
  Debug MovieInfo(0, #PB_Movie_Height); will return 128
  ResizeMovie(0, 0, 0, 640, 480)
  Debug MovieWidth(0); will return 640
  Debug MovieHeight(0); will return 480
  Debug MovieInfo(0, #PB_Movie_Width); will return 128
  Debug MovieInfo(0, #PB_Movie_Height); will return 128
EndIf
and #PB_Ignore is missing for the x, y, Width, Height parameters of ResizeMovie(). :)

c ya,
nco2k

Re: ResizeMovie() vs MovieWidth-/Height()

Posted: Sun Sep 12, 2010 2:22 am
by PB
At first I was going to say you're testing it with a BMP image, not a movie,
but yes, when I tried it with both an AVI and MPG movie it still fails. :)
BTW, I'm still using v4.50, so maybe it's fixed in v4.51 now?

Re: ResizeMovie() vs MovieWidth-/Height()

Posted: Sun Sep 12, 2010 3:14 pm
by Demivec
These aren't bugs, they're feature requests.

Re: ResizeMovie() vs MovieWidth-/Height()

Posted: Sun Sep 12, 2010 3:22 pm
by PB
:?:

Re: ResizeMovie() vs MovieWidth-/Height()

Posted: Sun Sep 12, 2010 4:47 pm
by Demivec
@PB:
imho MovieWidth/-Height() should return the new values, after using ResizeMovie().
btw it would be cool to have a #PB_Movie_Width/-Height flag for MovieInfo(), which return the original Width/Height:
nco2k says he thinks MovieWidth() and MovieHeight() should return the new values, then he 'requests' that the original values be returned from MovieInfo().

Both the original and the new resized values are already available the way it is currently implemented. The resized values are created by the programmer. All that is needed is for the program to keep track of the new size since the change occurred via the program.
and #PB_Ignore is missing for the x, y, Width, Height parameters of ResizeMovie(). :)
This is likewise a feature request for a perceived need.

In each case the documentation seems to indicate these commands are functioning properly.


Note: The previous message was not meant to disparage the feature requests, just to point out there were no bugs in this bug report.

Re: ResizeMovie() vs MovieWidth-/Height()

Posted: Sun Sep 12, 2010 10:50 pm
by PB
I meant it's a bug for MovieWidth() not to return the new width after a resize.

Re: ResizeMovie() vs MovieWidth-/Height()

Posted: Sun Sep 12, 2010 10:54 pm
by nco2k
from my point of view its a bug, because it doesnt match the behavior of other Resize*() + *Width/-Height() commands :D

c ya,
nco2k