Coverage Report

Created: 2026-04-01 07:42

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
926M
                                                         int probability) {
49
926M
  unsigned int split;
50
926M
  int count = br->count;
51
926M
  unsigned int range = br->range;
52
926M
  unsigned int lowvalue = br->lowvalue;
53
926M
  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
926M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
926M
  range = split;
73
74
926M
  if (bit) {
75
547M
    lowvalue += split;
76
547M
    range = br->range - split;
77
547M
  }
78
79
926M
  shift = vpx_norm[range];
80
81
926M
  range <<= shift;
82
926M
  count += shift;
83
84
926M
  if (count >= 0) {
85
79.3M
    int offset = shift - count;
86
87
79.3M
    if (!br->error) {
88
79.2M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
465
        int x = (int)br->pos - 1;
90
91
628
        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
465
        br->buffer[x] += 1;
98
465
      }
99
100
79.2M
      if (br->pos < br->size) {
101
79.2M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
79.2M
      } else {
103
83
        br->error = 1;
104
83
      }
105
79.2M
    }
106
79.3M
    lowvalue <<= offset;
107
79.3M
    shift = count;
108
79.3M
    lowvalue &= 0xffffff;
109
79.3M
    count -= 8;
110
79.3M
  }
111
112
926M
  lowvalue <<= shift;
113
926M
  br->count = count;
114
926M
  br->lowvalue = lowvalue;
115
926M
  br->range = range;
116
926M
}
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
901M
                                                         int probability) {
49
901M
  unsigned int split;
50
901M
  int count = br->count;
51
901M
  unsigned int range = br->range;
52
901M
  unsigned int lowvalue = br->lowvalue;
53
901M
  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
901M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
901M
  range = split;
73
74
901M
  if (bit) {
75
541M
    lowvalue += split;
76
541M
    range = br->range - split;
77
541M
  }
78
79
901M
  shift = vpx_norm[range];
80
81
901M
  range <<= shift;
82
901M
  count += shift;
83
84
901M
  if (count >= 0) {
85
77.7M
    int offset = shift - count;
86
87
77.7M
    if (!br->error) {
88
77.7M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
456
        int x = (int)br->pos - 1;
90
91
619
        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
456
        br->buffer[x] += 1;
98
456
      }
99
100
77.7M
      if (br->pos < br->size) {
101
77.7M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
77.7M
      } else {
103
82
        br->error = 1;
104
82
      }
105
77.7M
    }
106
77.7M
    lowvalue <<= offset;
107
77.7M
    shift = count;
108
77.7M
    lowvalue &= 0xffffff;
109
77.7M
    count -= 8;
110
77.7M
  }
111
112
901M
  lowvalue <<= shift;
113
901M
  br->count = count;
114
901M
  br->lowvalue = lowvalue;
115
901M
  br->range = range;
116
901M
}
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
9.95M
                                                         int probability) {
49
9.95M
  unsigned int split;
50
9.95M
  int count = br->count;
51
9.95M
  unsigned int range = br->range;
52
9.95M
  unsigned int lowvalue = br->lowvalue;
53
9.95M
  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
9.95M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
9.95M
  range = split;
73
74
9.95M
  if (bit) {
75
4.24M
    lowvalue += split;
76
4.24M
    range = br->range - split;
77
4.24M
  }
78
79
9.95M
  shift = vpx_norm[range];
80
81
9.95M
  range <<= shift;
82
9.95M
  count += shift;
83
84
9.95M
  if (count >= 0) {
85
573k
    int offset = shift - count;
86
87
573k
    if (!br->error) {
88
573k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
6
        int x = (int)br->pos - 1;
90
91
6
        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
6
        br->buffer[x] += 1;
98
6
      }
99
100
573k
      if (br->pos < br->size) {
101
573k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
573k
      } else {
103
0
        br->error = 1;
104
0
      }
105
573k
    }
106
573k
    lowvalue <<= offset;
107
573k
    shift = count;
108
573k
    lowvalue &= 0xffffff;
109
573k
    count -= 8;
110
573k
  }
