Entry
R0 = flags for desired operation:
bit 0 set => return dimensions, clear => don't return dimensions
all other bits reserved (must be zero)
R1 = pointer to pathname of JPEG file, control character terminated
Exit
R0 = returned information flags:
bit 0 set => greyscale image, clear => colour image
bit 1 set => transformed plots not supported, clear => supported
bit 2 set => pixel density is a simple ratio, clear => pixel density is in dpi
R1 preserved
R2 = width, in pixels
R3 = height, in pixels
R4 = x pixel density
R5 = y pixel density
R6 = SpriteExtend's additional extra workspace requirements to plot JPEG (0 => no additional extra workspace required)
This call gives information on a JPEG image held in a file.
This call checks the header enough to return the width and height, and does a partial validation of the data. It returns an error if the image appears to be invalid; if no error is returned you may assume that the data is a JPEG image.
This call is only available from RISC OS 3.6 onwards.
|
|
|