@@ -226,14 +226,14 @@ private boolean isHardwareSupportedInCurrentSdkVp8(MediaCodecInfo info) {
226
226
// Intel Vp8 encoder is supported in LOLLIPOP or later, with the intel encoder enabled.
227
227
|| (name .startsWith (INTEL_PREFIX ) && Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP
228
228
&& 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 " ));
230
230
}
231
231
232
232
private boolean isHardwareSupportedInCurrentSdkVp9 (MediaCodecInfo info ) {
233
233
String name = info .getName ();
234
234
return (name .startsWith (QCOM_PREFIX ) || name .startsWith (EXYNOS_PREFIX ) || name .startsWith (HISI_PREFIX )
235
235
|| 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 " )))
237
237
// Both QCOM and Exynos VP9 encoders are supported in N or later.
238
238
&& Build .VERSION .SDK_INT >= Build .VERSION_CODES .N ;
239
239
}
@@ -251,7 +251,7 @@ private boolean isHardwareSupportedInCurrentSdkH264(MediaCodecInfo info) {
251
251
&& Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP )
252
252
|| (name .startsWith (HISI_PREFIX ) && Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT )
253
253
|| (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 " ));
255
255
}
256
256
257
257
private boolean isHardwareSupportedInCurrentSdkH265 (MediaCodecInfo info ) {
@@ -264,7 +264,7 @@ private boolean isHardwareSupportedInCurrentSdkH265(MediaCodecInfo info) {
264
264
// Hisi VP8 encoder seems to be supported. Needs more testing.
265
265
|| (name .startsWith (HISI_PREFIX ) && Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT )
266
266
|| (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 " ));
268
268
}
269
269
270
270
private boolean isMediaCodecAllowed (MediaCodecInfo info ) {
0 commit comments