summaryrefslogtreecommitdiff
path: root/libavcodec/mediacodec_surface.h
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2019-09-05 12:49:00 -0700
committerAman Gupta <aman@tmm1.net>2019-09-10 13:51:05 -0700
commit7fddf4b2662b25f048f4dbed74cf28cd375694fc (patch)
tree79e4857365664f678eb87bc76db62072b8f6756c /libavcodec/mediacodec_surface.h
parent8a3623e2fbde8cb2da3235bf9e230f3512a31c34 (diff)
avcodec/mediacodec_surface: define and use FFANativeWindow to mimic NDK interface
This will make it easy to switch to ANativeWindow_fromSurface and ANativeWindow_release in the future. Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavcodec/mediacodec_surface.h')
-rw-r--r--libavcodec/mediacodec_surface.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/mediacodec_surface.h b/libavcodec/mediacodec_surface.h
index 0178b8ae71..933dc2bf51 100644
--- a/libavcodec/mediacodec_surface.h
+++ b/libavcodec/mediacodec_surface.h
@@ -25,7 +25,10 @@
#include "libavcodec/avcodec.h"
-void *ff_mediacodec_surface_ref(void *surface, void *log_ctx);
-int ff_mediacodec_surface_unref(void *surface, void *log_ctx);
+struct FFANativeWindow;
+typedef struct FFANativeWindow FFANativeWindow;
+
+FFANativeWindow *ff_mediacodec_surface_ref(void *surface, void *log_ctx);
+int ff_mediacodec_surface_unref(FFANativeWindow *window, void *log_ctx);
#endif /* AVCODEC_MEDIACODEC_SURFACE_H */