From 898d69c3e14223fd7d91388c135c8481ad07a295 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 10 Jul 2020 12:38:53 +0000 Subject: [PATCH] #1462 fixup r26940, compilation on win32 requires uintptr_t for pointer arithmetic git-svn-id: https://xpra.org/svn/Xpra/trunk@26947 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- .../codecs/csc_cython/colorspace_converter.pyx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/xpra/codecs/csc_cython/colorspace_converter.pyx b/src/xpra/codecs/csc_cython/colorspace_converter.pyx index e21c994de4..a6b5445abc 100644 --- a/src/xpra/codecs/csc_cython/colorspace_converter.pyx +++ b/src/xpra/codecs/csc_cython/colorspace_converter.pyx @@ -114,12 +114,12 @@ def get_spec(in_colorspace, out_colorspace): class CythonImageWrapper(ImageWrapper): def free(self): #@DuplicatedSignature - log("CythonImageWrapper.free() cython_buffer=%#x", self.cython_buffer) + log("CythonImageWrapper.free() cython_buffer=%#x", self.cython_buffer) ImageWrapper.free(self) cb = self.cython_buffer if cb>0: self.cython_buffer = 0 - free( ( cb)) + free( ( cb)) def _cn(self): return "CythonImageWrapper" @@ -524,13 +524,13 @@ cdef class ColorspaceConverter: strides = [] for i in range(3): strides.append(self.dst_strides[i]) - planes.append(memory_as_pybuffer( ( (output_image + self.offsets[i])), self.dst_sizes[i], True)) + planes.append(memory_as_pybuffer( (( output_image) + self.offsets[i]), self.dst_sizes[i], True)) elapsed = time.time()-start log("%s took %.1fms", self, 1000.0*elapsed) self.time += elapsed self.frames += 1 out_image = CythonImageWrapper(0, 0, dst_width, dst_height, planes, self.dst_format, 24, strides, ImageWrapper.PLANAR_3) - out_image.cython_buffer = output_image + out_image.cython_buffer = output_image return out_image @@ -568,7 +568,7 @@ cdef class ColorspaceConverter: self.time += elapsed self.frames += 1 out_image = CythonImageWrapper(0, 0, self.dst_width, self.dst_height, bgr48_buffer, "BGR48", 48, dst_stride, ImageWrapper.PACKED) - out_image.cython_buffer = bgr48 + out_image.cython_buffer = bgr48 return out_image @@ -666,7 +666,7 @@ cdef class ColorspaceConverter: self.time += elapsed self.frames += 1 out_image = CythonImageWrapper(0, 0, dst_width, dst_height, rgb, self.dst_format, 24, stride, ImageWrapper.PACKED) - out_image.cython_buffer = output_image + out_image.cython_buffer = output_image return out_image @@ -745,7 +745,7 @@ cdef class ColorspaceConverter: self.time += elapsed self.frames += 1 out_image = CythonImageWrapper(0, 0, dst_width, dst_height, rgb, self.dst_format, 24, stride, ImageWrapper.PACKED) - out_image.cython_buffer = output_image + out_image.cython_buffer = output_image return out_image