LCOV - code coverage report
Current view: top level - media/libvpx/libvpx/vp9/encoder - vp9_bitstream.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 7 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
       3             :  *
       4             :  *  Use of this source code is governed by a BSD-style license
       5             :  *  that can be found in the LICENSE file in the root of the source
       6             :  *  tree. An additional intellectual property rights grant can be found
       7             :  *  in the file PATENTS.  All contributing project authors may
       8             :  *  be found in the AUTHORS file in the root of the source tree.
       9             :  */
      10             : 
      11             : #ifndef VP9_ENCODER_VP9_BITSTREAM_H_
      12             : #define VP9_ENCODER_VP9_BITSTREAM_H_
      13             : 
      14             : #ifdef __cplusplus
      15             : extern "C" {
      16             : #endif
      17             : 
      18             : #include "vp9/encoder/vp9_encoder.h"
      19             : 
      20             : typedef struct VP9BitstreamWorkerData {
      21             :   uint8_t *dest;
      22             :   int dest_size;
      23             :   TOKENEXTRA *tok;
      24             :   TOKENEXTRA *tok_end;
      25             :   vpx_writer bit_writer;
      26             :   int tile_idx;
      27             :   unsigned int max_mv_magnitude;
      28             :   // The size of interp_filter_selected in VP9_COMP is actually
      29             :   // MAX_REFERENCE_FRAMES x SWITCHABLE. But when encoding tiles, all we ever do
      30             :   // is increment the very first index (index 0) for the first dimension. Hence
      31             :   // this is sufficient.
      32             :   int interp_filter_selected[1][SWITCHABLE];
      33             :   DECLARE_ALIGNED(16, MACROBLOCKD, xd);
      34             : } VP9BitstreamWorkerData;
      35             : 
      36             : int vp9_get_refresh_mask(VP9_COMP *cpi);
      37             : 
      38             : void vp9_bitstream_encode_tiles_buffer_dealloc(VP9_COMP *const cpi);
      39             : 
      40             : void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, size_t *size);
      41             : 
      42           0 : static INLINE int vp9_preserve_existing_gf(VP9_COMP *cpi) {
      43           0 :   return !cpi->multi_arf_allowed && cpi->refresh_golden_frame &&
      44           0 :          cpi->rc.is_src_frame_alt_ref &&
      45           0 :          (!cpi->use_svc ||  // Add spatial svc base layer case here
      46           0 :           (is_two_pass_svc(cpi) && cpi->svc.spatial_layer_id == 0 &&
      47           0 :            cpi->svc.layer_context[0].gold_ref_idx >= 0 &&
      48           0 :            cpi->oxcf.ss_enable_auto_arf[0]));
      49             : }
      50             : 
      51             : #ifdef __cplusplus
      52             : }  // extern "C"
      53             : #endif
      54             : 
      55             : #endif  // VP9_ENCODER_VP9_BITSTREAM_H_

Generated by: LCOV version 1.13