Implements the Table Lookup Image Kernel (Signed 16-bit).
- Method:
- The Table Lookup Image Kernel is computed by using the following equation:
dst(x,y) = lut[offset + src(x,y)]
- Parameters
-
[in] | src[] | Pointer to array containing first input image (SQ15.0) |
[in] | src_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst[] | Pointer to array containing output image (SQ15.0) |
[in] | dst_addr[] | Pointer to structure containing dimensional information of dst |
[in] | lut[] | Pointer to array containing the lookup table (SQ15.0) |
[in] | count | Parameter indicating size of LUT (U32.0) |
[in] | offset | Parameter indicating index of input value = 0 in the LUT (U16.0) |
- Assumptions:
- I/O buffer pointers are assumed to be not aliased.
- LUT size is larger than max value in src
- The count parameter should be <= 65536
- The offset parameter should be less than the count parameter
- The input pixel values shall fall within the range of the lookup table given the count and offset values.
- Performance Considerations:
- For best performance, the following parameter settings are recommended:
- Set widths equal to strides
- Align all pointers to 8 byte boundaries
- Set all stride values to a multiple of 8
- Set all width values to a multiple of 4