1 /*
2  *
3  * Copyright 2014 Rockchip Electronics S.LSI Co. LTD
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 /*
18    * File:
19    * vpu_mem_pool.h
20    * Description:
21    * mem struct define
22    * Author:
23    *     Alpha Lin
24    * Date:
25    *    2014-1-23
26  */
27 
28 #ifndef _VPU_MEM_POOL_H_
29 #define _VPU_MEM_POOL_H_
30 
31 #include "vpu_api.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #define ENABLE_VPU_MEMORY_POOL_ALLOCATOR    1
38 #define VPU_MEMORY_POOL_MANAGER_ENABLE      1
39 
40 typedef struct vpu_display_mem_pool vpu_display_mem_pool;
41 
42 vpu_display_mem_pool* open_vpu_memory_pool();
43 
44 #if ENABLE_VPU_MEMORY_POOL_ALLOCATOR
45 int create_vpu_memory_pool_allocator(vpu_display_mem_pool **ipool, int num, int size);
46 void release_vpu_memory_pool_allocator(vpu_display_mem_pool *ipool);
47 #endif
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif
54 
55