Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub | SourceForge
C Types

Types of Simd Library C API. More...

Enumerations

enum  SimdBool {
  SimdFalse = 0,
  SimdTrue = 1
}
 
enum  SimdCpuInfoFlags {
  SimdCpuInfoSse = 0,
  SimdCpuInfoSse2,
  SimdCpuInfoSse3,
  SimdCpuInfoSsse3,
  SimdCpuInfoSse41,
  SimdCpuInfoSse42,
  SimdCpuInfoAvx,
  SimdCpuInfoAvx2,
  SimdCpuInfoAvx512f,
  SimdCpuInfoAvx512bw,
  SimdCpuInfoVmx,
  SimdCpuInfoVsx,
  SimdCpuInfoNeon,
  SimdCpuInfoMsa
}
 
enum  SimdCompareType {
  SimdCompareEqual,
  SimdCompareNotEqual,
  SimdCompareGreater,
  SimdCompareGreaterOrEqual,
  SimdCompareLesser,
  SimdCompareLesserOrEqual
}
 
enum  SimdOperationBinary8uType {
  SimdOperationBinary8uAverage,
  SimdOperationBinary8uAnd,
  SimdOperationBinary8uOr,
  SimdOperationBinary8uMaximum,
  SimdOperationBinary8uMinimum,
  SimdOperationBinary8uSaturatedSubtraction,
  SimdOperationBinary8uSaturatedAddition
}
 
enum  SimdOperationBinary16iType {
  SimdOperationBinary16iAddition,
  SimdOperationBinary16iSubtraction
}
 
enum  SimdPixelFormatType {
  SimdPixelFormatNone = 0,
  SimdPixelFormatGray8,
  SimdPixelFormatUv16,
  SimdPixelFormatBgr24,
  SimdPixelFormatBgra32,
  SimdPixelFormatInt16,
  SimdPixelFormatInt32,
  SimdPixelFormatInt64,
  SimdPixelFormatFloat,
  SimdPixelFormatDouble,
  SimdPixelFormatBayerGrbg,
  SimdPixelFormatBayerGbrg,
  SimdPixelFormatBayerRggb,
  SimdPixelFormatBayerBggr,
  SimdPixelFormatHsv24,
  SimdPixelFormatHsl24
}
 
enum  SimdDetectionInfoFlags {
  SimdDetectionInfoFeatureHaar = 0,
  SimdDetectionInfoFeatureLbp,
  SimdDetectionInfoFeatureMask = 3,
  SimdDetectionInfoHasTilted = 4,
  SimdDetectionInfoCanInt16 = 8
}
 
enum  SimdReduceType {
  SimdReduce2x2,
  SimdReduce3x3,
  SimdReduce4x4,
  SimdReduce5x5
}
 

Detailed Description

Types of Simd Library C API.

Enumeration Type Documentation

◆ SimdBool

enum SimdBool

Describes boolean type.

Enumerator
SimdFalse 

False value.

SimdTrue 

True value.

◆ SimdCpuInfoFlags

Describes types of SIMD extensions which supported by current CPU and Simd Library (see function SimdCpuInfo).

Enumerator
SimdCpuInfoSse 

SSE (x86).

SimdCpuInfoSse2 

SSE2 (x86).

SimdCpuInfoSse3 

SSE3 (x86).

SimdCpuInfoSsse3 

SSSE3 (x86).

SimdCpuInfoSse41 

SSE4.1 (x86).

SimdCpuInfoSse42 

SSE4.2 (x86).

SimdCpuInfoAvx 

AVX (x86).

SimdCpuInfoAvx2 

AVX2 (x86).

SimdCpuInfoAvx512f 

AVX-512F (x86).

SimdCpuInfoAvx512bw 

AVX-512BW (x86).

SimdCpuInfoVmx 

VMX or Altivec (PowerPC).

SimdCpuInfoVsx 

VSX (PowerPC).

SimdCpuInfoNeon 

NEON (ARM).

SimdCpuInfoMsa 

MSA (MIPS).

◆ SimdCompareType

Describes types of compare operation. Operation compare(a, b) is

Enumerator
SimdCompareEqual 

equal to: a == b

SimdCompareNotEqual 

equal to: a != b

SimdCompareGreater 

equal to: a > b

SimdCompareGreaterOrEqual 

equal to: a >= b

SimdCompareLesser 

equal to: a < b

SimdCompareLesserOrEqual 

