Commit 1b7e1c4b authored by Thomas Guillem's avatar Thomas Guillem

videotoolbox: force P010 for HEVC10bits

This allow smooth 4K HEVC 10bits playback on mac book.

TODO: Maybe, the same can be done for iOS.
parent 1aa9de93
......@@ -721,6 +721,20 @@ static bool LateStartHEVC(decoder_t *p_dec)
static bool CodecSupportedHEVC(decoder_t *p_dec)
decoder_sys_t *p_sys = p_dec->p_sys;
if (p_sys->i_forced_cvpx_format == 0)
/* Force P010 chroma instead of RGBA in order to improve performances. */
uint8_t i_profile, i_level;
if (hxxx_helper_get_current_profile_level(&p_sys->hh, &i_profile,
return true;
if (i_profile == HEVC_PROFILE_MAIN_10)
p_sys->i_forced_cvpx_format = 'x420'; /* kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange */
return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment