Coverage Report

Created: 2026-02-14 06:59

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
654M
                                                         int probability) {
49
654M
  unsigned int split;
50
654M
  int count = br->count;
51
654M
  unsigned int range = br->range;
52
654M
  unsigned int lowvalue = br->lowvalue;
53
654M
  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
654M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
654M
  range = split;
73
74
654M
  if (bit) {
75
386M
    lowvalue += split;
76
386M
    range = br->range - split;
77
386M
  }
78
79
654M
  shift = vpx_norm[range];
80
81
654M
  range <<= shift;
82
654M
  count += shift;
83
84
654M
  if (count >= 0) {
85
56.5M
    int offset = shift - count;
86
87
56.5M
    if (!br->error) {
88
56.5M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
369
        int x = (int)br->pos - 1;
90
91
532
        while (x >= 0 && br->buffer[x] == 0xff) {
92
163
          br->buffer[x] = 0;
93
163
          x--;
94
163
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
369
        br->buffer[x] += 1;
98
369
      }
99
100
56.5M
      if (br->pos < br->size) {
101
56.5M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
56.5M
      } else {
103
68
        br->error = 1;
104
68
      }
105
56.5M
    }
106
56.5M
    lowvalue <<= offset;
107
56.5M
    shift = count;
108
56.5M
    lowvalue &= 0xffffff;
109
56.5M
    count -= 8;
110
56.5M
  }
111
112
654M
  lowvalue <<= shift;
113
654M
  br->count = count;
114
654M
  br->lowvalue = lowvalue;
115
654M
  br->range = range;
116
654M
}
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
633M
                                                         int probability) {
49
633M
  unsigned int split;
50
633M
  int count = br->count;
51
633M
  unsigned int range = br->range;
52
633M
  unsigned int lowvalue = br->lowvalue;
53
633M
  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
633M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
633M
  range = split;
73
74
633M
  if (bit) {
75
381M
    lowvalue += split;
76
381M
    range = br->range - split;
77
381M
  }
78
79
633M
  shift = vpx_norm[range];
80
81
633M
  range <<= shift;
82
633M
  count += shift;
83
84
633M
  if (count >= 0) {
85
55.3M
    int offset = shift - count;
86
87
55.3M
    if (!br->error) {
88
55.3M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
361
        int x = (int)br->pos - 1;
90
91
524
        while (x >= 0 && br->buffer[x] == 0xff) {
92
163
          br->buffer[x] = 0;
93
163
          x--;
94
163
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
361
        br->buffer[x] += 1;
98
361
      }
99
100
55.3M
      if (br->pos < br->size) {
101
55.3M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
55.3M
      } else {
103
66
        br->error = 1;
104
66
      }
105
55.3M
    }
106
55.3M
    lowvalue <<= offset;
107
55.3M
    shift = count;
108
55.3M
    lowvalue &= 0xffffff;
109
55.3M
    count -= 8;
110
55.3M
  }
111
112
633M
  lowvalue <<= shift;
113
633M
  br->count = count;
114
633M
  br->lowvalue = lowvalue;
115
633M
  br->range = range;
116
633M
}
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.98M
                                                         int probability) {
49
7.98M
  unsigned int split;
50
7.98M
  int count = br->count;
51
7.98M
  unsigned int range = br->range;
52
7.98M
  unsigned int lowvalue = br->lowvalue;
53
7.98M
  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.98M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
7.98M
  range = split;
73
74
7.98M
  if (bit) {
75
3.25M
    lowvalue += split;
76
3.25M
    range = br->range - split;
77
3.25M
  }
78
79
7.98M
  shift = vpx_norm[range];
80
81
7.98M
  range <<= shift;
82
7.98M
  count += shift;
83
84
7.98M
  if (count >= 0) {
85
439k
    int offset = shift - count;
86
87
439k
    if (!br->error) {
88
439k
      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
439k
      if (br->pos < br->size) {
101
439k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
439k
      } else {
103
0
        br->error = 1;
104
0
      }
105
439k
    }
106
439k
    lowvalue <<= offset;
107
439k
    shift = count;
108
439k
    lowvalue &= 0xffffff;
109
439k
    count -= 8;
110
439k
  }
111
112
7.98M
  lowvalue <<= shift;
113
7.98M
  br->count = count;
114
7.98M
  br->lowvalue = lowvalue;
115
7.98M
  br->range = range;
116
7.98M
}
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.73M
                                                         int probability) {
49
8.73M
  unsigned int split;
50
8.73M
  int count = br->count;
51
8.73M
  unsigned int range = br->range;
52
8.73M
  unsigned int lowvalue = br->lowvalue;
53
8.73M
  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.73M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
8.73M
  range = split;
73
74
8.73M
  if (bit) {
75
1.20M
    lowvalue += split;
76
1.20M
    range = br->range - split;
77
1.20M
  }
78
79
8.73M
  shift = vpx_norm[range];
80
81
8.73M
  range <<= shift;
82
8.73M
  count += shift;
83
84
8.73M
  if (count >= 0) {
85
324k
    int offset = shift - count;
86
87
324k
    if (!br->error) {
88
324k
      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
324k
      if (br->pos < br->size) {
101
324k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
324k
      } else {
103
0
        br->error = 1;
104
0
      }
105
324k
    }
106
324k
    lowvalue <<= offset;
107
324k
    shift = count;
108
324k
    lowvalue &= 0xffffff;
109
324k
    count -= 8;
110
324k
  }
111
112
8.73M
  lowvalue <<= shift;
113
8.73M
  br->count = count;
114
8.73M
  br->lowvalue = lowvalue;
115
8.73M
  br->range = range;
116
8.73M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write
bitwriter.c:vpx_write
Line
Count
Source
48
4.18M
                                                         int probability) {
49
4.18M
  unsigned int split;
50
4.18M
  int count = br->count;
51
4.18M
  unsigned int range = br->range;
52
4.18M
  unsigned int lowvalue = br->lowvalue;
53
4.18M
  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.18M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
4.18M
  range = split;
73
74
4.18M
  if (bit) {
75
0
    lowvalue += split;
76
0
    range = br->range - split;
77
0
  }
78
79
4.18M
  shift = vpx_norm[range];
80
81
4.18M
  range <<= shift;
82
4.18M
  count += shift;
83
84
4.18M
  if (count >= 0) {
85
440k
    int offset = shift - count;
86
87
440k
    if (!br->error) {
88
440k
      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
440k
      if (br->pos < br->size) {
101
440k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
440k
      } else {
103
2
        br->error = 1;
104
2
      }
105
440k
    }
106
440k
    lowvalue <<= offset;
107
440k
    shift = count;
108
440k
    lowvalue &= 0xffffff;
109
440k
    count -= 8;
110
440k
  }
111
112
4.18M
  lowvalue <<= shift;
113
4.18M
  br->count = count;
114
4.18M
  br->lowvalue = lowvalue;
115
4.18M
  br->range = range;
116
4.18M
}
117
118
72.9M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
72.9M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
72.9M
}
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
66.1M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
66.1M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
66.1M
}
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
49.2k
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
49.2k
  vpx_write(w, bit, 128);  // vpx_prob_half
120
49.2k
}
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.53M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
2.53M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
2.53M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write_bit
bitwriter.c:vpx_write_bit
Line
Count
Source
118
4.18M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
4.18M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
4.18M
}
121
122
1.15M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.15M
  int bit;
124
125
3.83M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.15M
}
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
50.0k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
50.0k
  int bit;
124
125
150k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
50.0k
}
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.04k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
7.04k
  int bit;
124
125
56.3k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
7.04k
}
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.09M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.09M
  int bit;
124
125
3.63M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.09M
}
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_