mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1659760 - Specify correct FOURCC yuv type when converting IOSurfaces to RGB. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D88238
This commit is contained in:
parent
951058db06
commit
6f7c7f28dc
@ -98,7 +98,7 @@ CreateSourceSurfaceFromLockedMacIOSurface(MacIOSurface* aSurface) {
|
||||
0 /* not used */, mappedSurface.mData,
|
||||
mappedSurface.mStride, 0, 0, size.width,
|
||||
size.height, size.width, size.height,
|
||||
libyuv::kRotate0, libyuv::FOURCC_UYVY);
|
||||
libyuv::kRotate0, libyuv::FOURCC_YUYV);
|
||||
} else {
|
||||
/* Convert to YV16 */
|
||||
size_t cbCrWidth = (ioWidth + 1) >> 1;
|
||||
|
Loading…
Reference in New Issue
Block a user