/* * * Copyright 2014 Rockchip Electronics S.LSI Co. LTD * * 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. */ /* * File: * vpu_mem_pool.h * Description: * mem struct define * Author: * Alpha Lin * Date: * 2014-1-23 */ #ifndef _VPU_MEM_POOL_H_ #define _VPU_MEM_POOL_H_ #include "vpu_api.h" #ifdef __cplusplus extern "C" { #endif #define ENABLE_VPU_MEMORY_POOL_ALLOCATOR 1 #define VPU_MEMORY_POOL_MANAGER_ENABLE 1 typedef struct vpu_display_mem_pool vpu_display_mem_pool; vpu_display_mem_pool* open_vpu_memory_pool(); #if ENABLE_VPU_MEMORY_POOL_ALLOCATOR int create_vpu_memory_pool_allocator(vpu_display_mem_pool **ipool, int num, int size); void release_vpu_memory_pool_allocator(vpu_display_mem_pool *ipool); #endif #ifdef __cplusplus } #endif #endif