本文整理汇总了C++中Aligned函数的典型用法代码示例。如果您正苦于以下问题:C++ Aligned函数的具体用法?C++ Aligned怎么用?C++ Aligned使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Aligned函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Yuv444pToHue
void Yuv444pToHue(const uint8_t * y, size_t yStride, const uint8_t * u, size_t uStride, const uint8_t * v, size_t vStride,
size_t width, size_t height, uint8_t * hue, size_t hueStride)
{
if(Aligned(y) && Aligned(yStride) && Aligned(u) && Aligned(uStride) && Aligned(v) && Aligned(vStride) && Aligned(hue) && Aligned(hueStride))
Yuv444pToHue<true>(y, yStride, u, uStride, v, vStride, width, height, hue, hueStride);
else
Yuv444pToHue<false>(y, yStride, u, uStride, v, vStride, width, height, hue, hueStride);
}
示例2: EdgeBackgroundShiftRangeMasked
void EdgeBackgroundShiftRangeMasked(const uint8_t * value, size_t valueStride, size_t width, size_t height,
uint8_t * background, size_t backgroundStride, const uint8_t * mask, size_t maskStride)
{
if(Aligned(value) && Aligned(valueStride) && Aligned(background) && Aligned(backgroundStride) && Aligned(mask) && Aligned(maskStride))
EdgeBackgroundShiftRangeMasked<true>(value, valueStride, width, height, background, backgroundStride, mask, maskStride);
else
EdgeBackgroundShiftRangeMasked<false>(value, valueStride, width, height, background, backgroundStride, mask, maskStride);
}
示例3: DeinterleaveUv
void DeinterleaveUv(const uint8_t * uv, size_t uvStride, size_t width, size_t height,
uint8_t * u, size_t uStride, uint8_t * v, size_t vStride)
{
if(Aligned(uv) && Aligned(uvStride) && Aligned(u) && Aligned(uStride) && Aligned(v) && Aligned(vStride))
DeinterleaveUv<true>(uv, uvStride, width, height, u, uStride, v, vStride);
else
DeinterleaveUv<false>(uv, uvStride, width, height, u, uStride, v, vStride);
}
示例4: ReduceGray3x3
void ReduceGray3x3(const uint8_t *src, size_t srcWidth, size_t srcHeight, size_t srcStride,
uint8_t *dst, size_t dstWidth, size_t dstHeight, size_t dstStride, int compensation)
{
if(Aligned(src) && Aligned(srcStride) && Aligned(dst) && Aligned(dstStride))
ReduceGray3x3<true>(src, srcWidth, srcHeight, srcStride, dst, dstWidth, dstHeight, dstStride, compensation);
else
ReduceGray3x3<false>(src, srcWidth, srcHeight, srcStride, dst, dstWidth, dstHeight, dstStride, compensation);
}
示例5: TextureBoostedSaturatedGradient
void TextureBoostedSaturatedGradient(const uint8_t * src, size_t srcStride, size_t width, size_t height,
uint8_t saturation, uint8_t boost, uint8_t * dx, size_t dxStride, uint8_t * dy, size_t dyStride)
{
if(Aligned(src) && Aligned(srcStride) && Aligned(dx) && Aligned(dxStride) && Aligned(dy) && Aligned(dyStride))
TextureBoostedSaturatedGradient<true>(src, srcStride, width, height, saturation, boost, dx, dxStride, dy, dyStride);
else
TextureBoostedSaturatedGradient<false>(src, srcStride, width, height, saturation, boost, dx, dxStride, dy, dyStride);
}
示例6: EdgeBackgroundGrowRangeSlow
void EdgeBackgroundGrowRangeSlow(const uint8_t * value, size_t valueStride, size_t width, size_t height,
uint8_t * background, size_t backgroundStride)
{
if(Aligned(value) && Aligned(valueStride) && Aligned(background) && Aligned(backgroundStride))
EdgeBackgroundGrowRangeSlow<true>(value, valueStride, width, height, background, backgroundStride);
else
EdgeBackgroundGrowRangeSlow<false>(value, valueStride, width, height, background, backgroundStride);
}
示例7: AbsDifferenceSumMasked
void AbsDifferenceSumMasked(const uint8_t *a, size_t aStride, const uint8_t *b, size_t bStride,
const uint8_t *mask, size_t maskStride, uint8_t index, size_t width, size_t height, uint64_t * sum)
{
if (Aligned(a) && Aligned(aStride) && Aligned(b) && Aligned(bStride) && Aligned(mask) && Aligned(maskStride))
AbsDifferenceSumMasked<true>(a, aStride, b, bStride, mask, maskStride, index, width, height, sum);
else
AbsDifferenceSumMasked<false>(a, aStride, b, bStride, mask, maskStride, index, width, height, sum);
}
示例8: EdgeBackgroundIncrementCount
void EdgeBackgroundIncrementCount(const uint8_t * value, size_t valueStride, size_t width, size_t height,
const uint8_t * backgroundValue, size_t backgroundValueStride, uint8_t * backgroundCount, size_t backgroundCountStride)
{
if (Aligned(value) && Aligned(valueStride) && Aligned(backgroundValue) && Aligned(backgroundValueStride) && Aligned(backgroundCount) && Aligned(backgroundCountStride))
EdgeBackgroundIncrementCount<true>(value, valueStride, width, height, backgroundValue, backgroundValueStride, backgroundCount, backgroundCountStride);
else
EdgeBackgroundIncrementCount<false>(value, valueStride, width, height, backgroundValue, backgroundValueStride, backgroundCount, backgroundCountStride);
}
示例9: GaussianBlur3x3
void GaussianBlur3x3(const uint8_t * src, size_t srcStride, size_t width, size_t height,
size_t channelCount, uint8_t * dst, size_t dstStride)
{
if(Aligned(src) && Aligned(srcStride) && Aligned(channelCount*width) && Aligned(dst) && Aligned(dstStride))
GaussianBlur3x3<true>(src, srcStride, width, height, channelCount, dst, dstStride);
else
GaussianBlur3x3<false>(src, srcStride, width, height, channelCount, dst, dstStride);
}
示例10: ConditionalSquareSum
void ConditionalSquareSum(const uint8_t * src, size_t srcStride, size_t width, size_t height,
const uint8_t * mask, size_t maskStride, uint8_t value, uint64_t * sum)
{
if (Aligned(src) && Aligned(srcStride) && Aligned(mask) && Aligned(maskStride))
ConditionalSquareSum<true, compareType>(src, srcStride, width, height, mask, maskStride, value, sum);
else
ConditionalSquareSum<false, compareType>(src, srcStride, width, height, mask, maskStride, value, sum);
}
示例11: StretchGray2x2
void StretchGray2x2(const uint8_t *src, size_t srcWidth, size_t srcHeight, size_t srcStride,
uint8_t *dst, size_t dstWidth, size_t dstHeight, size_t dstStride)
{
if(Aligned(src) && Aligned(srcStride) && Aligned(dst) && Aligned(dstStride))
StretchGray2x2<true>(src, srcWidth, srcHeight, srcStride, dst, dstWidth, dstHeight, dstStride);
else
StretchGray2x2<false>(src, srcWidth, srcHeight, srcStride, dst, dstWidth, dstHeight, dstStride);
}
示例12: AbsDifferenceSum
void AbsDifferenceSum(const uint8_t *a, size_t aStride, const uint8_t *b, size_t bStride,
size_t width, size_t height, uint64_t * sum)
{
if (Aligned(a) && Aligned(aStride) && Aligned(b) && Aligned(bStride))
AbsDifferenceSum<true>(a, aStride, b, bStride, width, height, sum);
else
AbsDifferenceSum<false>(a, aStride, b, bStride, width, height, sum);
}
示例13: AbsDifferenceSums3x3Masked
void AbsDifferenceSums3x3Masked(const uint8_t *current, size_t currentStride, const uint8_t *background, size_t backgroundStride,
const uint8_t *mask, size_t maskStride, uint8_t index, size_t width, size_t height, uint64_t * sums)
{
if (Aligned(background) && Aligned(backgroundStride))
AbsDifferenceSums3x3Masked<true>(current, currentStride, background, backgroundStride, mask, maskStride, index, width, height, sums);
else
AbsDifferenceSums3x3Masked<false>(current, currentStride, background, backgroundStride, mask, maskStride, index, width, height, sums);
}
示例14: AbsDifferenceSums3x3
void AbsDifferenceSums3x3(const uint8_t * current, size_t currentStride, const uint8_t * background, size_t backgroundStride,
size_t width, size_t height, uint64_t * sums)
{
if (Aligned(background) && Aligned(backgroundStride))
AbsDifferenceSums3x3<true>(current, currentStride, background, backgroundStride, width, height, sums);
else
AbsDifferenceSums3x3<false>(current, currentStride, background, backgroundStride, width, height, sums);
}
示例15: Laplace
void Laplace(const uint8_t * src, size_t srcStride, size_t width, size_t height, uint8_t * dst, size_t dstStride)
{
assert(dstStride%sizeof(int16_t) == 0);
if(Aligned(src) && Aligned(srcStride) && Aligned(dst) && Aligned(dstStride))
Laplace<true, false>(src, srcStride, width, height, (int16_t *)dst, dstStride/sizeof(int16_t));
else
Laplace<false, false>(src, srcStride, width, height, (int16_t *)dst, dstStride/sizeof(int16_t));
}