mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
libfreerdp-codec/rfx: remove RLGR output bit masking and let caller clear the stream for faster speed.
This commit is contained in:
@@ -68,7 +68,6 @@ typedef struct _RFX_BITSTREAM RFX_BITSTREAM;
|
||||
b = nbits; \
|
||||
if (b > bs->bits_left) \
|
||||
b = bs->bits_left; \
|
||||
bs->buffer[bs->byte_pos] &= ~(((1 << b) - 1) << (bs->bits_left - b)); \
|
||||
bs->buffer[bs->byte_pos] |= ((bits >> (nbits - b)) & ((1 << b) - 1)) << (bs->bits_left - b); \
|
||||
bs->bits_left -= b; \
|
||||
nbits -= b; \
|
||||
|
||||
@@ -127,6 +127,7 @@ void wf_update_encode(wfInfo* wfi)
|
||||
|
||||
//printf("x:%d y:%d w:%d h:%d\n", wfi->invalid.left, wfi->invalid.top, width, height);
|
||||
|
||||
stream_clear(wfi->s);
|
||||
rfx_compose_message(wfi->rfx_context, wfi->s, &rect, 1,
|
||||
pDataBits, width, height, stride);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user