libfreerdp-codec/rfx: remove RLGR output bit masking and let caller clear the stream for faster speed.

This commit is contained in:
Vic Lee
2012-10-09 20:47:08 +08:00
parent 54cea6acd3
commit 26580c9fbb
2 changed files with 1 additions and 1 deletions

View File

@@ -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; \

View File

@@ -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);