Coverage Report

Created: 2026-10-28 08:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libvpx/vpx_dsp/bitwriter.h
Line
Count
Source
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_VPX_DSP_BITWRITER_H_
12
#define VPX_VPX_DSP_BITWRITER_H_
13
14
#include <stdio.h>
15
16
#include "vpx_ports/compiler_attributes.h"
17
#include "vpx_ports/mem.h"
18
19
#include "vpx_dsp/prob.h"
20
#if CONFIG_BITSTREAM_DEBUG
21
#include "vpx_util/vpx_debug_util.h"
22
#endif  // CONFIG_BITSTREAM_DEBUG
23
24
#ifdef __cplusplus
25
extern "C" {
26
#endif
27
28
typedef struct vpx_writer {
29
  unsigned int lowvalue;
30
  unsigned int range;
31
  int count;
32
  // Whether there has been an error.
33
  int error;
34
  // We maintain the invariant that pos <= size, i.e., we never write beyond
35
  // the end of the buffer. If pos would be incremented to be greater than
36
  // size, leave pos unchanged and set error to 1.
37
  unsigned int pos;
38
  unsigned int size;
39
  uint8_t *buffer;
40
} vpx_writer;
41
42
void vpx_start_encode(vpx_writer *br, uint8_t *source, size_t size);
43
// Returns 0 on success and returns -1 in case of error.
44
int vpx_stop_encode(vpx_writer *br);
45
46
static INLINE VPX_NO_UNSIGNED_SHIFT_CHECK void vpx_write(vpx_writer *br,
47
                                                         int bit,
48
819M
                                                         int probability) {
49
819M
  unsigned int split;
50
819M
  int count = br->count;
51
819M
  unsigned int range = br->range;
52
819M
  unsigned int lowvalue = br->lowvalue;
53
819M
  int shift;
54
55
#if CONFIG_BITSTREAM_DEBUG
56
  /*
57
  int queue_r = 0;
58
  int frame_idx_r = 0;
59
  int queue_w = bitstream_queue_get_write();
60
  int frame_idx_w = bitstream_queue_get_frame_write();
61
  if (frame_idx_w == frame_idx_r && queue_w == queue_r) {
62
    fprintf(stderr, "\n *** bitstream queue at frame_idx_w %d queue_w %d\n",
63
            frame_idx_w, queue_w);
64
    assert(0);
65
  }
66
  */
67
  bitstream_queue_push(bit, probability);
68
#endif
69
70
819M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
819M
  range = split;
73
74
819M
  if (bit) {
75
477M
    lowvalue += split;
76
477M
    range = br->range - split;
77
477M
  }
78
79
819M
  shift = vpx_norm[range];
80
81
819M
  range <<= shift;
82
819M
  count += shift;
83
84
819M
  if (count >= 0) {
85
70.6M
    int offset = shift - count;
86
87
70.6M
    if (!br->error) {
88
70.6M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
413
        int x = (int)br->pos - 1;
90
91
569
        while (x >= 0 && br->buffer[x] == 0xff) {
92
156
          br->buffer[x] = 0;
93
156
          x--;
94
156
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
413
        br->buffer[x] += 1;
98
413
      }
99
100
70.6M
      if (br->pos < br->size) {
101
70.6M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
70.6M
      } else {
103
76
        br->error = 1;
104
76
      }
105
70.6M
    }
106
70.6M
    lowvalue <<= offset;
107
70.6M
    shift = count;
108
70.6M
    lowvalue &= 0xffffff;
109
70.6M
    count -= 8;
110
70.6M
  }
111
112
819M
  lowvalue <<= shift;
113
819M
  br->count = count;
114
819M
  br->lowvalue = lowvalue;
115
819M
  br->range = range;
116
819M
}
Unexecuted instantiation: vp9_frame_scale.c:vpx_write
Unexecuted instantiation: vp9_encoder.c:vpx_write
Unexecuted instantiation: vp9_picklpf.c:vpx_write
Unexecuted instantiation: vp9_quantize.c:vpx_write
Unexecuted instantiation: vp9_ratectrl.c:vpx_write
Unexecuted instantiation: vp9_rd.c:vpx_write
Unexecuted instantiation: vp9_segmentation.c:vpx_write
Unexecuted instantiation: vp9_speed_features.c:vpx_write
Unexecuted instantiation: vp9_svc_layercontext.c:vpx_write
Unexecuted instantiation: vp9_tokenize.c:vpx_write
Unexecuted instantiation: vp9_aq_variance.c:vpx_write
Unexecuted instantiation: vp9_aq_360.c:vpx_write
Unexecuted instantiation: vp9_aq_cyclicrefresh.c:vpx_write
Unexecuted instantiation: vp9_aq_complexity.c:vpx_write
Unexecuted instantiation: vp9_alt_ref_aq.c:vpx_write
Unexecuted instantiation: vp9_skin_detection.c:vpx_write
Unexecuted instantiation: vp9_noise_estimate.c:vpx_write
Unexecuted instantiation: vp9_ext_ratectrl.c:vpx_write
Unexecuted instantiation: vp9_temporal_filter.c:vpx_write
Unexecuted instantiation: vp9_tpl_model.c:vpx_write
Unexecuted instantiation: vp9_mbgraph.c:vpx_write
Unexecuted instantiation: temporal_filter_sse4.c:vpx_write
Unexecuted instantiation: highbd_temporal_filter_sse4.c:vpx_write
Unexecuted instantiation: vp9_cx_iface.c:vpx_write
vp9_bitstream.c:vpx_write
Line
Count
Source
48
795M
                                                         int probability) {
49
795M
  unsigned int split;
50
795M
  int count = br->count;
51
795M
  unsigned int range = br->range;
52
795M
  unsigned int lowvalue = br->lowvalue;
53
795M
  int shift;
54
55
#if CONFIG_BITSTREAM_DEBUG
56
  /*
57
  int queue_r = 0;
58
  int frame_idx_r = 0;
59
  int queue_w = bitstream_queue_get_write();
60
  int frame_idx_w = bitstream_queue_get_frame_write();
61
  if (frame_idx_w == frame_idx_r && queue_w == queue_r) {
62
    fprintf(stderr, "\n *** bitstream queue at frame_idx_w %d queue_w %d\n",
63
            frame_idx_w, queue_w);
64
    assert(0);
65
  }
66
  */
67
  bitstream_queue_push(bit, probability);
68
#endif
69
70
795M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
795M
  range = split;
73
74
795M
  if (bit) {
75
473M
    lowvalue += split;
76
473M
    range = br->range - split;
77
473M
  }
78
79
795M
  shift = vpx_norm[range];
80
81
795M
  range <<= shift;
82
795M
  count += shift;
83
84
795M
  if (count >= 0) {
85
69.2M
    int offset = shift - count;
86
87
69.2M
    if (!br->error) {
88
69.2M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
403
        int x = (int)br->pos - 1;
90
91
558
        while (x >= 0 && br->buffer[x] == 0xff) {
92
155
          br->buffer[x] = 0;
93
155
          x--;
94
155
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
403
        br->buffer[x] += 1;
98
403
      }
99
100
69.2M
      if (br->pos < br->size) {
101
69.2M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
69.2M
      } else {
103
73
        br->error = 1;
104
73
      }
105
69.2M
    }
106
69.2M
    lowvalue <<= offset;
107
69.2M
    shift = count;
108
69.2M
    lowvalue &= 0xffffff;
109
69.2M
    count -= 8;
110
69.2M
  }
111
112
795M
  lowvalue <<= shift;
113
795M
  br->count = count;
114
795M
  br->lowvalue = lowvalue;
115
795M
  br->range = range;
116
795M
}
Unexecuted instantiation: vp9_context_tree.c:vpx_write
Unexecuted instantiation: vp9_encodeframe.c:vpx_write
Unexecuted instantiation: vp9_encodemb.c:vpx_write
vp9_encodemv.c:vpx_write
Line
Count
Source
48
8.69M
                                                         int probability) {
49
8.69M
  unsigned int split;
50
8.69M
  int count = br->count;
51
8.69M
  unsigned int range = br->range;
52
8.69M
  unsigned int lowvalue = br->lowvalue;
53
8.69M
  int shift;
54
55
#if CONFIG_BITSTREAM_DEBUG
56
  /*
57
  int queue_r = 0;
58
  int frame_idx_r = 0;
59
  int queue_w = bitstream_queue_get_write();
60
  int frame_idx_w = bitstream_queue_get_frame_write();
61
  if (frame_idx_w == frame_idx_r && queue_w == queue_r) {
62
    fprintf(stderr, "\n *** bitstream queue at frame_idx_w %d queue_w %d\n",
63
            frame_idx_w, queue_w);
64
    assert(0);
65
  }
66
  */
67
  bitstream_queue_push(bit, probability);
68
#endif
69
70
8.69M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
8.69M
  range = split;
73
74
8.69M
  if (bit) {
75
3.29M
    lowvalue += split;
76
3.29M
    range = br->range - split;
77
3.29M
  }
78
79
8.69M
  shift = vpx_norm[range];
80
81
8.69M
  range <<= shift;
82
8.69M
  count += shift;
83
84
8.69M
  if (count >= 0) {
85
447k
    int offset = shift - count;
86
87
447k
    if (!br->error) {
88
447k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
10
        int x = (int)br->pos - 1;
90
91
11
        while (x >= 0 && br->buffer[x] == 0xff) {
92
1
          br->buffer[x] = 0;
93
1
          x--;
94
1
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
10
        br->buffer[x] += 1;
98
10
      }
99
100
447k
      if (br->pos < br->size) {
101
447k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
447k
      } else {
103
0
        br->error = 1;
104
0
      }
105
447k
    }
106
447k
    lowvalue <<= offset;
107
447k
    shift = count;
108
447k
    lowvalue &= 0xffffff;
109
447k
    count -= 8;
110
447k
  }
111
112
8.69M
  lowvalue <<= shift;
113
8.69M
  br->count = count;
114
8.69M
  br->lowvalue = lowvalue;
115
8.69M
  br->range = range;
116
8.69M
}
Unexecuted instantiation: vp9_ethread.c:vpx_write
Unexecuted instantiation: vp9_firstpass.c:vpx_write
Unexecuted instantiation: vp9_lookahead.c:vpx_write
Unexecuted instantiation: vp9_multi_thread.c:vpx_write
Unexecuted instantiation: vp9_mcomp.c:vpx_write
Unexecuted instantiation: vp9_rdopt.c:vpx_write
Unexecuted instantiation: vp9_pickmode.c:vpx_write
vp9_subexp.c:vpx_write
Line
Count
Source
48
10.3M
                                                         int probability) {
49
10.3M
  unsigned int split;
50
10.3M
  int count = br->count;
51
10.3M
  unsigned int range = br->range;
52
10.3M
  unsigned int lowvalue = br->lowvalue;
53
10.3M
  int shift;
54
55
#if CONFIG_BITSTREAM_DEBUG
56
  /*
57
  int queue_r = 0;
58
  int frame_idx_r = 0;
59
  int queue_w = bitstream_queue_get_write();
60
  int frame_idx_w = bitstream_queue_get_frame_write();
61
  if (frame_idx_w == frame_idx_r && queue_w == queue_r) {
62
    fprintf(stderr, "\n *** bitstream queue at frame_idx_w %d queue_w %d\n",
63
            frame_idx_w, queue_w);
64
    assert(0);
65
  }
66
  */
67
  bitstream_queue_push(bit, probability);
68
#endif
69
70
10.3M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
10.3M
  range = split;
73
74
10.3M
  if (bit) {
75
1.38M
    lowvalue += split;
76
1.38M
    range = br->range - split;
77
1.38M
  }
78
79
10.3M
  shift = vpx_norm[range];
80
81
10.3M
  range <<= shift;
82
10.3M
  count += shift;
83
84
10.3M
  if (count >= 0) {
85
372k
    int offset = shift - count;
86
87
372k
    if (!br->error) {
88
372k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
0
        int x = (int)br->pos - 1;
90
91
0
        while (x >= 0 && br->buffer[x] == 0xff) {
92
0
          br->buffer[x] = 0;
93
0
          x--;
94
0
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
0
        br->buffer[x] += 1;
98
0
      }
99
100
372k
      if (br->pos < br->size) {
101
372k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
372k
      } else {
103
0
        br->error = 1;
104
0
      }
105
372k
    }
106
372k
    lowvalue <<= offset;
107
372k
    shift = count;
108
372k
    lowvalue &= 0xffffff;
109
372k
    count -= 8;
110
372k
  }
111
112
10.3M
  lowvalue <<= shift;
113
10.3M
  br->count = count;
114
10.3M
  br->lowvalue = lowvalue;
115
10.3M
  br->range = range;
116
10.3M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write
bitwriter.c:vpx_write
Line
Count
Source
48
5.01M
                                                         int probability) {
49
5.01M
  unsigned int split;
50
5.01M
  int count = br->count;
51
5.01M
  unsigned int range = br->range;
52
5.01M
  unsigned int lowvalue = br->lowvalue;
53
5.01M
  int shift;
54
55
#if CONFIG_BITSTREAM_DEBUG
56
  /*
57
  int queue_r = 0;
58
  int frame_idx_r = 0;
59
  int queue_w = bitstream_queue_get_write();
60
  int frame_idx_w = bitstream_queue_get_frame_write();
61
  if (frame_idx_w == frame_idx_r && queue_w == queue_r) {
62
    fprintf(stderr, "\n *** bitstream queue at frame_idx_w %d queue_w %d\n",
63
            frame_idx_w, queue_w);
64
    assert(0);
65
  }
66
  */
67
  bitstream_queue_push(bit, probability);
68
#endif
69
70
5.01M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
5.01M
  range = split;
73
74
5.01M
  if (bit) {
75
0
    lowvalue += split;
76
0
    range = br->range - split;
77
0
  }
78
79
5.01M
  shift = vpx_norm[range];
80
81
5.01M
  range <<= shift;
82
5.01M
  count += shift;
83
84
5.01M
  if (count >= 0) {
85
524k
    int offset = shift - count;
86
87
524k
    if (!br->error) {
88
523k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
0
        int x = (int)br->pos - 1;
90
91
0
        while (x >= 0 && br->buffer[x] == 0xff) {
92
0
          br->buffer[x] = 0;
93
0
          x--;
94
0
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
0
        br->buffer[x] += 1;
98
0
      }
99
100
523k
      if (br->pos < br->size) {
101
523k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
523k
      } else {
103
3
        br->error = 1;
104
3
      }
105
523k
    }
106
524k
    lowvalue <<= offset;
107
524k
    shift = count;
108
524k
    lowvalue &= 0xffffff;
109
524k
    count -= 8;
110
524k
  }
111
112
5.01M
  lowvalue <<= shift;
113
5.01M
  br->count = count;
114
5.01M
  br->lowvalue = lowvalue;
115
5.01M
  br->range = range;
116
5.01M
}
117
118
90.3M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
90.3M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
90.3M
}
Unexecuted instantiation: vp9_frame_scale.c:vpx_write_bit
Unexecuted instantiation: vp9_encoder.c:vpx_write_bit
Unexecuted instantiation: vp9_picklpf.c:vpx_write_bit
Unexecuted instantiation: vp9_quantize.c:vpx_write_bit
Unexecuted instantiation: vp9_ratectrl.c:vpx_write_bit
Unexecuted instantiation: vp9_rd.c:vpx_write_bit
Unexecuted instantiation: vp9_segmentation.c:vpx_write_bit
Unexecuted instantiation: vp9_speed_features.c:vpx_write_bit
Unexecuted instantiation: vp9_svc_layercontext.c:vpx_write_bit
Unexecuted instantiation: vp9_tokenize.c:vpx_write_bit
Unexecuted instantiation: vp9_aq_variance.c:vpx_write_bit
Unexecuted instantiation: vp9_aq_360.c:vpx_write_bit
Unexecuted instantiation: vp9_aq_cyclicrefresh.c:vpx_write_bit
Unexecuted instantiation: vp9_aq_complexity.c:vpx_write_bit
Unexecuted instantiation: vp9_alt_ref_aq.c:vpx_write_bit
Unexecuted instantiation: vp9_skin_detection.c:vpx_write_bit
Unexecuted instantiation: vp9_noise_estimate.c:vpx_write_bit
Unexecuted instantiation: vp9_ext_ratectrl.c:vpx_write_bit
Unexecuted instantiation: vp9_temporal_filter.c:vpx_write_bit
Unexecuted instantiation: vp9_tpl_model.c:vpx_write_bit
Unexecuted instantiation: vp9_mbgraph.c:vpx_write_bit
Unexecuted instantiation: temporal_filter_sse4.c:vpx_write_bit
Unexecuted instantiation: highbd_temporal_filter_sse4.c:vpx_write_bit
Unexecuted instantiation: vp9_cx_iface.c:vpx_write_bit
vp9_bitstream.c:vpx_write_bit
Line
Count
Source
118
82.4M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
82.4M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
82.4M
}
Unexecuted instantiation: vp9_context_tree.c:vpx_write_bit
Unexecuted instantiation: vp9_encodeframe.c:vpx_write_bit
Unexecuted instantiation: vp9_encodemb.c:vpx_write_bit
vp9_encodemv.c:vpx_write_bit
Line
Count
Source
118
53.6k
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
53.6k
  vpx_write(w, bit, 128);  // vpx_prob_half
