Resizing 640x448 (game footage)

Locked
User avatar
RadicalEd0
Joined: Mon Jun 24, 2002 2:58 pm
Org Profile

Post by RadicalEd0 » Fri Nov 29, 2002 5:26 pm

That parts simple (okay so it took me a few days to figure out)
the user inputs 1.85:1 and wants the closest integer aspect ratio like 1.333 is to 4:3.
You simply take 185 and 100 and get the GCF, which is 5. Then divide 185 into 5 = 37 and 100/5 = 20
thus the integer aspect ratio of 1.85:1 is 37:20
when it comes to repeating decimals like 1.333 you have to go maverick and do something like 1.333 * 1440 and round the result and then get the gcf of that or something, I dont quite remember. I could post the code if you want, of course then you'd be ripping off my prog ;P
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Fri Nov 29, 2002 5:49 pm

Actually wouldn't it just be simpler if someone input the aspect ratio and it just listed all the possible resolutions that could be divided by div.

I don't feel like writing out the code for it. It seems rather simple though. :twisted:


~klinky

User avatar
RadicalEd0
Joined: Mon Jun 24, 2002 2:58 pm
Org Profile

Post by RadicalEd0 » Fri Nov 29, 2002 6:20 pm

yeah, but weren't you asking how to make 1.333 go to 4:3 mathetically without having the program go 'hey, 1.333, that means 4:3'
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Fri Nov 29, 2002 7:07 pm

RadicalEd0 wrote:yeah, but weren't you asking how to make 1.333 go to 4:3 mathetically without having the program go 'hey, 1.333, that means 4:3'
Yes, the only problem with your idea there is that there are hardcoded values in there. How would the program know which decimals to multiply by 100, and which to multiply by 1440? Also maybe there would be a black sheep in there that wouldn't work with either and needs something custom :O


~klinky

User avatar
RadicalEd0
Joined: Mon Jun 24, 2002 2:58 pm
Org Profile

Post by RadicalEd0 » Fri Nov 29, 2002 7:15 pm

easy, if its more than a certain amount of decimal points make sure it uses the 1440 round method. I mean, nobody is going to input 1.986444818451 and expect a dead on accurate output :\
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Fri Nov 29, 2002 7:41 pm

RadicalEd0 wrote:easy, if its more than a certain amount of decimal points make sure it uses the 1440 round method. I mean, nobody is going to input 1.986444818451 and expect a dead on accurate output :\
What if someone enters "1.33" or "1.3" ^_^ ?

Only numbers after the decimal, that would mean it would try and use 100 instead of 1440.

^_^


~klinky

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Fri Nov 29, 2002 7:47 pm

...only two numbers after the decimal... :roll:


~klinky

User avatar
RadicalEd0
Joined: Mon Jun 24, 2002 2:58 pm
Org Profile

Post by RadicalEd0 » Fri Nov 29, 2002 7:49 pm

so? 1.33 isnt 4:3 anyway :P
you'd put a label that says "enter at least 4 decimals for repeating" or something
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Fri Nov 29, 2002 7:55 pm

RadicalEd0 wrote:so? 1.33 isnt 4:3 anyway :P
you'd put a label that says "enter at least 4 decimals for repeating" or something
Well 1.333 isn't either :roll: :twisted:

1.3333333333333333333333333333333! Now that's more like it!

User avatar
Bushido Philosopher
Joined: Mon Jun 25, 2001 7:19 pm
Location: California
Org Profile

Post by Bushido Philosopher » Sat Dec 07, 2002 12:43 pm

hm, yeah it is a nifty tool klinky.
...but, ionno if i wanna see Misato every single time I open it - no offense of course...
"Many people want to change the world, but very few even consider changing themselves."
<<A>My Member Profile</a>> <<A>Read my Xanga</a>>

Locked

Return to “Video & Audio Help”