Integration Wrappers for Intel® Integrated Performance Primitives Developer Guide and Reference 2019

iwiShiftPtrConst

Syntax

static IW_INLINE const void* iwiShiftPtrConst(
    const void *pPtr,       
    IwSize      step,      
    int         typeSize,   
    int         channels, 
    IwSize      y,         
    IwSize      x           
)
{
    return (((const Ipp8u*)pPtr) + step*y + typeSize*channels*x);
}

Parameters

pPtr

Original pointer.

step

Image step.

typeSize

Size of the image type returned by iwTypeToLen.

channels

Number of channels in the image.

y

Y shift, as rows.

x

X shift, as columns.

Description

This function shifts the pointer to specific pixel coordinates for a read-only image.

Return Values

Shifted pointer.