Coverage Report

Created: 2025-11-16 07:20

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
961M
                                                         int probability) {
49
961M
  unsigned int split;
50
961M
  int count = br->count;
51
961M
  unsigned int range = br->range;
52
961M
  unsigned int lowvalue = br->lowvalue;
53
961M
  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
961M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
961M
  range = split;
73
74
961M
  if (bit) {
75
574M
    lowvalue += split;
76
574M
    range = br->range - split;
77
574M
  }
78
79
961M
  shift = vpx_norm[range];
80
81
961M
  range <<= shift;
82
961M
  count += shift;
83
84
961M
  if (count >= 0) {
85
83.2M
    int offset = shift - count;
86
87
83.2M
    if (!br->error) {
88
83.2M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
500
        int x = (int)br->pos - 1;
90
91
579
        while (x >= 0 && br->buffer[x] == 0xff) {
92
79
          br->buffer[x] = 0;
93
79
          x--;
94
79
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
500
        br->buffer[x] += 1;
98
500
      }
99
100
83.2M
      if (br->pos < br->size) {
101
83.2M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
83.2M
      } else {
103
84
        br->error = 1;
104
84
      }
105
83.2M
    }
106
83.2M
    lowvalue <<= offset;
107
83.2M
    shift = count;
108
83.2M
    lowvalue &= 0xffffff;
109
83.2M
    count -= 8;
110
83.2M
  }
111
112
961M
  lowvalue <<= shift;
113
961M
  br->count = count;
114
961M
  br->lowvalue = lowvalue;
115
961M
  br->range = range;
116
961M
}
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
940M
                                                         int probability) {
49
940M
  unsigned int split;
50
940M
  int count = br->count;
51
940M
  unsigned int range = br->range;
52
940M
  unsigned int lowvalue = br->lowvalue;
53
940M
  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
940M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
940M
  range = split;
73
74
940M
  if (bit) {
75
568M
    lowvalue += split;
76
568M
    range = br->range - split;
77
568M
  }
78
79
940M
  shift = vpx_norm[range];
80
81
940M
  range <<= shift;
82
940M
  count += shift;
83
84
940M
  if (count >= 0) {
85
81.9M
    int offset = shift - count;
86
87
81.9M
    if (!br->error) {
88
81.9M
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
485
        int x = (int)br->pos - 1;
90
91
564
        while (x >= 0 && br->buffer[x] == 0xff) {
92
79
          br->buffer[x] = 0;
93
79
          x--;
94
79
        }
95
96
        // TODO(wtc): How to prove x >= 0?
97
485
        br->buffer[x] += 1;
98
485
      }
99
100
81.9M
      if (br->pos < br->size) {
101
81.9M
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
81.9M
      } else {
103
77
        br->error = 1;
104
77
      }
105
81.9M
    }
106
81.9M
    lowvalue <<= offset;
107
81.9M
    shift = count;
108
81.9M
    lowvalue &= 0xffffff;
109
81.9M
    count -= 8;
110
81.9M
  }
111
112
940M
  lowvalue <<= shift;
113
940M
  br->count = count;
114
940M
  br->lowvalue = lowvalue;
115
940M
  br->range = range;
