@@ -226,14 +226,14 @@ private boolean isHardwareSupportedInCurrentSdkVp8(MediaCodecInfo info) {
226226 // Intel Vp8 encoder is supported in LOLLIPOP or later, with the intel encoder enabled.
227227 || (name .startsWith (INTEL_PREFIX ) && Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP
228228 && enableIntelVp8Encoder )
229- || vcp .isExtraHardwareSupported (name , "video/x-vnd.on2.vp8" , vcp .parseWithTag (vcp .loadWithDom (extraMediaCodecFile ), "Decoders " ));
229+ || vcp .isExtraHardwareSupported (name , "video/x-vnd.on2.vp8" , vcp .parseWithTag (vcp .loadWithDom (extraMediaCodecFile ), "Encoders " ));
230230 }
231231
232232 private boolean isHardwareSupportedInCurrentSdkVp9 (MediaCodecInfo info ) {
233233 String name = info .getName ();
234234 return (name .startsWith (QCOM_PREFIX ) || name .startsWith (EXYNOS_PREFIX ) || name .startsWith (HISI_PREFIX )
235235 || name .startsWith (IMG_PREFIX )
236- || vcp .isExtraHardwareSupported (name , "video/x-vnd.on2.vp9" , vcp .parseWithTag (vcp .loadWithDom (extraMediaCodecFile ), "Decoders " )))
236+ || vcp .isExtraHardwareSupported (name , "video/x-vnd.on2.vp9" , vcp .parseWithTag (vcp .loadWithDom (extraMediaCodecFile ), "Encoders " )))
237237 // Both QCOM and Exynos VP9 encoders are supported in N or later.
238238 && Build .VERSION .SDK_INT >= Build .VERSION_CODES .N ;
239239 }
@@ -251,7 +251,7 @@ private boolean isHardwareSupportedInCurrentSdkH264(MediaCodecInfo info) {
251251 && Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP )
252252 || (name .startsWith (HISI_PREFIX ) && Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT )
253253 || (name .startsWith (IMG_PREFIX ) && Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT )
254- || vcp .isExtraHardwareSupported (name , "video/avc" , vcp .parseWithTag (vcp .loadWithDom (extraMediaCodecFile ), "Decoders " ));
254+ || vcp .isExtraHardwareSupported (name , "video/avc" , vcp .parseWithTag (vcp .loadWithDom (extraMediaCodecFile ), "Encoders " ));
255255 }
256256
257257 private boolean isHardwareSupportedInCurrentSdkH265 (MediaCodecInfo info ) {
@@ -264,7 +264,7 @@ private boolean isHardwareSupportedInCurrentSdkH265(MediaCodecInfo info) {
264264 // Hisi VP8 encoder seems to be supported. Needs more testing.
265265 || (name .startsWith (HISI_PREFIX ) && Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT )
266266 || (name .startsWith (IMG_PREFIX ) && Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT )
267- || vcp .isExtraHardwareSupported (name , "video/hevc" , vcp .parseWithTag (vcp .loadWithDom (extraMediaCodecFile ), "Decoders " ));
267+ || vcp .isExtraHardwareSupported (name , "video/hevc" , vcp .parseWithTag (vcp .loadWithDom (extraMediaCodecFile ), "Encoders " ));
268268 }
269269
270270 private boolean isMediaCodecAllowed (MediaCodecInfo info ) {
0 commit comments