Coverage Report

Created: 2024-09-06 07:53

/src/libvpx/vp9/encoder/vp9_bitstream.h
Line
Count
Source (jump to first uncovered line)
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 VPX_VP9_ENCODER_VP9_BITSTREAM_H_
12
#define VPX_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
  size_t dest_size;
23
  vpx_writer bit_writer;
24
  int tile_idx;
25
  unsigned int max_mv_magnitude;
26
  // The size of interp_filter_selected in VP9_COMP is actually
27
  // MAX_REFERENCE_FRAMES x SWITCHABLE. But when encoding tiles, all we ever do
28
  // is increment the very first index (index 0) for the first dimension. Hence
29
  // this is sufficient.
30
  int interp_filter_selected[1][SWITCHABLE];
31
  DECLARE_ALIGNED(16, MACROBLOCKD, xd);
32
} VP9BitstreamWorkerData;
33
34
int vp9_get_refresh_mask(VP9_COMP *cpi);
35
36
void vp9_bitstream_encode_tiles_buffer_dealloc(VP9_COMP *const cpi);
37
38
void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, size_t dest_size,
39
                        size_t *size);
40
41
69.0k
static INLINE int vp9_preserve_existing_gf(VP9_COMP *cpi) {
42
69.0k
  return cpi->refresh_golden_frame && cpi->rc.is_src_frame_alt_ref &&
43
69.0k
         !cpi->use_svc;
44
69.0k
}
vp9_encoder.c:vp9_preserve_existing_gf
Line
Count
Source
41
34.4k
static INLINE int vp9_preserve_existing_gf(VP9_COMP *cpi) {
42
34.4k
  return cpi->refresh_golden_frame && cpi->rc.is_src_frame_alt_ref &&
43
34.4k
         !cpi->use_svc;
44
34.4k
}
vp9_bitstream.c:vp9_preserve_existing_gf
Line
Count
Source
41
34.5k
static INLINE int vp9_preserve_existing_gf(VP9_COMP *cpi) {
42
34.5k
  return cpi->refresh_golden_frame && cpi->rc.is_src_frame_alt_ref &&
43
34.5k
         !cpi->use_svc;
44
34.5k
}
Unexecuted instantiation: vp9_ethread.c:vp9_preserve_existing_gf
45
46
#ifdef __cplusplus
47
}  // extern "C"
48
#endif
49
50
#endif  // VPX_VP9_ENCODER_VP9_BITSTREAM_H_