diff options
author | Niklas Haas <git@haasn.dev> | 2025-07-12 13:30:07 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2025-07-17 12:33:59 +0200 |
commit | bc8d06d54188a3c1ba878b7e0bca66b9e4b3ceea (patch) | |
tree | 42ac16c68bf39f88859222049664b2f3c2a18f40 /libavutil/hwcontext.c | |
parent | e44a1aaeecc14fc396e0c715969ddd3cc939933d (diff) | |
download | ffmpeg-bc8d06d54188a3c1ba878b7e0bca66b9e4b3ceea.tar.gz |
avfilter/vf_thumbnail: unroll and use multiple histograms
This naive hist[p[x]]++ loop suffers badly when there are large regions of
identical values in the image, because of store-to-load forwarding delay.
Splitting up the histogram into four "parallel" histograms and processing
them one at a time speeds things up significantly, about 40% on my end.
Diffstat (limited to 'libavutil/hwcontext.c')
0 files changed, 0 insertions, 0 deletions