Tunneled Video Playback support
Added native_window_set_sideband_stream() method to Surface.[h|cpp]
Added ConfigureVideoTunnelModeParams OMX configuration structure to
HardwareAPI.h
Bug: 16132368
Change-Id: I28fa1b9dbe858d93e353e0991098cad45c626bd9
diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp
index 86451be..b56030e 100644
--- a/libs/gui/Surface.cpp
+++ b/libs/gui/Surface.cpp
@@ -24,6 +24,7 @@
#include <utils/Log.h>
#include <utils/Trace.h>
+#include <utils/NativeHandle.h>
#include <ui/Fence.h>
@@ -443,6 +444,9 @@
case NATIVE_WINDOW_API_DISCONNECT:
res = dispatchDisconnect(args);
break;
+ case NATIVE_WINDOW_SET_SIDEBAND_STREAM:
+ res = dispatchSetSidebandStream(args);
+ break;
default:
res = NAME_NOT_FOUND;
break;
@@ -533,6 +537,12 @@
return unlockAndPost();
}
+int Surface::dispatchSetSidebandStream(va_list args) {
+ native_handle_t* sH = va_arg(args, native_handle_t*);
+ sp<NativeHandle> sidebandHandle = NativeHandle::create(sH, false);
+ setSidebandStream(sidebandHandle);
+ return OK;
+}
int Surface::connect(int api) {
ATRACE_CALL();