impement android.media.MediaCodec using libavcodec

The current implementation requires a VA-API driver and a Wayland
compositor with YUV-buffer support. GNOME supports YUV-buffers
since the recent version 45 release
This commit is contained in:
Julian Winkler
2023-10-08 16:09:27 +02:00
parent 23c0b006ef
commit b340032e9f
13 changed files with 834 additions and 13 deletions

View File

@@ -3,7 +3,18 @@ package android.media;
public class MediaCodecList {
public static int getCodecCount() {
return 0;
return 2;
}
public static MediaCodecInfo getCodecInfoAt(int index) {
switch (index) {
case 0:
return new MediaCodecInfo("aac", "audio/mp4a-latm");
case 1:
return new MediaCodecInfo("h264", "video/avc");
default:
return null;
}
}
}