summaryrefslogtreecommitdiff
path: root/libopencorehw/android_surface_output_omap34xx.h
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2009-07-17 15:59:20 -0700
committerRebecca Schultz Zavin <rebecca@android.com>2009-07-17 19:01:38 -0700
commitf096e72732263c79e6187f72dd5794b2110045c0 (patch)
tree3eb60e80b7a797d9ee63ca5212e78b30a7e771a9 /libopencorehw/android_surface_output_omap34xx.h
parentd5661d18b6d41478860a6ee1070fbbea3fd5c7fd (diff)
downloadomap3-f096e72732263c79e6187f72dd5794b2110045c0.tar.gz
Adding omap3 libopencorehw hal
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'libopencorehw/android_surface_output_omap34xx.h')
-rw-r--r--libopencorehw/android_surface_output_omap34xx.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/libopencorehw/android_surface_output_omap34xx.h b/libopencorehw/android_surface_output_omap34xx.h
new file mode 100644
index 0000000..ed2aace
--- /dev/null
+++ b/libopencorehw/android_surface_output_omap34xx.h
@@ -0,0 +1,49 @@
+/* ------------------------------------------------------------------
+ * Copyright (C) 2008 PacketVideo
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ * -------------------------------------------------------------------
+ */
+
+#ifndef ANDROID_SURFACE_OUTPUT_OMAP34XXH_INCLUDED
+#define ANDROID_SURFACE_OUTPUT_OMAP34XXH_INCLUDED
+
+#include "android_surface_output.h"
+
+// support for shared contiguous physical memory
+#include <ui/Overlay.h>
+
+
+class AndroidSurfaceOutputOmap34xx : public AndroidSurfaceOutput
+{
+public:
+ AndroidSurfaceOutputOmap34xx();
+
+ // frame buffer interface
+ virtual bool initCheck();
+ virtual PVMFStatus writeFrameBuf(uint8* aData, uint32 aDataLen, const PvmiMediaXferHeader& data_header_info);
+ virtual void postLastFrame();
+ virtual void closeFrameBuf();
+
+ OSCL_IMPORT_REF ~AndroidSurfaceOutputOmap34xx();
+private:
+
+ bool mUseOverlay;
+ sp<Overlay> mOverlay;
+ int mBuffer_count;
+ int mRecycle_buffer_count;
+ void* mOverlay_buffer_address[4];//max buffers supported in overlay is 4
+};
+
+#endif // ANDROID_SURFACE_OUTPUT_OMAP34XX_H_INCLUDED