Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 12 of 12) sorted by relevance

/hardware/intel/img/psb_video/src/
Dobject_heap.c45 static int object_heap_expand(object_heap_p heap) in object_heap_expand() argument
51 int new_heap_size = heap->heap_size + heap->heap_increment; in object_heap_expand()
53 …new_heap_index = (object_base_p *) realloc(heap->heap_index, new_heap_size * sizeof(object_base_p)… in object_heap_expand()
57 heap->heap_index = new_heap_index; in object_heap_expand()
58 next_free = heap->next_free; in object_heap_expand()
59 for (i = new_heap_size; i-- > heap->heap_size;) { in object_heap_expand()
60 object_base_p obj = (object_base_p) calloc(1, heap->object_size); in object_heap_expand()
61 heap->heap_index[i] = obj; in object_heap_expand()
66 obj->id = i + heap->id_offset; in object_heap_expand()
73 for (i = new_heap_size; i-- > heap->heap_size;) { in object_heap_expand()
[all …]
Dobject_heap.h57 int object_heap_init(object_heap_p heap, int object_size, int id_offset);
63 int object_heap_allocate(object_heap_p heap);
69 object_base_p object_heap_lookup(object_heap_p heap, int id);
75 object_base_p object_heap_first(object_heap_p heap, object_heap_iterator *iter);
81 object_base_p object_heap_next(object_heap_p heap, object_heap_iterator *iter);
86 void object_heap_free(object_heap_p heap, object_base_p obj);
91 void object_heap_destroy(object_heap_p heap);
/hardware/qcom/gps/sdm845/utils/
DLocHeap.cpp312 LocHeapDebug heap; in main() local
316 if (i % checks == 0 && !heap.checkTree()) { in main()
323 heap.push(dynamic_cast<LocRankable&>(*data)); in main()
326 LocRankable* rankable = heap.pop(); in main()
333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main()
334 if (treeSize != heap.getTreeSize()) { in main()
341 if (!heap.checkTree()) { in main()
347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
/hardware/qcom/gps/msm8909/utils/
DLocHeap.cpp312 LocHeapDebug heap; in main() local
316 if (i % checks == 0 && !heap.checkTree()) { in main()
323 heap.push(dynamic_cast<LocRankable&>(*data)); in main()
326 LocRankable* rankable = heap.pop(); in main()
333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main()
334 if (treeSize != heap.getTreeSize()) { in main()
341 if (!heap.checkTree()) { in main()
347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
/hardware/qcom/gps/msm8996/utils/
DLocHeap.cpp312 LocHeapDebug heap; in main() local
316 if (i % checks == 0 && !heap.checkTree()) { in main()
323 heap.push(dynamic_cast<LocRankable&>(*data)); in main()
326 LocRankable* rankable = heap.pop(); in main()
333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main()
334 if (treeSize != heap.getTreeSize()) { in main()
341 if (!heap.checkTree()) { in main()
347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
/hardware/qcom/gps/msm8998/utils/
DLocHeap.cpp312 LocHeapDebug heap; in main() local
316 if (i % checks == 0 && !heap.checkTree()) { in main()
323 heap.push(dynamic_cast<LocRankable&>(*data)); in main()
326 LocRankable* rankable = heap.pop(); in main()
333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main()
334 if (treeSize != heap.getTreeSize()) { in main()
341 if (!heap.checkTree()) { in main()
347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
/hardware/intel/common/libmix/videoencoder/
DIntelMetadataBuffer.cpp82 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); in ReadMemObjFromBinder() local
84 sp<MemoryBase> mem = new MemoryBase(heap, offset, size); in ReadMemObjFromBinder()
96 heap->getHeapID(), mem->pointer(), *((intptr_t *)(mem->pointer())), map->value); in ReadMemObjFromBinder()
140 sp<IMemoryHeap> heap = smem->membase->getMemory(&offset, &size); in WriteMemObjToBinder() local
143 data.writeStrongBinder(IInterface::asBinder(heap)); in WriteMemObjToBinder()
146 heap->getHeapID(), smem->membase->pointer(), *((int *)(smem->membase->pointer()))); in WriteMemObjToBinder()
/hardware/interfaces/cas/1.0/vts/functional/
DVtsHalCasV1_0TargetTest.cpp293 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestInputBuffer() local
294 if (nullptr == heap.get()) { in descrambleTestInputBuffer()
304 nativeHandle->data[0] = heap->getHeapID(); in descrambleTestInputBuffer()
310 .heapBase = hidl_memory("ashmem", hidl_handle(nativeHandle), heap->getSize()), in descrambleTestInputBuffer()
/hardware/qcom/media/sdm845/
Dconfigure.ac84 AC_ARG_ENABLE([targets-that-use-hevc-adsp-heap],
85 AC_HELP_STRING([-targets-that-use-hevc-adsp-heap],
/hardware/qcom/media/msm8998/
Dconfigure.ac94 AC_ARG_ENABLE([targets-that-use-hevc-adsp-heap],
95 AC_HELP_STRING([-targets-that-use-hevc-adsp-heap],
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp4520 int heap = 0; in allocate_extradata() local
4522 heap = ION_ADSP_HEAP_ID; in allocate_extradata()
4524 heap = ION_IOMMU_HEAP_ID; in allocate_extradata()
4529 &drv_ctx.extradata_info.ion.fd_ion_data, 0, heap); in allocate_extradata()
5321 int heap = 0; in allocate_input_buffer() local
5323 heap = ION_ADSP_HEAP_ID; in allocate_input_buffer()
5325 heap = ION_IOMMU_HEAP_ID; in allocate_input_buffer()
5331 &drv_ctx.ip_buf_ion_info[i].fd_ion_data, secure_mode ? ION_SECURE : 0, heap); in allocate_input_buffer()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp4327 int heap = 0; in allocate_extradata() local
4329 heap = ION_ADSP_HEAP_ID; in allocate_extradata()
4334 &drv_ctx.extradata_info.ion.fd_ion_data, 0, heap); in allocate_extradata()
5123 int heap = 0; in allocate_input_buffer() local
5125 heap = ION_ADSP_HEAP_ID; in allocate_input_buffer()
5131 &drv_ctx.ip_buf_ion_info[i].fd_ion_data, secure_mode ? ION_SECURE : 0, heap); in allocate_input_buffer()