diff options
Diffstat (limited to 'tests/perf/convperf.cxx')
-rw-r--r-- | tests/perf/convperf.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/perf/convperf.cxx b/tests/perf/convperf.cxx index 7a01bae8..c1126e7d 100644 --- a/tests/perf/convperf.cxx +++ b/tests/perf/convperf.cxx @@ -32,9 +32,9 @@ static const int tile = 64; static const int fbsize = 4096; -static rdr::U8 *fb1, *fb2; +static uint8_t *fb1, *fb2; -typedef void (*testfn) (rfb::PixelFormat&, rfb::PixelFormat&, rdr::U8*, rdr::U8*); +typedef void (*testfn) (rfb::PixelFormat&, rfb::PixelFormat&, uint8_t*, uint8_t*); struct TestEntry { const char *label; @@ -43,7 +43,7 @@ struct TestEntry { static void testMemcpy(rfb::PixelFormat &dstpf, rfb::PixelFormat& /*srcpf*/, - rdr::U8 *dst, rdr::U8 *src) + uint8_t *dst, uint8_t *src) { int h; h = tile; @@ -56,21 +56,21 @@ static void testMemcpy(rfb::PixelFormat &dstpf, static void testBuffer(rfb::PixelFormat &dstpf, rfb::PixelFormat &srcpf, - rdr::U8 *dst, rdr::U8 *src) + uint8_t *dst, uint8_t *src) { dstpf.bufferFromBuffer(dst, srcpf, src, tile, tile, fbsize, fbsize); } static void testToRGB(rfb::PixelFormat& /*dstpf*/, rfb::PixelFormat &srcpf, - rdr::U8 *dst, rdr::U8 *src) + uint8_t *dst, uint8_t *src) { srcpf.rgbFromBuffer(dst, src, tile, fbsize, tile); } static void testFromRGB(rfb::PixelFormat &dstpf, rfb::PixelFormat& /*srcpf*/, - rdr::U8 *dst, rdr::U8 *src) + uint8_t *dst, uint8_t *src) { dstpf.bufferFromRGB(dst, src, tile, fbsize, tile); } @@ -81,7 +81,7 @@ static void doTest(testfn fn, rfb::PixelFormat &dstpf, rfb::PixelFormat &srcpf) for (int i = 0;i < 10000;i++) { int x, y; - rdr::U8 *dst, *src; + uint8_t *dst, *src; x = rand() % (fbsize - tile); y = rand() % (fbsize - tile); dst = fb1 + (x + y * fbsize) * dstpf.bpp/8; @@ -135,8 +135,8 @@ int main(int /*argc*/, char** /*argv*/) bufsize = fbsize * fbsize * 4; - fb1 = new rdr::U8[bufsize]; - fb2 = new rdr::U8[bufsize]; + fb1 = new uint8_t[bufsize]; + fb2 = new uint8_t[bufsize]; for (i = 0;i < bufsize;i++) { fb1[i] = rand(); |