120
53.6k
}
Unexecuted instantiation: vp9_ethread.c:vpx_write_bit
Unexecuted instantiation: vp9_firstpass.c:vpx_write_bit
Unexecuted instantiation: vp9_lookahead.c:vpx_write_bit
Unexecuted instantiation: vp9_multi_thread.c:vpx_write_bit
Unexecuted instantiation: vp9_mcomp.c:vpx_write_bit
Unexecuted instantiation: vp9_rdopt.c:vpx_write_bit
Unexecuted instantiation: vp9_pickmode.c:vpx_write_bit
vp9_subexp.c:vpx_write_bit
Line
Count
Source
118
2.91M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
2.91M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
2.91M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write_bit
bitwriter.c:vpx_write_bit
Line
Count
Source
118
5.01M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
5.01M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
5.01M
}
121
122
1.32M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.32M
  int bit;
124
125
4.40M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.32M
}
Unexecuted instantiation: vp9_frame_scale.c:vpx_write_literal
Unexecuted instantiation: vp9_encoder.c:vpx_write_literal
Unexecuted instantiation: vp9_picklpf.c:vpx_write_literal
Unexecuted instantiation: vp9_quantize.c:vpx_write_literal
Unexecuted instantiation: vp9_ratectrl.c:vpx_write_literal
Unexecuted instantiation: vp9_rd.c:vpx_write_literal
Unexecuted instantiation: vp9_segmentation.c:vpx_write_literal
Unexecuted instantiation: vp9_speed_features.c:vpx_write_literal
Unexecuted instantiation: vp9_svc_layercontext.c:vpx_write_literal
Unexecuted instantiation: vp9_tokenize.c:vpx_write_literal
Unexecuted instantiation: vp9_aq_variance.c:vpx_write_literal
Unexecuted instantiation: vp9_aq_360.c:vpx_write_literal
Unexecuted instantiation: vp9_aq_cyclicrefresh.c:vpx_write_literal
Unexecuted instantiation: vp9_aq_complexity.c:vpx_write_literal
Unexecuted instantiation: vp9_alt_ref_aq.c:vpx_write_literal
Unexecuted instantiation: vp9_skin_detection.c:vpx_write_literal
Unexecuted instantiation: vp9_noise_estimate.c:vpx_write_literal
Unexecuted instantiation: vp9_ext_ratectrl.c:vpx_write_literal
Unexecuted instantiation: vp9_temporal_filter.c:vpx_write_literal
Unexecuted instantiation: vp9_tpl_model.c:vpx_write_literal
Unexecuted instantiation: vp9_mbgraph.c:vpx_write_literal
Unexecuted instantiation: temporal_filter_sse4.c:vpx_write_literal
Unexecuted instantiation: highbd_temporal_filter_sse4.c:vpx_write_literal
Unexecuted instantiation: vp9_cx_iface.c:vpx_write_literal
vp9_bitstream.c:vpx_write_literal
Line
Count
Source
122
59.3k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
59.3k
  int bit;
