dtech:
Wolftaur:32,000 pixels times 24,000 pixels equals a frame that, fully packed at 8-bit indexed color, consumes over 700 megabytes. Even if the units are 100 pixels instead of 10, that's 3,200 by 2,400, or 7 megabytes per frame: and a lot of excess math on scaling back down.
Why assume that that happens? The comment states that it's a fix/hack/workaround for a scaling problem. It could just as well trigger a scaling mechanism.
Also, your "just me nice" doesn't really make sense, you only use it because you know it couldn't be true since it would use286 GiB of memory, thus making your theory impossible.
[slightly offtopic]
As to not spotting that rediculiculious WTF, I excuse myself to the text below my avatar:
It could have happenend to me. But if you prefer to see code which less spelling mistakes, you should propose that everyone writes comments and variable names in his own language.
[/slightly offtopic]
I didn't actually calculate 320,000 by 240,000. My housemate is a graphics artist and I do most of his image processing in my spare time-- I know from experience how big 3,200x2,400 gets because almost a third of his work gets rendered at that size-- and I've seen enough "int representing fraction" stuff (such as integers as pennies to avoid floating point issues in financial math) that to me, assuming 1=1px is automatically suspect... So I started with 32,000x24,000 because that seemed the most logical unit interpretation to me. :)
As to the fix/hack/workaround part: The use of numbers that are clearly related to a specific image size, honestly, is a serious obfuscater of the intent, if all it's really doing is confusing buggy software by sheer impossibility of the request. It seems to be "tied" to 320x240 video at first glance. MAXINT/2 and MAXINT/3 might have been less confusing.
<rant>As to spelling mistakes in comments and the like? Pet peeve time: I think every native English speaking programmer who takes issue with the spelling, grammar, and so on of a non-native speaker is just being a jerk, and a rather stupid one at that. I'm a native English speaker, but I have to admit: there are plenty of places where English can get a bit... odd. Our pronunciation and spelling rules are inconsistent and bizarre, we have far too many exceptions to things like alteration of words for past and present tense... Want an IT example of English being confusing? I've quoted one at the end of this post.
Programmers should do comments, variable names, table names, and so on, in the language that is common to members of the team. If that happens to be their second language? Every OTHER programmer who laughs at the spelling is, simply put? A racist. An English-speaking-born programmer has no right to laugh at the English comments of a Frenchman unless MAYBE he can comment in French himself, without making any mistakes. And even then, it's really a stretch. Just because the English programmer might have 20 years of experience speaking French wouldn't mean the French programmer has that much experience with English.</rant>
Simply put, I don't consider the spelling error in a comment to be a WTF at all. Eyeballing the code, the only WTF I could spot was huge image size. The spelling error isn't a WTF at all. "Ridiculously" isn't a hard word to spell wrong especially when you consider how many people pronounce it in a way other than the spelling: such as half of the Southern United States. Trust me, I know. I lived there.
I have a spelling checker.
It came with my pea sea.
It plane lee marks four my revue
Miss steaks aye can knot sea.
Eye ran this poem threw it,
Your sure reel glad two no.
Its vary polished in it's weigh.
My checker tolled me sew.