1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 05:17:39 +03:00
This commit is contained in:
Anton Afanasyeu
2026-05-18 15:55:02 +02:00
parent f547770288
commit f7e200fa94
121 changed files with 140 additions and 10838 deletions

View File

@@ -118,11 +118,8 @@ Java_com_foxx_androidcast_media_codec_jni_NativeCodecBridge_nativeVpxEncoderCrea
(*env)->ReleaseStringUTFChars(env, mime, mime_utf);
return 0L;
}
if (iface == vpx_codec_vp9_cx()) {
vpx_codec_control(&ctx->codec, VP9E_SET_CPUUSED, 8);
} else {
vpx_codec_control(&ctx->codec, VP8E_SET_CPUUSED, 8);
}
/* VP8 and VP9 both use VP8E_SET_CPUUSED (see libvpx tests / vp9_cx_iface.c). */
vpx_codec_control(&ctx->codec, VP8E_SET_CPUUSED, 8);
if (!vpx_img_alloc(&ctx->img, img_fmt(), width, height, 1)) {
vpx_codec_destroy(&ctx->codec);