Coverage Report

Created: 2026-07-25 07:52

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
610M
                                                         int probability) {
49
610M
  unsigned int split;
50
610M
  int count = br->count;
51
610M
  unsigned int range = br->range;
52
610M
  unsigned int lowvalue = br->lowvalue;
53
610M
  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
610M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
610M
  range = split;
73
74
610M
  if (bit) {
75
356M
    lowvalue += split;
76
356M
    range = br->range - split;
77
356M
  }
78
79
610M
  shift = vpx_norm[range];
80
81
610M
  range <<= shift;
82
610M
  count += shift;
83
84
610M
  if (count >= 0) {
85
53.3M
    int offset = shift - count;
86
87
53.3M
    if (!br->error) {
88
53.3M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
310
        int x = (int)br->pos - 1;
90
91
462
        while (x >= 0 && br->buffer[x] == 0xff) {
92
152
          br->buffer[x] = 0;
93
152
          x--;
94
152
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
310
        br->buffer[x] += 1;
98
310
      }
99
100
53.3M
      if (br->pos < br->size) {
101
53.3M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
53.3M
      } else {
103
45
        br->error = 1;
104
45
      }
105
53.3M
    }
106
53.3M
    lowvalue <<= offset;
107
53.3M
    shift = count;
108
53.3M
    lowvalue &= 0xffffff;
109
53.3M
    count -= 8;
110
53.3M
  }
111
112
610M
  lowvalue <<= shift;
113
610M
  br->count = count;
114
610M
  br->lowvalue = lowvalue;
115
610M
  br->range = range;
116
610M
}
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
591M
                                                         int probability) {
49
591M
  unsigned int split;
50
591M
  int count = br->count;
51
591M
  unsigned int range = br->range;
52
591M
  unsigned int lowvalue = br->lowvalue;
53
591M
  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
591M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
591M
  range = split;
73
74
591M
  if (bit) {
75
352M
    lowvalue += split;
76
352M
    range = br->range - split;
77
352M
  }
78
79
591M
  shift = vpx_norm[range];
80
81
591M
  range <<= shift;
82
591M
  count += shift;
83
84
591M
  if (count >= 0) {
85
52.3M
    int offset = shift - count;
86
87
52.3M
    if (!br->error) {
88
52.3M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
301
        int x = (int)br->pos - 1;
90
91
452
        while (x >= 0 && br->buffer[x] == 0xff) {
92
151
          br->buffer[x] = 0;
93
151
          x--;
94
151
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
301
        br->buffer[x] += 1;
98
301
      }
99
100
52.3M
      if (br->pos < br->size) {
101
52.3M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
52.3M
      } else {
103
44
        br->error = 1;
104
44
      }
105
52.3M
    }
106
52.3M
    lowvalue <<= offset;
107
52.3M
    shift = count;
108
52.3M
    lowvalue &= 0xffffff;
109
52.3M
    count -= 8;
110
52.3M
  }
111
112
591M
  lowvalue <<= shift;
113
591M
  br->count = count;
114
591M
  br->lowvalue = lowvalue;
115
591M
  br->range = range;
116
591M
}
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
6.85M
                                                         int probability) {
49
6.85M
  unsigned int split;
50
6.85M
  int count = br->count;
51
6.85M
  unsigned int range = br->range;
52
6.85M
  unsigned int lowvalue = br->lowvalue;
53
6.85M
  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
6.85M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
6.85M
  range = split;
73
74
6.85M
  if (bit) {
75
2.70M
    lowvalue += split;
76
2.70M
    range = br->range - split;
77
2.70M
  }
78
79
6.85M
  shift = vpx_norm[range];
80
81
6.85M
  range <<= shift;
82
6.85M
  count += shift;
83
84
6.85M
  if (count >= 0) {
85
369k
    int offset = shift - count;
86
87
369k
    if (!br->error) {
88
369k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
9
        int x = (int)br->pos - 1;
90
91
10
        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
9
        br->buffer[x] += 1;
98
9
      }
99
100
369k
      if (br->pos < br->size) {
101
369k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
369k
      } else {
103
0
        br->error = 1;
104
0
      }
105
369k
    }
106
369k
    lowvalue <<= offset;
107
369k
    shift = count;
108
369k
    lowvalue &= 0xffffff;
109
369k
    count -= 8;
110
369k
  }
