mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 19:22:48 +00:00
videotoolbox: add yuv420p to --videotoolbox-format
This commit is contained in:
parent
ae94f329a9
commit
48f9ea7104
@ -692,8 +692,8 @@ Video
|
||||
choice of the format can influence performance considerably. On the other
|
||||
hand, there doesn't appear to be a good way to detect the best format for
|
||||
the given hardware. ``nv12``, the default, works better on modern hardware,
|
||||
while ``uyvy422`` appears to be better for old hardware. ``rgb0`` also
|
||||
works.
|
||||
while ``uyvy422`` appears to be better for old hardware. ``rgb0`` and
|
||||
``yuv420p`` also work.
|
||||
|
||||
``--panscan=<0.0-1.0>``
|
||||
Enables pan-and-scan functionality (cropping the sides of e.g. a 16:9
|
||||
|
@ -69,6 +69,16 @@ static struct vt_format vt_formats[] = {
|
||||
{ GL_RGB_422_APPLE, GL_UNSIGNED_SHORT_8_8_APPLE, GL_RGB, "gbra" }
|
||||
}
|
||||
},
|
||||
{
|
||||
.cvpixfmt = kCVPixelFormatType_420YpCbCr8Planar,
|
||||
.imgfmt = IMGFMT_420P,
|
||||
.planes = 3,
|
||||
.gl = {
|
||||
{ GL_RED, GL_UNSIGNED_BYTE, GL_RED },
|
||||
{ GL_RED, GL_UNSIGNED_BYTE, GL_RED },
|
||||
{ GL_RED, GL_UNSIGNED_BYTE, GL_RED },
|
||||
}
|
||||
},
|
||||
{
|
||||
.cvpixfmt = kCVPixelFormatType_32BGRA,
|
||||
.imgfmt = IMGFMT_RGB0,
|
||||
|
Loading…
Reference in New Issue
Block a user