Commit 5f509163 authored by Yaowu Xu's avatar Yaowu Xu

vpx_dsp/bitwriter_buffer.h: vp9_ -> vpx_

Change-Id: I0ac7beaa160a6c2a60a019f6b8ce85e6537bed7d
parent 817be1d2
This diff is collapsed.
......@@ -12,11 +12,11 @@
#include "./bitwriter_buffer.h"
size_t vp9_wb_bytes_written(const struct vp9_write_bit_buffer *wb) {
size_t vpx_wb_bytes_written(const struct vpx_write_bit_buffer *wb) {
return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0);
}
void vp9_wb_write_bit(struct vp9_write_bit_buffer *wb, int bit) {
void vpx_wb_write_bit(struct vpx_write_bit_buffer *wb, int bit) {
const int off = (int)wb->bit_offset;
const int p = off / CHAR_BIT;
const int q = CHAR_BIT - 1 - off % CHAR_BIT;
......@@ -29,8 +29,8 @@ void vp9_wb_write_bit(struct vp9_write_bit_buffer *wb, int bit) {
wb->bit_offset = off + 1;
}
void vp9_wb_write_literal(struct vp9_write_bit_buffer *wb, int data, int bits) {
void vpx_wb_write_literal(struct vpx_write_bit_buffer *wb, int data, int bits) {
int bit;
for (bit = bits - 1; bit >= 0; bit--)
vp9_wb_write_bit(wb, (data >> bit) & 1);
vpx_wb_write_bit(wb, (data >> bit) & 1);
}
......@@ -17,16 +17,16 @@
extern "C" {
#endif
struct vp9_write_bit_buffer {
struct vpx_write_bit_buffer {
uint8_t *bit_buffer;
size_t bit_offset;
};
size_t vp9_wb_bytes_written(const struct vp9_write_bit_buffer *wb);
size_t vpx_wb_bytes_written(const struct vpx_write_bit_buffer *wb);
void vp9_wb_write_bit(struct vp9_write_bit_buffer *wb, int bit);
void vpx_wb_write_bit(struct vpx_write_bit_buffer *wb, int bit);
void vp9_wb_write_literal(struct vp9_write_bit_buffer *wb, int data, int bits);
void vpx_wb_write_literal(struct vpx_write_bit_buffer *wb, int data, int bits);
#ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment