Add overwrite functions which do not zero bytes.
In several places bits are overwritten in the bitstream. These
functions avoid zeroing bytes during writing so that this can
happen correctly when the number of bits is not 8*N.
Re-addresses the attempted fix in
133c57c331f3b1806233fbd83db1f5f022b1490a
which broke threaded encoding tests, which relied on re-using
byte buffers.
Change-Id: I682c5e3a7869eac7ad475584db8bf170d47a56c9
diff --git a/aom_dsp/bitwriter_buffer.h b/aom_dsp/bitwriter_buffer.h
index 63027ef..8160765 100644
--- a/aom_dsp/bitwriter_buffer.h
+++ b/aom_dsp/bitwriter_buffer.h
@@ -27,8 +27,13 @@
void aom_wb_write_bit(struct aom_write_bit_buffer *wb, int bit);
+void aom_wb_overwrite_bit(struct aom_write_bit_buffer *wb, int bit);
+
void aom_wb_write_literal(struct aom_write_bit_buffer *wb, int data, int bits);
+void aom_wb_overwrite_literal(struct aom_write_bit_buffer *wb, int data,
+ int bits);
+
void aom_wb_write_inv_signed_literal(struct aom_write_bit_buffer *wb, int data,
int bits);