ResizeMovie() vs MovieWidth-/Height()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

ResizeMovie() vs MovieWidth-/Height()

Post 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
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

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

Post 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?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

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

Post by Demivec »

These aren't bugs, they're feature requests.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

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

Post by PB »

:?:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

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

Post 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.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

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

Post by PB »

I meant it's a bug for MovieWidth() not to return the new width after a resize.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

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

Post 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
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Post Reply