[x265] [PATCH] calSign: clarify constness

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jan 2 12:33:46 CET 2015


# HG changeset patch
# User Praveen Tiwari
# Date 1420198413 -19800
# Node ID 56e45fb0464e062a0026ab3e826b749527e4fa08
# Parent  8379ff016b566e0f52fcb93448d2584fd8d4d423
calSign: clarify constness

diff -r 8379ff016b56 -r 56e45fb0464e source/common/loopfilter.cpp
--- a/source/common/loopfilter.cpp	Wed Dec 31 12:55:54 2014 +0530
+++ b/source/common/loopfilter.cpp	Fri Jan 02 17:03:33 2015 +0530
@@ -34,7 +34,7 @@
     return (x >> 31) | ((int)((((uint32_t)-x)) >> 31));
 }
 
-void calSign(int8_t *dst, pixel *src1, pixel *src2, int endX)
+void calSign(int8_t *dst, const pixel *src1, const pixel *src2, const int endX)
 {
     for (int x = 0; x < endX; x++)
         dst[x] = signOf(src1[x] - src2[x]);
diff -r 8379ff016b56 -r 56e45fb0464e source/common/primitives.h
--- a/source/common/primitives.h	Wed Dec 31 12:55:54 2014 +0530
+++ b/source/common/primitives.h	Fri Jan 02 17:03:33 2015 +0530
@@ -191,7 +191,7 @@
 typedef void (*addAvg_t)(const int16_t* src0, const int16_t* src1, pixel* dst, intptr_t src0Stride, intptr_t src1Stride, intptr_t dstStride);
 
 typedef void (*saoCuOrgE0_t)(pixel* rec, int8_t* offsetEo, int width, int8_t signLeft);
-typedef void (*sign_t)(int8_t *dst, pixel *src1, pixel *src2, int endX);
+typedef void (*sign_t)(int8_t *dst, const pixel *src1, const pixel *src2, const int endX);
 typedef void (*planecopy_cp_t) (const uint8_t* src, intptr_t srcStride, pixel* dst, intptr_t dstStride, int width, int height, int shift);
 typedef void (*planecopy_sp_t) (const uint16_t* src, intptr_t srcStride, pixel* dst, intptr_t dstStride, int width, int height, int shift, uint16_t mask);
 
diff -r 8379ff016b56 -r 56e45fb0464e source/common/x86/loopfilter.asm
--- a/source/common/x86/loopfilter.asm	Wed Dec 31 12:55:54 2014 +0530
+++ b/source/common/x86/loopfilter.asm	Fri Jan 02 17:03:33 2015 +0530
@@ -85,7 +85,7 @@
     RET
 
 ;============================================================================================================
-; void calSign(int8_t *dst, Pixel *src1 , Pixel *src2, int endX)
+; void calSign(int8_t *dst, const Pixel *src1, const Pixel *src2, const int endX)
 ;============================================================================================================
 INIT_XMM sse4
 cglobal calSign, 4, 5, 7
diff -r 8379ff016b56 -r 56e45fb0464e source/common/x86/loopfilter.h
--- a/source/common/x86/loopfilter.h	Wed Dec 31 12:55:54 2014 +0530
+++ b/source/common/x86/loopfilter.h	Fri Jan 02 17:03:33 2015 +0530
@@ -25,6 +25,6 @@
 #define X265_LOOPFILTER_H
 
 void x265_saoCuOrgE0_sse4(pixel * rec, int8_t * offsetEo, int endX, int8_t signLeft);
-void x265_calSign_sse4(int8_t *dst, pixel *src1, pixel *src2, int endX);
+void x265_calSign_sse4(int8_t *dst, const pixel *src1, const pixel *src2, const int endX);
 
 #endif // ifndef X265_LOOPFILTER_H


More information about the x265-devel mailing list