Coverage Report

Created: 2026-09-14 08:00

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
624M
                                                         int probability) {
49
624M
  unsigned int split;
50
624M
  int count = br->count;
51
624M
  unsigned int range = br->range;
52
624M
  unsigned int lowvalue = br->lowvalue;
53
624M
  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
624M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
624M
  range = split;
73
74
624M
  if (bit) {
75
364M
    lowvalue += split;
76
364M
    range = br->range - split;
77
364M
  }
78
79
624M
  shift = vpx_norm[range];
80
81
624M
  range <<= shift;
82
624M
  count += shift;
83
84
624M
  if (count >= 0) {
85
54.2M
    int offset = shift - count;
86
87
54.2M
    if (!br->error) {
88
54.2M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
333
        int x = (int)br->pos - 1;
90
91
489
        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
333
        br->buffer[x] += 1;
98
333
      }
99
100
54.2M
      if (br->pos < br->size) {
101
54.2M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
54.2M
      } else {
103
60
        br->error = 1;
104
60
      }
105
54.2M
    }
106
54.2M
    lowvalue <<= offset;
107
54.2M
    shift = count;
108
54.2M
    lowvalue &= 0xffffff;
109
54.2M
    count -= 8;
110
54.2M
  }
111
112
624M
  lowvalue <<= shift;
113
624M
  br->count = count;
114
624M
  br->lowvalue = lowvalue;
115
624M
  br->range = range;
116
624M
}
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
604M
                                                         int probability) {
49
604M
  unsigned int split;
50
604M
  int count = br->count;
51
604M
  unsigned int range = br->range;
52
604M
  unsigned int lowvalue = br->lowvalue;
53
604M
  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
604M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
604M
  range = split;
73
74
604M
  if (bit) {
75
360M
    lowvalue += split;
76
360M
    range = br->range - split;
77
360M
  }
78
79
604M
  shift = vpx_norm[range];
80
81
604M
  range <<= shift;
82
604M
  count += shift;
83
84
604M
  if (count >= 0) {
85
53.1M
    int offset = shift - count;
86
87
53.1M
    if (!br->error) {
88
53.1M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
324
        int x = (int)br->pos - 1;
90
91
480
        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
324
        br->buffer[x] += 1;
98
324
      }
99
100
53.1M
      if (br->pos < br->size) {
101
53.1M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
53.1M
      } else {
103
56
        br->error = 1;
104
56
      }
105
53.1M
    }
106
53.1M
    lowvalue <<= offset;
107
53.1M
    shift = count;
108
53.1M
    lowvalue &= 0xffffff;
109
53.1M
    count -= 8;
110
53.1M
  }
111
112
604M
  lowvalue <<= shift;
113
604M
  br->count = count;
114
604M
  br->lowvalue = lowvalue;
115
604M
  br->range = range;
116
604M
}
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
7.39M
                                                         int probability) {
49
7.39M
  unsigned int split;
50
7.39M
  int count = br->count;
51
7.39M
  unsigned int range = br->range;
52
7.39M
  unsigned int lowvalue = br->lowvalue;
53
7.39M
  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.39M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
7.39M
  range = split;
73
74
7.39M
  if (bit) {
75
2.87M
    lowvalue += split;
76
2.87M
    range = br->range - split;
77
2.87M
  }
78
79
7.39M
  shift = vpx_norm[range];
80
81
7.39M
  range <<= shift;
82
7.39M
  count += shift;
83
84
7.39M
  if (count >= 0) {
85
391k
    int offset = shift - count;
86
87
391k
    if (!br->error) {
88
391k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
8
        int x = (int)br->pos - 1;
90
91
8
        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
8
        br->buffer[x] += 1;
98
8
      }
99
100
391k
      if (br->pos < br->size) {
101
391k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
391k
      } else {
103
0
        br->error = 1;
104
0
      }
105
391k
    }
106
391k
    lowvalue <<= offset;
107
391k
    shift = count;
108
391k
    lowvalue &= 0xffffff;
109
391k
    count -= 8;
110
391k
  }
