mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
Fix calling parameters for YuvPixel.
YUVPixel did not have all the requisite parameters. Review URL: http://webrtc-codereview.appspot.com/244005 git-svn-id: http://libyuv.googlecode.com/svn/trunk@35 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
3c0099d09a
commit
3dcaf7341c
@ -510,7 +510,7 @@ void FastConvertYUV444ToRGB32Row(const uint8* y_buf,
|
||||
uint8 u = u_buf[x];
|
||||
uint8 v = v_buf[x];
|
||||
uint8 y = y_buf[x];
|
||||
YuvPixel(y, u, v, rgb_buf);
|
||||
YuvPixel(y, u, v, rgb_buf, 24, 16, 8, 0);
|
||||
rgb_buf += 4; // Advance 1 pixel.
|
||||
}
|
||||
}
|
||||
@ -520,7 +520,7 @@ void FastConvertYToRGB32Row(const uint8* y_buf,
|
||||
int width) {
|
||||
for (int x = 0; x < width; ++x) {
|
||||
uint8 y = y_buf[x];
|
||||
YuvPixel(y, 128, 128, rgb_buf);
|
||||
YuvPixel(y, 128, 128, rgb_buf, 24, 16, 8, 0);
|
||||
rgb_buf += 4; // Advance 1 pixel.
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user