• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ Aligned函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中Aligned函数的典型用法代码示例。如果您正苦于以下问题:C++ Aligned函数的具体用法?C++ Aligned怎么用?C++ Aligned使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了Aligned函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: InterferenceDecrement

        void InterferenceDecrement(uint8_t * statistic, size_t stride, size_t width, size_t height, uint8_t decrement, int16_t saturation)
        {
            assert(Aligned(stride, 2));

            if(Aligned(statistic) && Aligned(stride))
                InterferenceChange<true, false>((int16_t*)statistic, stride/2, width, height, decrement, saturation);
            else
                InterferenceChange<false, false>((int16_t*)statistic, stride/2, width, height, decrement, saturation);
        }
开发者ID:pozdneev,项目名称:Simd,代码行数:9,代码来源:SimdVmxInterference.cpp


示例17: EdgeBackgroundAdjustRange

		void EdgeBackgroundAdjustRange(uint8_t * backgroundCount, size_t backgroundCountStride, size_t width, size_t height,
			uint8_t * backgroundValue, size_t backgroundValueStride, uint8_t threshold)
		{
			if (Aligned(backgroundValue) && Aligned(backgroundValueStride) &&
				Aligned(backgroundCount) && Aligned(backgroundCountStride))
				EdgeBackgroundAdjustRange<true>(backgroundCount, backgroundCountStride, width, height, backgroundValue, backgroundValueStride, threshold);
			else
				EdgeBackgroundAdjustRange<false>(backgroundCount, backgroundCountStride, width, height, backgroundValue, backgroundValueStride, threshold);
		}
开发者ID:Winddoing,项目名称:MyCode,代码行数:9,代码来源:SimdNeonEdgeBackground.cpp


示例18: InterferenceDecrementMasked

        void InterferenceDecrementMasked(uint8_t * statistic, size_t statisticStride, size_t width, size_t height, 
            uint8_t decrement, int16_t saturation, const uint8_t * mask, size_t maskStride, uint8_t index)
        {
            assert(Aligned(statisticStride, 2));

            if(Aligned(statistic) && Aligned(statisticStride) && Aligned(mask) && Aligned(maskStride))
                InterferenceChangeMasked<true, false>((int16_t*)statistic, statisticStride/2, width, height, decrement, saturation, mask, maskStride, index);
            else
                InterferenceChangeMasked<false, false>((int16_t*)statistic, statisticStride/2, width, height, decrement, saturation, mask, maskStride, index);
        }
开发者ID:pozdneev,项目名称:Simd,代码行数:10,代码来源:SimdVmxInterference.cpp


示例19: HistogramMasked

        void HistogramMasked(const uint8_t * src, size_t srcStride, size_t width, size_t height, 
            const uint8_t * mask, size_t maskStride, uint8_t index, uint32_t * histogram)
        {
            assert(width >= A);

            if(Aligned(src) && Aligned(srcStride)&& Aligned(mask) && Aligned(maskStride))
                HistogramMasked<true>(src, srcStride, width, height, mask, maskStride, index, histogram);
            else
                HistogramMasked<false>(src, srcStride, width, height, mask, maskStride, index, histogram);
        }
开发者ID:pozdneev,项目名称:Simd,代码行数:10,代码来源:SimdAvx2Histogram.cpp


示例20: AbsSecondDerivativeHistogram

        void AbsSecondDerivativeHistogram(const uint8_t *src, size_t width, size_t height, size_t stride,
            size_t step, size_t indent, uint32_t * histogram)
        {
            assert(width > 2*indent && height > 2*indent && indent >= step && width >= A + 2*indent);

            if(Aligned(src) && Aligned(stride))
                AbsSecondDerivativeHistogram<true>(src, width, height, stride, step, indent, histogram);
            else
                AbsSecondDerivativeHistogram<false>(src, width, height, stride, step, indent, histogram);
        }
开发者ID:fengbingchun,项目名称:CUDA_Test,代码行数:10,代码来源:SimdAvx2Histogram.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ Alloc函数代码示例发布时间:2022-05-30
下一篇:
C++ AlignLo函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap