Log in

View Full Version : Automatic Resize to Mod16 Dimensions?


Pookie
10th April 2007, 23:38
Maybe this one is too obvious or I'm not using the correct search terms:

What I Have/Trying to Do-

Various RGB image sequences that I'd like to send off to HCenc - (generic Mpegs, not DVD or anything "standard")

What I'm Struggling With -

How to auto resize to the next lower mod16 compatible dimensions if the source is for example, 701x465 (not even mod2)

TIA

BigDid
11th April 2007, 00:11
... How to auto resize to the next lower mod16 compatible dimensions
Hi Pookie,

If I got it right, you may want to have a look at the AutoGK internal mod16 cropping+resizing: http://forum.doom9.org/showthread.php?p=942798#post942798
more examples earlier in the thread

or maybe related (cropping method): http://forum.doom9.org/showthread.php?p=987004#post987004 and discussion related, later in the thread...

If I got it wrong, please discard :cool:

Did

Alain2
11th April 2007, 01:43
Unless I misunderstand you, I would say
xxxxxresize(16*(width/16),16*(height/16))

Pookie
11th April 2007, 03:20
Thanks a lot, gents. Alain2, that worked really well.