You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user