DSP_LoadGraphics

Syntax


BOOL DSP_LoadGraphics(FSFile *file, int slotB, int slotC);

Arguments

file Graphics component file.
You must either provide this using the DSP_OpenStaticComponentGraphics function, or open the $TwlSDK/dspcomponents/graphics/graphics.a file image that was saved to ROM in advance. The file will be used within this function alone and does not need to be maintained after the function has been called.
slotB Bit field that shows the WRAM-B slots that may be used for DSP code memory.
For example, this would be specified as (1<<4)|(1<<5)|(1<<6)=0x70 to provide slots 4, 5, and 6 for the DSP.
slotC Bit field that shows the WRAM-C slots that may be used for DSP code memory.
For example, this would be specified as (1<<4)|(1<<5)|(1<<6)=0x70 to provide slots 4, 5, and 6 for the DSP.

Return Values

Returns TRUE if the graphics component was successfully loaded to the DSP.
Returns FALSE if loading failed due to an insufficient number of open WRAM-B or WRAM-C slots.

Description

Loads to the DSP a component to support image data scaling and color space conversion. Calling this function allows you to use the following functions.

While loading, the library will automatically allocate only the necessary number of WRAM-B and WRAM-C slots. The number of required WRAM-B and WRAM-C slots are each defined by the following macros.

You can use the DSP_UnloadGraphics function to unload the graphics component if it is no longer necessary.

Note

See Also

DSP_OpenStaticComponentGraphics, DSP_UnloadGraphics, DSP_ConvertYuvToRgb, DSP_ConvertYuvToRgbAsync,
DSP_Scaling, DSP_ScalingEx, DSP_ScalingAsync, DSP_ScalingAsyncEx

Revision History

2008/06/13 Added definitions for the WRAM slots required to load the component.
2008/05/22 Initial version.


CONFIDENTIAL