mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 15:27:30 +09:00
Update libaom to commit ID 1e227d41f0616de9548a673a83a21ef990b62591
This commit is contained in:
parent
77c9089b7d
commit
368651059a
526 changed files with 34535 additions and 15900 deletions
12
third_party/aom/aom_dsp/bitwriter_buffer.c
vendored
12
third_party/aom/aom_dsp/bitwriter_buffer.c
vendored
|
|
@ -73,3 +73,15 @@ void aom_wb_write_inv_signed_literal(struct aom_write_bit_buffer *wb, int data,
|
|||
int bits) {
|
||||
aom_wb_write_literal(wb, data, bits + 1);
|
||||
}
|
||||
|
||||
void aom_wb_write_uvlc(struct aom_write_bit_buffer *wb, uint32_t v) {
|
||||
int64_t shift_val = ++v;
|
||||
int leading_zeroes = 1;
|
||||
|
||||
assert(shift_val > 0);
|
||||
|
||||
while (shift_val >>= 1) leading_zeroes += 2;
|
||||
|
||||
aom_wb_write_literal(wb, 0, leading_zeroes >> 1);
|
||||
aom_wb_write_unsigned_literal(wb, v, (leading_zeroes + 1) >> 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue