4 * Author: Michael Barabanov <michael.barabanov@windriver.com>
5 * Author: Srini Gosangi <srini.gosangi@windriver.com>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17 * See the License for the specific language governing permissions
20 /* ------------------------------------------------------------------
21 * Copyright (C) 2008 PacketVideo
23 * Licensed under the Apache License, Version 2.0 (the "License");
24 * you may not use this file except in compliance with the License.
25 * You may obtain a copy of the License at
27 * http://www.apache.org/licenses/LICENSE-2.0
29 * Unless required by applicable law or agreed to in writing, software
30 * distributed under the License is distributed on an "AS IS" BASIS,
31 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
33 * See the License for the specific language governing permissions
34 * and limitations under the License.
35 * -------------------------------------------------------------------
39 #ifndef BUFFER_ALLOC_OMAP34XXH_INCLUDED
40 #define BUFFER_ALLOC_OMAP34XXH_INCLUDED
42 #include "pv_interface.h"
44 #ifndef PVMF_FIXEDSIZE_BUFFER_ALLOC_H_INCLUDED
45 #include "pvmf_fixedsize_buffer_alloc.h"
48 /* based on test code in pvmi/media_io/pvmiofileoutput/include/pvmi_media_io_fileoutput.h */
50 class BufferAllocOmap34xx: public PVInterface, public PVMFFixedSizeBufferAlloc
54 BufferAllocOmap34xx();
56 virtual ~BufferAllocOmap34xx();
58 OSCL_IMPORT_REF void addRef();
60 OSCL_IMPORT_REF void removeRef();
62 OSCL_IMPORT_REF bool queryInterface(const PVUuid& uuid, PVInterface*& aInterface) ;
64 OSCL_IMPORT_REF OsclAny* allocate();
66 OSCL_IMPORT_REF void deallocate(OsclAny* ptr) ;
68 OSCL_IMPORT_REF uint32 getBufferSize() ;
70 OSCL_IMPORT_REF uint32 getNumBuffers() ;
77 uint8** buffer_address;