Line data Source code
1 : /* 2 : * Copyright(c) 2019 Intel Corporation 3 : * SPDX - License - Identifier: BSD - 2 - Clause - Patent 4 : */ 5 : 6 : #include <stdlib.h> 7 : #include "EbPictureDecisionQueue.h" 8 : 9 10000 : static void pa_reference_queue_entry_dctor(EbPtr p) 10 : { 11 10000 : PaReferenceQueueEntry* obj = (PaReferenceQueueEntry*)p; 12 10000 : EB_FREE(obj->list0.list); 13 10000 : EB_FREE(obj->list1.list); 14 10000 : } 15 : 16 10000 : EbErrorType pa_reference_queue_entry_ctor( 17 : PaReferenceQueueEntry *entryPtr) 18 : { 19 10000 : entryPtr->dctor = pa_reference_queue_entry_dctor; 20 10000 : EB_MALLOC(entryPtr->list0.list, sizeof(int32_t) * (1 << MAX_TEMPORAL_LAYERS)); 21 10000 : EB_MALLOC(entryPtr->list1.list, sizeof(int32_t) * (1 << MAX_TEMPORAL_LAYERS)); 22 : 23 10000 : return EB_ErrorNone; 24 : }