Updated primitive function const correctness.
authorArmin Novak <armin.novak@thincast.com>
Fri, 22 Nov 2019 11:32:45 +0000 (12:32 +0100)
committerakallabeth <akallabeth@users.noreply.github.com>
Fri, 22 Nov 2019 12:21:39 +0000 (13:21 +0100)
libfreerdp/primitives/prim_YUV_opencl.c

index c037f49..d377575 100644 (file)
@@ -48,7 +48,7 @@ typedef struct
 
 static primitives_opencl_context* primitives_get_opencl_context(void);
 
-static pstatus_t opencl_YUVToRGB(const char* kernelName, const BYTE* pSrc[3],
+static pstatus_t opencl_YUVToRGB(const char* kernelName, const BYTE* const pSrc[3],
                                  const UINT32 srcStep[3], BYTE* pDst, UINT32 dstStep,
                                  const prim_size_t* roi)
 {
@@ -322,7 +322,7 @@ out_program_create:
        return FALSE;
 }
 
-static pstatus_t opencl_YUV420ToRGB_8u_P3AC4R(const BYTE* pSrc[3], const UINT32 srcStep[3],
+static pstatus_t opencl_YUV420ToRGB_8u_P3AC4R(const BYTE* const pSrc[3], const UINT32 srcStep[3],
                                               BYTE* pDst, UINT32 dstStep, UINT32 DstFormat,
                                               const prim_size_t* roi)
 {
@@ -350,7 +350,7 @@ static pstatus_t opencl_YUV420ToRGB_8u_P3AC4R(const BYTE* pSrc[3], const UINT32
        return opencl_YUVToRGB(kernel_name, pSrc, srcStep, pDst, dstStep, roi);
 }
 
-static pstatus_t opencl_YUV444ToRGB_8u_P3AC4R(const BYTE* pSrc[3], const UINT32 srcStep[3],
+static pstatus_t opencl_YUV444ToRGB_8u_P3AC4R(const BYTE* const pSrc[3], const UINT32 srcStep[3],
                                               BYTE* pDst, UINT32 dstStep, UINT32 DstFormat,
                                               const prim_size_t* roi)
 {