LCOV - code coverage report
Current view: top level - Codec - RateControlGopInfo.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 7 0.0 %
Date: 2019-11-25 17:12:20 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /*
       2             : * Copyright(c) 2019 Intel Corporation
       3             : * SPDX - License - Identifier: BSD - 2 - Clause - Patent
       4             : */
       5             : 
       6             : #include "RateControlModel.h"
       7             : #include "RateControlGopInfo.h"
       8             : 
       9           0 : EbRateControlGopInfo *get_gop_infos(EbRateControlGopInfo *gop_info,
      10             :                                     uint64_t position)
      11             : {
      12             :     EbRateControlGopInfo    *current;
      13             : 
      14             :     while (1) { // First frame is always guaranteed to exist
      15           0 :         current = &gop_info[position];
      16             : 
      17           0 :         if (current->exists)
      18           0 :             return current;
      19           0 :         if (position == 0)
      20           0 :             return EB_NULL;
      21           0 :         position--;
      22             :     }
      23             : 
      24             :     return EB_NULL;
      25             : }

Generated by: LCOV version 1.14