mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[codec,nsc] add restrict keyword
This commit is contained in:
@@ -110,8 +110,8 @@ static BOOL nsc_decode(NSC_CONTEXT* context)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static BOOL nsc_rle_decode(const BYTE* in, size_t inSize, BYTE* out, UINT32 outSize,
|
||||
UINT32 originalSize)
|
||||
static BOOL nsc_rle_decode(const BYTE* WINPR_RESTRICT in, size_t inSize, BYTE* WINPR_RESTRICT out,
|
||||
UINT32 outSize, UINT32 originalSize)
|
||||
{
|
||||
UINT32 left = originalSize;
|
||||
|
||||
@@ -432,9 +432,9 @@ BOOL nsc_context_set_parameters(NSC_CONTEXT* context, NSC_PARAMETER what, UINT32
|
||||
}
|
||||
|
||||
BOOL nsc_process_message(NSC_CONTEXT* context, UINT16 bpp, UINT32 width, UINT32 height,
|
||||
const BYTE* data, UINT32 length, BYTE* pDstData, UINT32 DstFormat,
|
||||
UINT32 nDstStride, UINT32 nXDst, UINT32 nYDst, UINT32 nWidth,
|
||||
UINT32 nHeight, UINT32 flip)
|
||||
const BYTE* WINPR_RESTRICT data, UINT32 length,
|
||||
BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat, UINT32 nDstStride,
|
||||
UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, UINT32 nHeight, UINT32 flip)
|
||||
{
|
||||
wStream* s = NULL;
|
||||
wStream sbuffer = { 0 };
|
||||
|
||||
@@ -476,8 +476,8 @@ BOOL nsc_write_message(NSC_CONTEXT* context, wStream* s, const NSC_MESSAGE* mess
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL nsc_compose_message(NSC_CONTEXT* context, wStream* s, const BYTE* data, UINT32 width,
|
||||
UINT32 height, UINT32 scanline)
|
||||
BOOL nsc_compose_message(NSC_CONTEXT* context, wStream* s, const BYTE* WINPR_RESTRICT data,
|
||||
UINT32 width, UINT32 height, UINT32 scanline)
|
||||
{
|
||||
BOOL rc = 0;
|
||||
NSC_MESSAGE message = { 0 };
|
||||
@@ -515,8 +515,8 @@ BOOL nsc_compose_message(NSC_CONTEXT* context, wStream* s, const BYTE* data, UIN
|
||||
return nsc_write_message(context, s, &message);
|
||||
}
|
||||
|
||||
BOOL nsc_decompose_message(NSC_CONTEXT* context, wStream* s, BYTE* bmpdata, UINT32 x, UINT32 y,
|
||||
UINT32 width, UINT32 height, UINT32 rowstride, UINT32 format,
|
||||
BOOL nsc_decompose_message(NSC_CONTEXT* context, wStream* s, BYTE* WINPR_RESTRICT bmpdata, UINT32 x,
|
||||
UINT32 y, UINT32 width, UINT32 height, UINT32 rowstride, UINT32 format,
|
||||
UINT32 flip)
|
||||
{
|
||||
size_t size = Stream_GetRemainingLength(s);
|
||||
|
||||
Reference in New Issue
Block a user