IMG_pix_sat


Detailed Description


Functions

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


Function Documentation

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

Description:
The function IMG_pix_sat() takes signed 16-bit input pixels and saturates them to unsigned 8-bit results. Pixel values above 255 are clamped to 255, and values below 0 are clamped to 0.
Parameters:
n Number of pixels
in_data Input data
out_data Output data
Assumptions:
  • The input must be a multiple of 32 pixels
  • All pointers must be 32-bit aligned
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