History

vulkan_ffv1: small cleanup for golomb

Split up computation of the offset in the same way that the range coder version does it.

Lynne committed 1 year ago

Commit c395ad71 parent 9d229441 file · +2 −1Browse files

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

Unified · Split

libavcodec/vulkan/ffv1_dec.comp+2−1
@@ -139,7 +139,8 @@ void decode_line(inout SliceContext sc, ivec2 sp, int w, · 138 unmodified lines
139139 ivec2 pr = get_pred(dec[p], sp, ivec2(x, y), 0, w,
140140 quant_table_idx, extend_lookup[quant_table_idx] > 0);
141141
142− VlcState sb = VlcState(uint64_t(slice_state) + state_off + VLC_STATE_SIZE*abs(pr[0]));
142+ uint context_off = state_off + VLC_STATE_SIZE*abs(pr[0]);
143+ VlcState sb = VlcState(uint64_t(slice_state) + context_off);
143144
144145 if (pr[0] == 0 && run_mode == 0)
145146 run_mode = 1;

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