This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 5ac937676392f31cfd9efc84fa956bb4374b83ee Author: Lynne <[email protected]> AuthorDate: Wed Feb 11 22:31:06 2026 +0100 Commit: Lynne <[email protected]> CommitDate: Thu Feb 19 19:42:33 2026 +0100 vulkan/ffv1_dec_setup: roll a put_rac inside a loop This saves 16KiB of memory. Yeah, things go large when all compilers inline everything. --- libavcodec/vulkan/ffv1_enc_setup.comp.glsl | 5 ++--- libavcodec/vulkan/rangecoder.glsl | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/vulkan/ffv1_enc_setup.comp.glsl b/libavcodec/vulkan/ffv1_enc_setup.comp.glsl index 860b50a73c..4537cb7b58 100644 --- a/libavcodec/vulkan/ffv1_enc_setup.comp.glsl +++ b/libavcodec/vulkan/ffv1_enc_setup.comp.glsl @@ -60,9 +60,8 @@ void put_usymbol(uint v) const int e = findMSB(v); - for (int i = 0; i < e; i++) - put_rac(rc_state[1 + min(i, 9)], true); - put_rac(rc_state[1 + min(e, 9)], false); + for (int i = 0; i <= e; i++) + put_rac(rc_state[1 + min(i, 9)], i < e); for (int i = e - 1; i >= 0; i--) put_rac(rc_state[22 + min(i, 9)], bool(bitfieldExtract(v, i, 1))); diff --git a/libavcodec/vulkan/rangecoder.glsl b/libavcodec/vulkan/rangecoder.glsl index 614b727a87..6bd8d2f264 100644 --- a/libavcodec/vulkan/rangecoder.glsl +++ b/libavcodec/vulkan/rangecoder.glsl @@ -66,8 +66,6 @@ void rac_init(uint bs_start, uint bs_len) /* Full renorm version that can handle outstanding_byte == 0xFF */ void renorm_encoder(void) { - int bs_cnt = 0; - if (rc.outstanding_byte == 0xFF) { rc.outstanding_byte = uint8_t(rc.low >> 8); } else if (rc.low <= 0xFF00) { _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
