From 7cb0d39016ff8061fe9fc2967870c145a6ffa2ac Mon Sep 17 00:00:00 2001 From: Rachad Date: Tue, 29 Jul 2014 17:53:53 -0700 Subject: 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 --- libs/gui/Surface.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libs/gui') 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 #include +#include #include @@ -443,6 +444,9 @@ int Surface::perform(int operation, va_list args) 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 @@ int Surface::dispatchUnlockAndPost(va_list args __attribute__((unused))) { return unlockAndPost(); } +int Surface::dispatchSetSidebandStream(va_list args) { + native_handle_t* sH = va_arg(args, native_handle_t*); + sp sidebandHandle = NativeHandle::create(sH, false); + setSidebandStream(sidebandHandle); + return OK; +} int Surface::connect(int api) { ATRACE_CALL(); -- cgit v1.1