Re: [FFmpeg-devel] [PATCH] avutil/imgutils: optimize image copying

2023-05-09 Thread Tomas Härdin
fre 2023-05-05 klockan 16:31 +0800 skrev xufuji456: > It makes sense when copying 4K/8K video frame, got 2.7% speed up. > When the condition is no padding and src_linesize equals to dst, > we could copy plane instead of line by line. > before    after   rate > 4K video: > 9145  8998    1.6% > 9

[FFmpeg-devel] [PATCH] avutil/imgutils: optimize image copying

2023-05-05 Thread xufuji456
It makes sense when copying 4K/8K video frame, got 2.7% speed up. When the condition is no padding and src_linesize equals to dst, we could copy plane instead of line by line. beforeafter rate 4K video: 9145 89981.6% 9804 94653.4% 9645 93942.6% 8K video: 28411 2