116
940M
}
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.06M
                                                         int probability) {
49
8.06M
  unsigned int split;
50
8.06M
  int count = br->count;
51
8.06M
  unsigned int range = br->range;
52
8.06M
  unsigned int lowvalue = br->lowvalue;
53
8.06M
  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.06M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
8.06M
  range = split;
73
74
8.06M
  if (bit) {
75
3.65M
    lowvalue += split;
76
3.65M
    range = br->range - split;
77
3.65M
  }
78
79
8.06M
  shift = vpx_norm[range];
80
81
8.06M
  range <<= shift;
82
8.06M
  count += shift;
83
84
8.06M
  if (count >= 0) {
85
497k
    int offset = shift - count;
86
87
497k
    if (!br->error) {
88
497k
      if ((lowvalue << (offset - 1)) & 0x80000000) {
89
14
        int x = (int)br->pos - 1;
90
91
14
        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
14
        br->buffer[x] += 1;
98
14
      }
99
100
497k
      if (br->pos < br->size) {
101
497k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
497k
      } else {
103
3
        br->error = 1;
104
3
      }
105
497k
    }
106
497k
    lowvalue <<= offset;
107
497k
    shift = count;
108
497k
    lowvalue &= 0xffffff;
109
497k
    count -= 8;
110
497k
  }
111
112
8.06M
  lowvalue <<= shift;
113
8.06M
  br->count = count;
114
8.06M
  br->lowvalue = lowvalue;
115
8.06M
  br->range = range;
116
8.06M
}
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.77M
                                                         int probability) {
49
8.77M
  unsigned int split;
50
8.77M
  int count = br->count;
51
8.77M
  unsigned int range = br->range;
52
8.77M
  unsigned int lowvalue = br->lowvalue;
53
8.77M
  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.77M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
8.77M
  range = split;
73
74
8.77M
  if (bit) {
75
1.62M
    lowvalue += split;
76
1.62M
    range = br->range - split;
77
1.62M
  }
78
79
8.77M
  shift = vpx_norm[range];
80
81
8.77M
  range <<= shift;
82
8.77M
  count += shift;
83
84
8.77M
  if (count >= 0) {
85
441k
    int offset = shift - count;
86
87
441k
    if (!br->error) {
88
441k
      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
441k
      if (br->pos < br->size) {
101
441k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
441k
      } else {
103
0
        br->error = 1;
104
0
      }
105
441k
    }
106
441k
    lowvalue <<= offset;
107
441k
    shift = count;
108
441k
    lowvalue &= 0xffffff;
109
441k
    count -= 8;
110
441k
  }
111
112
8.77M
  lowvalue <<= shift;
113
8.77M
  br->count = count;
114
8.77M
  br->lowvalue = lowvalue;
115
8.77M
  br->range = range;
116
8.77M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write
bitwriter.c:vpx_write
Line
Count
Source
48
3.73M
                                                         int probability) {
49
3.73M
  unsigned int split;
50
3.73M
  int count = br->count;
51
3.73M
  unsigned int range = br->range;
52
3.73M
  unsigned int lowvalue = br->lowvalue;
53
3.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
3.73M
  split = 1 + (((range - 1) * probability) >> 8);
71
72
3.73M
  range = split;
73
74
3.73M
  if (bit) {
75
0
    lowvalue += split;
76
0
    range = br->range - split;
77
0
  }
78
79
3.73M
  shift = vpx_norm[range];
80
81
3.73M
  range <<= shift;
82
3.73M
  count += shift;
83
84
3.73M
  if (count >= 0) {
85
410k
    int offset = shift - count;
86
87
410k
    if (!br->error) {
88
410k
      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
410k
      if (br->pos < br->size) {
101
410k
        br->buffer[br->pos++] = (lowvalue >> (24 - offset)) & 0xff;
102
410k
      } else {
103
4
        br->error = 1;
104
4
      }
105
410k
    }
106
410k
    lowvalue <<= offset;
107
410k
    shift = count;
108
410k
    lowvalue &= 0xffffff;
109
410k
    count -= 8;
110
410k
  }
111
112
3.73M
  lowvalue <<= shift;
113
3.73M
  br->count = count;
114
3.73M
  br->lowvalue = lowvalue;
115
3.73M
  br->range = range;
116
3.73M
}
117
118
105M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
105M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
105M
}
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
98.4M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
98.4M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
98.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
59.4k
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
59.4k
  vpx_write(w, bit, 128);  // vpx_prob_half
120
59.4k
}
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.43M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
3.43M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
3.43M
}
Unexecuted instantiation: vp9_treewriter.c:vpx_write_bit
bitwriter.c:vpx_write_bit
Line
Count
Source
118
3.73M
static INLINE void vpx_write_bit(vpx_writer *w, int bit) {
119
3.73M
  vpx_write(w, bit, 128);  // vpx_prob_half
120
3.73M
}
121
122
1.53M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.53M
  int bit;
124
125
5.13M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.53M
}
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
46.7k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
46.7k
  int bit;
124
125
140k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
46.7k
}
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.49k
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
8.49k
  int bit;
124
125
67.9k
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
8.49k
}
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.48M
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) {
123
1.48M
  int bit;
124
125
4.92M
  for (bit = bits - 1; bit >= 0; bit--) vpx_write_bit(w, 1 & (data >> bit));
126
1.48M
}
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_