N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

imscale

Format
imscale -i input.rgb -o output.rgb -x xscale -y yscale

What This Tool Does
It is an image scaling utility that reads in an rgb format image and scales it by arbitrary X and Y floating point scaling values to stretch or shrink the image to a desired size. This utility is useful for constructing properly filtered textures used in MIP mapping.

Command Line Options
  • -i input.rgb Specifies the name of the input image file that is to be manipulated.
  • -o output.rgb Specifies the name of the resulting output image file.
  • -x xscale Specifies the floating point scaling factor to be applied to the image's X dimension. A value of 1.0 will leave the image unchanged in the X dimension.
  • -y yscale Specifies the floating point scaling factor to be applied to the image's Y dimension. A value of 1.0 will leave the image unchanged in the Y dimension.
Note
The filter kernel used is a windowed Lanczos kernel, which gives a reasonable approximation to the ideal sinc kernel.


Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.

Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998