DSP_CalcScalingFactor

# DSP CalcScalingFactor*

## Definition

    f32 DSP_CalcScalingFactorF32(
    		const u16 src_size,
    		const u16 dst_size
    	);

    fx32 DSP_CalcScalingFactorFx32(
    		const u16 src_size,
    		const u16 dst_size
    	);

## Arguments

src_size | Source data size for scaling.
dst_size | Desired size for the output data after scaling.

## Return Values

A factor that was reverse-calculated from, and uses the same type as, the specified values.

## Description

Performs reverse calculations to get the factor for arguments specified with the desired output size from the `DSP_Scaling*` and `DSP_ScalingFx*` functions. The result and the arguments have the same type.

Due to factor restrictions (31–0.001), however, the correct factor may not be obtainable for some specified input and output sizes.

## See Also

`DSP_Scaling*, DSP_ScalingFx*`

## Revision History

2008/08/28 Initial version.

CONFIDENTIAL