Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
metalefty committed Apr 7, 2024
1 parent 3fa0b15 commit 5bc4ff6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions module/rdpCapture.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,23 @@ isShmStatusActive(enum shared_memory_status status) {
}
}

/******************************************************************************/
/* copy rects with no error checking */
static uint64_t
xxhash64_rfx_tile()
{
int row;
uint64_t hash;
const uint8_t *s8;
hash = seed;
for(row = 0; row < 64; row++)
{
s8 + (y+row) * src_stride + x * 4;

}
return hash;
}

/******************************************************************************/
static Bool
rdpCapture0(rdpClientCon *clientCon, RegionPtr in_reg, BoxPtr *out_rects,
Expand Down Expand Up @@ -956,6 +973,14 @@ rdpCapture2(rdpClientCon *clientCon, RegionPtr in_reg, BoxPtr *out_rects,
}
else
{
/* lazily only do this if hash wasn't identical */
if (rcode != rgnPART)
{
rdpCopyBox_a8r8g8b8_to_yuvalp(x, y,
src, src_stride,
dst, dst_stride,
&rect, 1);
}
clientCon->rfx_crcs[mon_index][crc_offset] = crc;
(*out_rects)[out_rect_index] = rect;
out_rect_index++;
Expand Down

0 comments on commit 5bc4ff6

Please sign in to comment.