This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit df2649ffb128c6846c523a5cb755e8b789009e4e Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Jul 7 02:45:49 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Jul 7 13:06:58 2026 +0000 avcodec/vvc/dec: merge the SAO and ALF pixel buffer tab loops Both loops iterate over the same components and compute the same per-component width and height. The order of tabs within a TabList does not matter, so build all pixel buffer tabs in a single loop. --- libavcodec/vvc/dec.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c index 561323f123..ebe8e96272 100644 --- a/libavcodec/vvc/dec.c +++ b/libavcodec/vvc/dec.c @@ -248,14 +248,9 @@ static void pixel_buffer_nz_tl_init(TabList *l, VVCFrameContext *fc) for (int c_idx = 0; c_idx < c_end; c_idx++) { const int w = width >> (sps ? sps->hshift[c_idx] : 0); const int h = height >> (sps ? sps->vshift[c_idx] : 0); + const int border_pixels = c_idx ? ALF_BORDER_CHROMA : ALF_BORDER_LUMA; TL_ADD(sao_pixel_buffer_h[c_idx], (w * 2 * ctu_height) << ps); TL_ADD(sao_pixel_buffer_v[c_idx], (h * 2 * ctu_width) << ps); - } - - for (int c_idx = 0; c_idx < c_end; c_idx++) { - const int w = width >> (sps ? sps->hshift[c_idx] : 0); - const int h = height >> (sps ? sps->vshift[c_idx] : 0); - const int border_pixels = c_idx ? ALF_BORDER_CHROMA : ALF_BORDER_LUMA; for (int i = 0; i < 2; i++) { TL_ADD(alf_pixel_buffer_h[c_idx][i], (w * border_pixels * ctu_height) << ps); TL_ADD(alf_pixel_buffer_v[c_idx][i], h * ALF_PADDING_SIZE * ctu_width); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
