當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。