# DSP Library (DSP) API Function List

### G.711 Encoding and Decoding

DSP_OpenStaticComponentG711 |  | Opens a memory file for use by the G.711 component.
DSP_LoadG711 |  | Loads the G.711 component.
DSP_UnloadG711 |  | Unloads the G.711 component.
DSP_EncodeG711 |  | Performs G.711 encoding.
DSP_DecodeG711 |  | Performs G.711 decoding.
DSP_WaitForG711 |  | Waits for G.711 encoding or decoding to complete.
DSP_TryWaitForG711 |  | Checks if G.711 encoding or decoding has completed.
DSPAudioCodecMode |  | The encodings supported by the DSP component.

### Graphics

DSP_OpenStaticComponentGraphics |  | Opens a memory file for use by the graphics component.
DSP_LoadGraphics |  | Loads the graphics component.
DSP_UnloadGraphics |  | Unloads the graphics component.
DSP_ConvertYuvToRgb |  | Converts image data from the YUV422 format to the RGB555 format.
DSP_Scaling |  | Scales images (in the RGB555 format).
DSP_ScalingFx |  | Scales an image (in the RGB555 format) by the specified `fx32`-type scaling factor.
DSP_CalcScalingFactor |  | Obtains the scaling factor to pass to `DSP_Scaling` by reverse-calculating it from the input and output sizes.
Macros |  | Macro definitions for the graphics component.

### Common

DSP_PlaySound |  | Plays sounds from the DSP.
DSP_PlayShutterSound |  | Forcibly plays sounds from the DSP.
DSP_StopSound |  | Stops sound playback from the DSP.
DSP_IsSoundPlaying |  | Determines if sounds are being played from the DSP.
DSP_IsShutterSoundPlaying |  | Determines whether the shutter sound is being played from the DSP.
DSP_StartSampling |  | Starts automatically sampling microphone input with the DSP.
DSP_StopSampling |  | Stops automatically sampling microphone input with the DSP.
DSP_SyncSamplingBuffer |  | Transfers unread sampling data in the DSP to the ARM9 ring buffer.
DSP_GetLastSamplingAddress |  | Gets the most recent sampling position in the ring buffer.

CONFIDENTIAL