History

vulkan/common: Add put_bytes_count

IndecisiveTurtle committed 1 year ago

Commit 351fd841 parent e3ac63b1 file · +6 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/vulkan/common.comp+6−0
@@ -172,3 +172,9 @@ uint64_t put_bits_count(in PutBitContext pb) · 171 unmodified lines
172172 {
173173 return (pb.buf - pb.buf_start)*8 + BUF_BITS - pb.bit_left;
174174 }
175+
176+uint32_t put_bytes_count(in PutBitContext pb)
177+{
178+ uint64_t num_bytes = (pb.buf - pb.buf_start) + ((BUF_BITS - pb.bit_left) >> 3);
179+ return uint32_t(num_bytes);
180+}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t