mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
videotoolbox: fix RGB format
Wrong colors. This didn't matter for the OpenGL interop code, because the CV format was mapped to the correct texture format.
This commit is contained in:
parent
2b5577901d
commit
b5eb326dcb
@ -79,7 +79,7 @@ static struct vt_format vt_formats[] = {
|
||||
},
|
||||
{
|
||||
.cvpixfmt = kCVPixelFormatType_32BGRA,
|
||||
.imgfmt = IMGFMT_RGB0,
|
||||
.imgfmt = IMGFMT_BGR0,
|
||||
.planes = 1,
|
||||
.gl = {
|
||||
{ GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, GL_RGBA }
|
||||
|
@ -9,7 +9,7 @@
|
||||
static const uint32_t map_imgfmt_cvpixfmt[][2] = {
|
||||
{IMGFMT_420P, kCVPixelFormatType_420YpCbCr8Planar},
|
||||
{IMGFMT_UYVY, kCVPixelFormatType_422YpCbCr8},
|
||||
{IMGFMT_RGB0, kCVPixelFormatType_32BGRA},
|
||||
{IMGFMT_BGR0, kCVPixelFormatType_32BGRA},
|
||||
{IMGFMT_NV12, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange},
|
||||
{0}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user