124
125
178k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
59.3k
}
Unexecuted instantiation: vp9_context_tree.c:vpx_write_literal
Unexecuted instantiation: vp9_encodeframe.c:vpx_write_literal
Unexecuted instantiation: vp9_encodemb.c:vpx_write_literal
vp9_encodemv.c:vpx_write_literal
Line
Count
Source
122
7.66k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
7.66k
  int bit;
124
125
61.2k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
7.66k
}
Unexecuted instantiation: vp9_ethread.c:vpx_write_literal
Unexecuted instantiation: vp9_firstpass.c:vpx_write_literal
Unexecuted instantiation: vp9_lookahead.c:vpx_write_literal
Unexecuted instantiation: vp9_multi_thread.c:vpx_write_literal
Unexecuted instantiation: vp9_mcomp.c:vpx_write_literal
Unexecuted instantiation: vp9_rdopt.c:vpx_write_literal
Unexecuted instantiation: vp9_pickmode.c:vpx_write_literal
vp9_subexp.c:vpx_write_literal
Line
Count
Source
122
1.25M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.25M
  int bit;
124
125
4.16M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.25M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write_literal
Unexecuted instantiation: bitwriter.c:vpx_write_literal
127
128
#define vpx_write_prob(w, v) vpx_write_literal((w), (v), 8)
129
130
#ifdef __cplusplus
131
}  // extern "C"
132
#endif
133
134
#endif  // VPX_VPX_DSP_BITWRITER_H_