#ifndef VPX_VPX_DSP_BITWRITER_H_
#define VPX_VPX_DSP_BITWRITER_H_
#include <stdio.h>
#include "vpx_ports/compiler_attributes.h"
#include "vpx_ports/mem.h"
#include "vpx_dsp/prob.h"
#if CONFIG_BITSTREAM_DEBUG
#include "vpx_util/vpx_debug_util.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
vpx_writer;
void vpx_start_encode(vpx_writer *br, uint8_t *source, size_t size);
int vpx_stop_encode(vpx_writer *br);
static INLINE VPX_NO_UNSIGNED_SHIFT_CHECK void vpx_write(vpx_writer *br,
int bit,
int probability) { … }
static INLINE void vpx_write_bit(vpx_writer *w, int bit) { … }
static INLINE void vpx_write_literal(vpx_writer *w, int data, int bits) { … }
#define vpx_write_prob(w, v) …
#ifdef __cplusplus
}
#endif
#endif