LCOV - code coverage report
Current view: top level - Codec - EbPictureManagerQueue.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 16 16 100.0 %
Date: 2019-11-25 17:38:06 Functions: 3 3 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 "EbPictureManagerQueue.h"
       8             : 
       9       10000 : EbErrorType input_queue_entry_ctor(
      10             :     InputQueueEntry      *entryPtr)
      11             : {
      12             :     (void)entryPtr;
      13       10000 :     return EB_ErrorNone;
      14             : }
      15             : 
      16       10000 : void reference_queue_entry_dctor(EbPtr p)
      17             : {
      18       10000 :     ReferenceQueueEntry* obj = (ReferenceQueueEntry*)p;
      19       10000 :     EB_FREE(obj->list0.list);
      20       10000 :     EB_FREE(obj->list1.list);
      21       10000 : }
      22             : 
      23       10000 : EbErrorType reference_queue_entry_ctor(
      24             :     ReferenceQueueEntry  *entryPtr)
      25             : {
      26       10000 :     entryPtr->dctor = reference_queue_entry_dctor;
      27       10000 :     entryPtr->reference_object_ptr = (EbObjectWrapper*)EB_NULL;
      28       10000 :     entryPtr->picture_number = ~0u;
      29       10000 :     entryPtr->dependent_count = 0;
      30       10000 :     entryPtr->reference_available = EB_FALSE;
      31             : 
      32       10000 :     EB_MALLOC(entryPtr->list0.list, sizeof(int32_t) * (1 << MAX_TEMPORAL_LAYERS));
      33             : 
      34       10000 :     EB_MALLOC(entryPtr->list1.list, sizeof(int32_t) * (1 << MAX_TEMPORAL_LAYERS));
      35             : 
      36       10000 :     return EB_ErrorNone;
      37             : }

Generated by: LCOV version 1.14