summaryrefslogtreecommitdiff
path: root/libopencorehw/buffer_alloc_omap34xx.h
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2009-07-29 17:57:03 -0700
committerRebecca Schultz Zavin <rebecca@android.com>2009-07-30 14:36:40 -0700
commit3410a0df3ef3d3f8254eea6430d999f631191e9f (patch)
tree1b722a80726e2d31bccc130d497682cae838ef11 /libopencorehw/buffer_alloc_omap34xx.h
parentc349f36da560d0edb6aaacc4797f907e979b76c8 (diff)
downloadomap3-3410a0df3ef3d3f8254eea6430d999f631191e9f.tar.gz
Modify libopencorehw to support ti dsp release 25.9
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'libopencorehw/buffer_alloc_omap34xx.h')
-rw-r--r--libopencorehw/buffer_alloc_omap34xx.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/libopencorehw/buffer_alloc_omap34xx.h b/libopencorehw/buffer_alloc_omap34xx.h
new file mode 100644
index 0000000..5493519
--- /dev/null
+++ b/libopencorehw/buffer_alloc_omap34xx.h
@@ -0,0 +1,80 @@
+/*
+ * OMAP3430 support
+ *
+ * Author: Michael Barabanov <michael.barabanov@windriver.com>
+ * Author: Srini Gosangi <srini.gosangi@windriver.com>
+
+ * 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
+ */
+
+/* ------------------------------------------------------------------
+ * 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 BUFFER_ALLOC_OMAP34XXH_INCLUDED
+#define BUFFER_ALLOC_OMAP34XXH_INCLUDED
+
+#include "pv_interface.h"
+
+#ifndef PVMF_FIXEDSIZE_BUFFER_ALLOC_H_INCLUDED
+#include "pvmf_fixedsize_buffer_alloc.h"
+#endif
+
+/* based on test code in pvmi/media_io/pvmiofileoutput/include/pvmi_media_io_fileoutput.h */
+
+class BufferAllocOmap34xx: public PVInterface, public PVMFFixedSizeBufferAlloc
+{
+ public:
+
+ BufferAllocOmap34xx();
+
+ virtual ~BufferAllocOmap34xx();
+
+ OSCL_IMPORT_REF void addRef();
+
+ OSCL_IMPORT_REF void removeRef();
+
+ OSCL_IMPORT_REF bool queryInterface(const PVUuid& uuid, PVInterface*& aInterface) ;
+
+ OSCL_IMPORT_REF OsclAny* allocate();
+
+ OSCL_IMPORT_REF void deallocate(OsclAny* ptr) ;
+
+ OSCL_IMPORT_REF uint32 getBufferSize() ;
+
+ OSCL_IMPORT_REF uint32 getNumBuffers() ;
+
+ public:
+ int32 refCount;
+ int32 bufferSize;
+ int32 maxBuffers;
+ int32 numAllocated;
+ void* buffer_address[4]; //max buffers supported in overlay is 4
+};
+
+#endif