equal to: a <= b

◆ SimdOperationBinary8uType

Describes types of binary operation between two images performed by function SimdOperationBinary8u. Images must have the same format (unsigned 8-bit integer for every channel).

Enumerator
SimdOperationBinary8uAverage 

Computes the average value for every channel of every point of two images.
Average(a, b) = (a + b + 1)/2.

SimdOperationBinary8uAnd 

Computes the bitwise AND between two images.

SimdOperationBinary8uOr 

Computes the bitwise OR between two images.

SimdOperationBinary8uMaximum 

Computes maximal value for every channel of every point of two images.

SimdOperationBinary8uMinimum 

Computes minimal value for every channel of every point of two images.

SimdOperationBinary8uSaturatedSubtraction 

Subtracts unsigned 8-bit integer b from unsigned 8-bit integer a and saturates (for every channel of every point of the images).

SimdOperationBinary8uSaturatedAddition 

Adds unsigned 8-bit integer b from unsigned 8-bit integer a and saturates (for every channel of every point of the images).

◆ SimdOperationBinary16iType

Describes types of binary operation between two images performed by function SimdOperationBinary16i. Images must have SimdPixelFormatInt16 pixel format (signed 16-bit integer for every point).

Enumerator
SimdOperationBinary16iAddition 

Performs addition of two images for every point.

SimdOperationBinary16iSubtraction 

Performs subtraction of two images for every point.

◆ SimdPixelFormatType

Describes pixel format types of an image. In particular this type is used in functions SimdBayerToBgr, SimdBayerToBgra, SimdBgraToBayer and SimdBgrToBayer.

Note
This type is corresponds to C++ type Simd::View::Format.
Enumerator
SimdPixelFormatNone 

An undefined pixel format.

SimdPixelFormatGray8 

A 8-bit gray pixel format.

SimdPixelFormatUv16 

A 16-bit (2 8-bit channels) pixel format (UV plane of NV12 pixel format).

SimdPixelFormatBgr24 

A 24-bit (3 8-bit channels) BGR (Blue, Green, Red) pixel format.

SimdPixelFormatBgra32 

A 32-bit (4 8-bit channels) BGRA (Blue, Green, Red, Alpha) pixel format.

SimdPixelFormatInt16 

A single channel 16-bit integer pixel format.

SimdPixelFormatInt32 

A single channel 32-bit integer pixel format.

SimdPixelFormatInt64 

A single channel 64-bit integer pixel format.

SimdPixelFormatFloat 

A single channel 32-bit float point pixel format.

SimdPixelFormatDouble 

A single channel 64-bit float point pixel format.

SimdPixelFormatBayerGrbg 

A 8-bit Bayer pixel format (GRBG).

SimdPixelFormatBayerGbrg 

A 8-bit Bayer pixel format (GBRG).

SimdPixelFormatBayerRggb 

A 8-bit Bayer pixel format (RGGB).

SimdPixelFormatBayerBggr 

A 8-bit Bayer pixel format (BGGR).

SimdPixelFormatHsv24 

A 24-bit (3 8-bit channels) HSV (Hue, Saturation, Value) pixel format.

SimdPixelFormatHsl24 

A 24-bit (3 8-bit channels) HSL (Hue, Saturation, Lightness) pixel format.

◆ SimdDetectionInfoFlags

Describes types and flags to get information about classifier cascade with using function SimdDetectionInfo.

Note
This type is used for implementation of Simd::Detection.
Enumerator
SimdDetectionInfoFeatureHaar 

A HAAR cascade classifier type.

SimdDetectionInfoFeatureLbp 

A LBP cascade classifier type.

SimdDetectionInfoFeatureMask 

A mask to select cascade classifier type.

SimdDetectionInfoHasTilted 

A flag which defines existence of tilted features in the HAAR cascade.

SimdDetectionInfoCanInt16 

A flag which defines possibility to use 16-bit integers for calculation.

◆ SimdReduceType

Describes type of algorithm used for image reducing (downscale in 2 times) (see function Simd::ReduceGray).

Enumerator
SimdReduce2x2 

Using of function SimdReduceGray2x2 for image reducing.

SimdReduce3x3 

Using of function SimdReduceGray3x3 for image reducing.

SimdReduce4x4 

Using of function SimdReduceGray4x4 for image reducing.

SimdReduce5x5 

Using of function SimdReduceGray5x5 for image reducing.