111
112
7.39M
  lowvalue <<= shift;
113
7.39M
  br->count = count;
114
7.39M
  br->lowvalue = lowvalue;
115
7.39M
  br->range = range;
116
7.39M
}
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
8.42M
                                                         int probability) {
49
8.42M
  unsigned int split;
50
8.42M
  int count = br->count;
51
8.42M
  unsigned int range = br->range;
52
8.42M
  unsigned int lowvalue = br->lowvalue;
53
8.42M
  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.42M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
8.42M
  range = split;
73
74
8.42M
  if (bit) {
75
1.10M
    lowvalue += split;
76
1.10M
    range = br->range - split;
77
1.10M
  }
78
79
8.42M
  shift = vpx_norm[range];
80
81
8.42M
  range <<= shift;
82
8.42M
  count += shift;
83
84
8.42M
  if (count >= 0) {
85
296k
    int offset = shift - count;
86
87
296k
    if (!br->error) {
88
296k
      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
296k
      if (br->pos < br->size) {
101
296k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
296k
      } else {
103
0
        br->error = 1;
104
0
      }
105
296k
    }
106
296k
    lowvalue <<= offset;
107
296k
    shift = count;
108
296k
    lowvalue &= 0xffffff;
109
296k
    count -= 8;
110
296k
  }
111
112
8.42M
  lowvalue <<= shift;
113
8.42M
  br->count = count;
114
8.42M
  br->lowvalue = lowvalue;
115
8.42M
  br->range = range;
116
8.42M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write
bitwriter.c:vpx_write
Line
Count
Source
48
4.11M
                                                         int probability) {
49
4.11M
  unsigned int split;
50
4.11M
  int count = br->count;
51
4.11M
  unsigned int range = br->range;
52
4.11M
  unsigned int lowvalue = br->lowvalue;
53
4.11M
  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
4.11M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
4.11M
  range = split;
73
74
4.11M
  if (bit) {
75
0
    lowvalue += split;
76
0
    range = br->range - split;
77
0
  }
78
79
4.11M
  shift = vpx_norm[range];
80
81
4.11M
  range <<= shift;
82
4.11M
  count += shift;
83
84
4.11M
  if (count >= 0) {
85
429k
    int offset = shift - count;
86
87
429k
    if (!br->error) {
88
429k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
1
        int x = (int)br->pos - 1;
90
91
1
        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
1
        br->buffer[x] += 1;
98
1
      }
99
100
429k
      if (br->pos < br->size) {
101
429k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
429k
      } else {
103
4
        br->error = 1;
104
4
      }
105
429k
    }
106
429k
    lowvalue <<= offset;
107
429k
    shift = count;
108
429k
    lowvalue &= 0xffffff;
109
429k
    count -= 8;
110
429k
  }
111
112
4.11M
  lowvalue <<= shift;
113
4.11M
  br->count = count;
114
4.11M
  br->lowvalue = lowvalue;
115
4.11M
  br->range = range;
116
4.11M
}
117
118
70.1M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
70.1M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
70.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
63.6M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
63.6M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
63.6M
}
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
46.1k
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
46.1k
  vpx_write(w, bit, 128);  // vpx_prob_half
120
46.1k
}
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.32M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
2.32M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
2.32M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write_bit
bitwriter.c:vpx_write_bit
Line
Count
Source
118
4.11M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
4.11M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
4.11M
}
121
122
1.05M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.05M
  int bit;
124
125
3.52M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.05M
}
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
48.8k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
48.8k
  int bit;
124
125
146k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
48.8k
}
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.59k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
6.59k
  int bit;
124
125
52.7k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
6.59k
}
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.00M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.00M
  int bit;
124
125
3.32M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.00M
}
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_