Browse Source

videotoolbox: allow CVPX_P010 on all Darwin systems

Only OpenGLES isn’t compatible with `x420` formats. Other renderer
implementation using Metal or AVSampleBufferDisplayLayer can display
this chroma just fine.
pull/162/head
Maxime Chapelet 3 years ago
committed by Jean-Baptiste Kempf
parent
commit
d80a7ace36
  1. 3
      modules/codec/videotoolbox/decoder.c

3
modules/codec/videotoolbox/decoder.c

@ -252,10 +252,9 @@ static OSType GetBestChroma(uint8_t i_chroma_format, uint8_t i_depth_luma,
return kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
if (i_depth_luma == 10 && i_depth_chroma == 10)
{
#if !TARGET_OS_IPHONE
if (deviceSupportsHEVC()) /* 42010bit went with HEVC on macOS */
return kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
#endif
/* Force BGRA output (and let VT handle the tone mapping) since the
* Apple openGL* implementation can't handle 16 bit textures. This
* is the case for iOS and some macOS devices (ones that are not

Loading…
Cancel
Save