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:
@@ -51,6 +51,8 @@
|
||||
// FIXME: put the header in a common place
|
||||
#include "../api-impl-jni/defines.h"
|
||||
|
||||
#include "native_window.h"
|
||||
|
||||
/**
|
||||
* Transforms that can be applied to buffers as they are displayed to a window.
|
||||
*
|
||||
@@ -70,16 +72,6 @@ enum ANativeWindowTransform {
|
||||
ANATIVEWINDOW_TRANSFORM_ROTATE_90,
|
||||
};
|
||||
|
||||
struct ANativeWindow {
|
||||
EGLNativeWindowType egl_window;
|
||||
GtkWidget *surface_view_widget;
|
||||
struct wl_display *wayland_display;
|
||||
struct wl_surface *wayland_surface;
|
||||
Display *x11_display;
|
||||
gulong resize_handler;
|
||||
int refcount;
|
||||
};
|
||||
|
||||
/**
|
||||
* Opaque type that provides access to a native window.
|
||||
*
|
||||
|
||||
17
src/libandroid/native_window.h
Normal file
17
src/libandroid/native_window.h
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <jni.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
struct ANativeWindow {
|
||||
EGLNativeWindowType egl_window;
|
||||
GtkWidget *surface_view_widget;
|
||||
struct wl_display *wayland_display;
|
||||
struct wl_surface *wayland_surface;
|
||||
Display *x11_display;
|
||||
gulong resize_handler;
|
||||
int refcount;
|
||||
};
|
||||
|
||||
struct ANativeWindow *ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
|
||||
Reference in New Issue
Block a user