111
112
9.95M
  lowvalue <<= shift;
113
9.95M
  br->count = count;
114
9.95M
  br->lowvalue = lowvalue;
115
9.95M
  br->range = range;
116
9.95M
}
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.4M
                                                         int probability) {
49
10.4M
  unsigned int split;
50
10.4M
  int count = br->count;
51
10.4M
  unsigned int range = br->range;
52
10.4M
  unsigned int lowvalue = br->lowvalue;
53
10.4M
  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.4M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
10.4M
  range = split;
73
74
10.4M
  if (bit) {
75
1.54M
    lowvalue += split;
76
1.54M
    range = br->range - split;
77
1.54M
  }
78
79
10.4M
  shift = vpx_norm[range];
80
81
10.4M
  range <<= shift;
82
10.4M
  count += shift;
83
84
10.4M
  if (count >= 0) {
85
417k
    int offset = shift - count;
86
87
417k
    if (!br->error) {
88
417k
      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
417k
      if (br->pos < br->size) {
101
417k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
417k
      } else {
103
0
        br->error = 1;
104
0
      }
105
417k
    }
106
417k
    lowvalue <<= offset;
107
417k
    shift = count;
108
417k
    lowvalue &= 0xffffff;
109
417k
    count -= 8;
110
417k
  }
111
112
10.4M
  lowvalue <<= shift;
113
10.4M
  br->count = count;
114
10.4M
  br->lowvalue = lowvalue;
115
10.4M
  br->range = range;
116
10.4M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write
bitwriter.c:vpx_write
Line
Count
Source
48
4.83M
                                                         int probability) {
49
4.83M
  unsigned int split;
50
4.83M
  int count = br->count;
51
4.83M
  unsigned int range = br->range;
52
4.83M
  unsigned int lowvalue = br->lowvalue;
53
4.83M
  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.83M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
4.83M
  range = split;
73
74
4.83M
  if (bit) {
75
0
    lowvalue += split;
76
0
    range = br->range - split;
77
0
  }
78
79
4.83M
  shift = vpx_norm[range];
80
81
4.83M
  range <<= shift;
82
4.83M
  count += shift;
83
84
4.83M
  if (count >= 0) {
85
512k
    int offset = shift - count;
86
87
512k
    if (!br->error) {
88
512k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
3
        int x = (int)br->pos - 1;
90
91
3
        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
3
        br->buffer[x] += 1;
98
3
      }
99
100
512k
      if (br->pos < br->size) {
101
512k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
512k
      } else {
103
1
        br->error = 1;
104
1
      }
105
512k
    }
106
512k
    lowvalue <<= offset;
107
512k
    shift = count;
108
512k
    lowvalue &= 0xffffff;
109
512k
    count -= 8;
110
512k
  }
111
112
4.83M
  lowvalue <<= shift;
113
4.83M
  br->count = count;
114
4.83M
  br->lowvalue = lowvalue;
115
4.83M
  br->range = range;
116
4.83M
}
117
118
100M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
100M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
100M
}
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
92.7M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
92.7M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
92.7M
}
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
61.0k
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
61.0k
  vpx_write(w, bit, 128);  // vpx_prob_half
120
61.0k
}
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
3.25M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
3.25M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
3.25M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write_bit
bitwriter.c:vpx_write_bit
Line
Count
Source
118
4.83M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
4.83M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
4.83M
}
121
122
1.47M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.47M
  int bit;
124
125
4.89M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.47M
}
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
57.4k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
57.4k
  int bit;
124
125
172k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
57.4k
}
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
8.72k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
8.72k
  int bit;
124
125
69.8k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
8.72k
}
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.40M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.40M
  int bit;
124
125
4.65M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.40M
}
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_