20 #ifndef FREERDP_LIB_CODEC_RFX_DIFFERENTIAL_H
21 #define FREERDP_LIB_CODEC_RFX_DIFFERENTIAL_H
23 #include <freerdp/codec/rfx.h>
24 #include <freerdp/api.h>
26 static INLINE
void rfx_differential_decode(INT16* WINPR_RESTRICT buffer,
size_t size)
29 INT16* end = &buffer[size - 1];
38 static INLINE
void rfx_differential_encode(INT16* WINPR_RESTRICT buffer,
size_t size)
41 for (
size_t x = 0; x < size - 1; x++)
43 INT16* dst = &buffer[x + 1];
44 const INT16 n2 = *dst;