
f32 DSP_CalcScalingFactorF32(
const u16 src_size,
const u16 dst_size
);
fx32 DSP_CalcScalingFactorFx32(
const u16 src_size,
const u16 dst_size
);
| src_size | Source data size for scaling. |
| dst_size | Desired size for the output data after scaling. |
A factor that was reverse-calculated from, and uses the same type as, the specified values.
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.
2008/08/28 Initial version.
CONFIDENTIAL