summaryrefslogtreecommitdiffstats
path: root/libavfilter/framequeue.c
Commit message (Collapse)AuthorAgeFilesLines
* avutil/common: Don't auto-include mem.hAndreas Rheinhardt2024-03-311-0/+1
| | | | | | | | | | | There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <[email protected]>
* lavfi/framequeue: remove redundant logic code杨亚磊 via ffmpeg-devel2023-09-281-3/+2
| | | | | | | | In this logical branch, fq->queued and fq->allocated must be equal. Deleting this code will make it easier to understand the logic (copy the data before tail to the newly requested space) Signed-off-by: yangyalei <[email protected]>
* avfilter: convert to new channel layout APIJames Almer2022-03-151-2/+2
| | | | Signed-off-by: James Almer <[email protected]>
* avfilter: take_samples: do not directly return frame when samples are skippedMuhammad Faiz2017-05-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Modifying data pointer when skipping samples may make it unaligned. Workaround for Ticket6349. This should fix the crash of ticket's testcase and a crash/regression with avxsynth (reported by Michael Niedermayer). Also change frame->nb_samples < max to frame->nb_samples <= max. This improves performance. Benchmark: ./ffmpeg -filter_complex "aevalsrc=0:n=1166,firequalizer=fixed=on" -f null null old: 25767 decicycles in take_samples, 1023 runs, 1 skips 25422 decicycles in take_samples, 2047 runs, 1 skips 25181 decicycles in take_samples, 4095 runs, 1 skips 24904 decicycles in take_samples, 8191 runs, 1 skips new: 550 decicycles in take_samples, 1024 runs, 0 skips 548 decicycles in take_samples, 2048 runs, 0 skips 545 decicycles in take_samples, 4096 runs, 0 skips 544 decicycles in take_samples, 8192 runs, 0 skips Reviewed-by: Nicolas George <[email protected]> Reviewed-by: Michael Niedermayer <[email protected]> Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Muhammad Faiz <[email protected]>
* lavfi: make ff_framequeue_skip_samples() more useful.Nicolas George2017-01-291-0/+27
| | | | | | | | | | Instead of just updating statistics and leaving the work to the call site, have it actually do the work. Also: skip the samples by updating the frame data pointers instead of moving the samples. More efficient and avoid writing into shared frames. Found-By: Muhammad Faiz <[email protected]>
* avfilter/framequeue: add missing check for ASSERT_LEVELJames Almer2016-12-241-1/+1
| | | | Signed-off-by: James Almer <[email protected]>
* lavfi: add FFFrameQueue API.Nicolas George2016-12-181-0/+123