Index: third_party/openmax/omx_stub.cc |
diff --git a/third_party/openmax/omx_stub.cc b/third_party/openmax/omx_stub.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a2a75267773c9b9b31823c960dbda04ff34828c9 |
--- /dev/null |
+++ b/third_party/openmax/omx_stub.cc |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// Satisfies linker dependencies for targets requiring an OpenMAX Core library. |
+// Not intended in any way to be functional!! |
+ |
+#include <OMX_Core.h> |
+ |
+#define NOTIMPLEMENTED_POLICY 3 // Fail at runtime via DCHECK. |
+#include "base/logging.h" |
+ |
+extern "C" { |
+ |
+OMX_API OMX_ERRORTYPE OMX_Init() { |
+ NOTIMPLEMENTED(); |
+ return OMX_ErrorNotImplemented; |
+} |
+ |
+OMX_API OMX_ERRORTYPE OMX_Deinit() { |
+ NOTIMPLEMENTED(); |
+ return OMX_ErrorNotImplemented; |
+} |
+ |
+OMX_API OMX_ERRORTYPE OMX_GetHandle(OMX_HANDLETYPE*, OMX_STRING, OMX_PTR, |
+ OMX_CALLBACKTYPE*) { |
+ NOTIMPLEMENTED(); |
+ return OMX_ErrorNotImplemented; |
+} |
+ |
+OMX_API OMX_ERRORTYPE OMX_FreeHandle(OMX_HANDLETYPE) { |
+ NOTIMPLEMENTED(); |
+ return OMX_ErrorNotImplemented; |
+}; |
+ |
+} // extern "C" |