Developer Reference for Intel® Integrated Performance Primitives
Computes the size of the work buffer for the ippsPatternMatch function.
IppStatus ippsPatternMatchGetBufferSize (int srcLen, int patternLen, int patternSize, IppPatternMatchMode hint, int* bufSize);
ipps.h
srcLen |
Number of patterns in the source array. |
||||||
patternLen |
Number of elements in the templates array. |
||||||
patternSize |
The size of a pattern, in bytes. |
||||||
hint |
Option to run specially optimized code branch, supported values:
|
||||||
bufSize |
Size of the required buffer. |
This function computes the size, in bytes, of the external work buffer needed for the ippsPatternMatch function. The result is stored in the bufSize parameter.
ippStsNoErr |
Indicates no error. |
ippStsSizeErr |
Indicates an error when at least one of the srcLen, dstLen, or patternSize values is less than, or equal to zero; or patternSize is too big. |
ippStsBadArg |
Indicates an error when the value of hint is not supported. |