LCOV - code coverage report
Current view: top level - Codec - EbPictureDecisionQueue.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 10 10 100.0 %
Date: 2019-11-25 17:12:20 Functions: 2 2 100.0 %

          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             : }

Generated by: LCOV version 1.14