IMG_pix_expand


Detailed Description


Functions

void IMG_pix_expand (int n, const unsigned char *restrict in_data, short *restrict out_data)


Function Documentation

void IMG_pix_expand ( int  n,
const unsigned char *restrict  in_data,
short *restrict  out_data 
)

Description:
Reads an array of unsigned 8-bit values and store them to a 16-bit array. This step is often used as the first step when processing pixels or other low-precision data at 16-bit intermediate precision.
Parameters:
n Number of elements
in_data Input data
out_data Output data
Assumptions:
  • The input array and output arrays should be 64-bit aligned
  • The input must be at least 16 elements long and contain a multiple of 16 elements.
Implementation Notes:
  • This code is fully interruptible
  • This code is compatible with C66x processors
Benchmarks:
See IMGLIB_Test_Report.html for cycle and memory information.


Copyright 2012, Texas Instruments Incorporated