当前位置: 首页>>代码示例>>C++>>正文


C++ Aligned函数代码示例

本文整理汇总了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);
		}
开发者ID:nagyist,项目名称:Simd,代码行数:8,代码来源:SimdSse2YuvToHue.cpp

示例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);
 }
开发者ID:fengbingchun,项目名称:CUDA_Test,代码行数:8,代码来源:SimdSse2EdgeBackground.cpp

示例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);
 }
开发者ID:Winddoing,项目名称:MyCode,代码行数:8,代码来源:SimdSse2Deinterleave.cpp

示例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);
 }
开发者ID:4144,项目名称:Simd,代码行数:8,代码来源:SimdVmxReduceGray3x3.cpp

示例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);
 }
开发者ID:4144,项目名称:Simd,代码行数:8,代码来源:SimdSsse3Texture.cpp

示例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);
 }
开发者ID:fengbingchun,项目名称:CUDA_Test,代码行数:8,代码来源:SimdSse2EdgeBackground.cpp

示例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);
 }
开发者ID:flying19880517,项目名称:AntiDupl,代码行数:8,代码来源:SimdVmxAbsDifferenceSum.cpp

示例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);
 }
开发者ID:flying19880517,项目名称:AntiDupl,代码行数:8,代码来源:SimdNeonEdgeBackground.cpp

示例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);
 }
开发者ID:pozdneev,项目名称:Simd,代码行数:8,代码来源:SimdVmxGaussianBlur3x3.cpp

示例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);
 }
开发者ID:flying19880517,项目名称:AntiDupl,代码行数:8,代码来源:SimdVmxConditional.cpp

示例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);
 }
开发者ID:4144,项目名称:Simd,代码行数:8,代码来源:SimdAvx2StretchGray2x2.cpp

示例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);
 }
开发者ID:flying19880517,项目名称:AntiDupl,代码行数:8,代码来源:SimdVmxAbsDifferenceSum.cpp

示例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);
 }
开发者ID:flying19880517,项目名称:AntiDupl,代码行数:8,代码来源:SimdVmxAbsDifferenceSum.cpp

示例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);
 }
开发者ID:flying19880517,项目名称:AntiDupl,代码行数:8,代码来源:SimdVmxAbsDifferenceSum.cpp

示例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));
        }
开发者ID:4144,项目名称:Simd,代码行数:9,代码来源:SimdVmxLaplace.cpp


注:本文中的Aligned函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。