1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Use cross platform types: s/u_int*/uint*

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-10-18 18:43:12 +02:00
parent 3e5908348a
commit 42ec564b9a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -94,9 +94,9 @@ vpx_image Camera::getLastVPXImage()
{
for (int x = 0; x < w; ++x)
{
u_int8_t b = currFrame.frameData.data()[(x + y * w) * 3 + 0];
u_int8_t g = currFrame.frameData.data()[(x + y * w) * 3 + 1];
u_int8_t r = currFrame.frameData.data()[(x + y * w) * 3 + 2];
uint8_t b = currFrame.frameData.data()[(x + y * w) * 3 + 0];
uint8_t g = currFrame.frameData.data()[(x + y * w) * 3 + 1];
uint8_t r = currFrame.frameData.data()[(x + y * w) * 3 + 2];
img.planes[VPX_PLANE_Y][x + y * img.stride[VPX_PLANE_Y]] = ((66 * r + 129 * g + 25 * b) >> 8) + 16;