111
112
6.85M
  lowvalue <<= shift;
113
6.85M
  br->count = count;
114
6.85M
  br->lowvalue = lowvalue;
115
6.85M
  br->range = range;
116
6.85M
}
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
7.90M
                                                         int probability) {
49
7.90M
  unsigned int split;
50
7.90M
  int count = br->count;
51
7.90M
  unsigned int range = br->range;
52
7.90M
  unsigned int lowvalue = br->lowvalue;
53
7.90M
  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
7.90M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
7.90M
  range = split;
73
74
7.90M
  if (bit) {
75
1.11M
    lowvalue += split;
76
1.11M
    range = br->range - split;
77
1.11M
  }
78
79
7.90M
  shift = vpx_norm[range];
80
81
7.90M
  range <<= shift;
82
7.90M
  count += shift;
83
84
7.90M
  if (count >= 0) {
85
301k
    int offset = shift - count;
86
87
301k
    if (!br->error) {
88
301k
      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
301k
      if (br->pos < br->size) {
101
301k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
301k
      } else {
103
0
        br->error = 1;
104
0
      }
105
301k
    }
106
301k
    lowvalue <<= offset;
107
301k
    shift = count;
108
301k
    lowvalue &= 0xffffff;
109
301k
    count -= 8;
110
301k
  }
111
112
7.90M
  lowvalue <<= shift;
113
7.90M
  br->count = count;
114
7.90M
  br->lowvalue = lowvalue;
115
7.90M
  br->range = range;
116
7.90M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write
bitwriter.c:vpx_write
Line
Count
Source
48
3.79M
                                                         int probability) {
49
3.79M
  unsigned int split;
50
3.79M
  int count = br->count;
51
3.79M
  unsigned int range = br->range;
52
3.79M
  unsigned int lowvalue = br->lowvalue;
53
3.79M
  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
3.79M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
3.79M
  range = split;
73
74
3.79M
  if (bit) {
75
0
    lowvalue += split;
76
0
    range = br->range - split;
77
0
  }
78
79
3.79M
  shift = vpx_norm[range];
80
81
3.79M
  range <<= shift;
82
3.79M
  count += shift;
83
84
3.79M
  if (count >= 0) {
85
397k
    int offset = shift - count;
86
87
397k
    if (!br->error) {
88
397k
      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
397k
      if (br->pos < br->size) {
101
397k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
397k
      } else {
103
1
        br->error = 1;
104
1
      }
105
397k
    }
106
397k
    lowvalue <<= offset;
107
397k
    shift = count;
108
397k
    lowvalue &= 0xffffff;
109
397k
    count -= 8;
110
397k
  }
111
112
3.79M
  lowvalue <<= shift;
113
3.79M
  br->count = count;
114
3.79M
  br->lowvalue = lowvalue;
115
3.79M
  br->range = range;
116
3.79M
}
117
118
69.1M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
69.1M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
69.1M
}
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
62.9M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
62.9M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
62.9M
}
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
42.8k
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
42.8k
  vpx_write(w, bit, 128);  // vpx_prob_half
120
42.8k
}
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.34M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
2.34M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
2.34M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write_bit
bitwriter.c:vpx_write_bit
Line
Count
Source
118
3.79M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
3.79M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
3.79M
}
121
122
1.06M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.06M
  int bit;
124
125
3.54M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.06M
}
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
43.6k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
43.6k
  int bit;
124
125
131k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
43.6k
}
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
6.11k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
6.11k
  int bit;
124
125
48.9k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
6.11k
}
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.01M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.01M
  int bit;
124
125
3.36M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.01M
}
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_