Force HEVC disabled on Qualcomm SoCs older than Snapdragon 805

This commit is contained in:
Cameron Gutman 2017-09-19 21:21:23 -07:00
parent b9f1142af7
commit 20c4eac4ef

View File

@ -155,21 +155,24 @@ public class MediaCodecHelper {
LimeLog.info("Added omx.intel to AVC reference frame invalidation support list"); LimeLog.info("Added omx.intel to AVC reference frame invalidation support list");
refFrameInvalidationAvcPrefixes.add("omx.intel"); refFrameInvalidationAvcPrefixes.add("omx.intel");
} }
}
// Qualcomm's early HEVC decoders break hard on our HEVC stream. The best check to // Qualcomm's early HEVC decoders break hard on our HEVC stream. The best check to
// tell the good from the bad decoders are the generation of Adreno GPU included: // tell the good from the bad decoders are the generation of Adreno GPU included:
// 3xx - bad // 3xx - bad
// 4xx - good // 4xx - good
// //
// Unfortunately, it's not that easy to get that information here, so I'll use an // Unfortunately, it's not that easy to get that information here, so I'll use an
// approximation by checking the GLES level (<= 3.0 is bad). // approximation by checking the GLES level (<= 3.0 is bad).
if (configInfo.reqGlEsVersion > 0x30000) { if (configInfo.reqGlEsVersion > 0x30000) {
// FIXME: We prefer reference frame invalidation support (which is only doable on AVC on // FIXME: We prefer reference frame invalidation support (which is only doable on AVC on
// older Qualcomm chips) vs. enabling HEVC by default. The user can override using the settings // older Qualcomm chips) vs. enabling HEVC by default. The user can override using the settings
// to force HEVC on. // to force HEVC on.
//LimeLog.info("Added omx.qcom to supported HEVC decoders based on GLES 3.1+ support"); //LimeLog.info("Added omx.qcom to supported HEVC decoders based on GLES 3.1+ support");
//whitelistedHevcDecoders.add("omx.qcom"); //whitelistedHevcDecoders.add("omx.qcom");
} }
else {
blacklistedDecoderPrefixes.add("OMX.qcom.video.decoder.hevc");
} }
} }
} }