Shubhanshu Saxena
660a205b05
lavfi/dnn: Rename InferenceItem to LastLevelTaskItem
...
This patch renames the InferenceItem to LastLevelTaskItem in the
three backends to avoid confusion among the meanings of these structs.
The following are the renames done in this patch:
1. extract_inference_from_task -> extract_lltask_from_task
2. InferenceItem -> LastLevelTaskItem
3. inference_queue -> lltask_queue
4. inference -> lltask
5. inference_count -> lltask_count
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
4 years ago
Shubhanshu Saxena
1544d6fa0a
libavfilter: Remove Async Flag from DNN Filter Side
...
Remove async flag from filter's perspective after the unification
of async and sync modes in the DNN backend.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
4 years ago
Shubhanshu Saxena
70b4dca054
libavfilter: Remove synchronous functions from DNN filters
...
This commit removes the unused sync mode specific code from the DNN
filters since the sync and async mode are now unified from the
filters' perspective.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
4 years ago
Shubhanshu Saxena
60b4d07cf6
libavfilter: Unify Execution Modes in DNN Filters
...
This commit unifies the async and sync mode from the DNN filters'
perspective. As of this commit, the Native backend only supports
synchronous execution mode.
Now the user can switch between async and sync mode by using the
'async' option in the backend_configs. The values can be 1 for
async and 0 for sync mode of execution.
This commit affects the following filters:
1. vf_dnn_classify
2. vf_dnn_detect
3. vf_dnn_processing
4. vf_sr
5. vf_derain
This commit also updates the filters vf_dnn_detect and vf_dnn_classify
to send only the input frame and send NULL as output frame instead of
input frame to the DNN backends.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
4 years ago
Shubhanshu Saxena
d39580ac11
lavfi/dnn: Task-based Inference in Native Backend
...
This commit rearranges the code in Native Backend to use the TaskItem
for inference.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
4 years ago
Jai Luthra
d91542e618
avfilter/signature: fix integer rounding cast precedence
...
Co-authored-by: Oscar <oscar_davids@outlook.com>
Signed-off-by: Jai Luthra <me@jailuthra.in>
4 years ago
Jan Ekström
9dd410c804
avfilter/vf_scale: reset color matrix in case of identity & non-RGB
...
Fixes passing through mismatching metadata from the input side
when RGB input (from f.ex. H.264 or HEVC) gets converted to YCbCr.
Fixes #9132
4 years ago
Andreas Rheinhardt
ffc00e5b16
avfilter/graphdump: Use pointer to const for pointer to static strings
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
76ff9640be
avfilter/graphdump: Don't return truncated string
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
48348cd4ab
avfilter/graphdump: Don't silently truncate channel layout string
...
64B are not enough any more.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
daeef7d220
avfilter/graphdump: Properly initialize AVBPrint
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Paul B Mahol
dc34bf45c5
avfilter/vf_colorcorrect: add median analyze mode
4 years ago
Paul B Mahol
0cacef58fa
avfilter/vf_blend: use float for opacity calculations
4 years ago
Paul B Mahol
a6f00d4e82
avfilter/aeval: fix forgotten EOF case for activate
...
Bring fate test how it was previously.
4 years ago
Paul B Mahol
c1c7f2b61f
avfilter/avf_showwaves: remove invalid multiplication by 2
...
Fixes output of average filter.
4 years ago
Paul B Mahol
02aa7dc423
avfilter: add hsvkey and hsvhold video filters
4 years ago
James Almer
61b38f7aef
avfilter/avfilter: add a return at the end of a non-void function
...
Fixes compilation with GCC 11 when configured with "--disable-optimizations --toolchain=gcc-tsan"
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Paul B Mahol
7f194c7d96
avfilter/af_afreqshift: allow to change order of filters
4 years ago
Andreas Rheinhardt
845579c6e2
avfilter/vf_xmedian: Free inpads' names generically
...
This affects only the xmedian filter, not tmedian.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
ad3b1fddb3
avfilter/vf_stack: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
07aacf5ea9
avfilter/vf_signature: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
65884bd81f
avfilter/vf_program_opencl: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
97c796176e
avfilter/vf_mix: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
0ba9089aec
avfilter/vf_mergeplanes: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
2142e71911
avfilter/vf_extractplanes: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
41c98bfe0a
avfilter/src_movie: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
0ce19ecd28
avfilter/split: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
a79852f1c1
avfilter/f_streamselect: Free pads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
64133506f7
avfilter/f_select: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
f6c6a51d98
avfilter/f_segment: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
b8e31568df
avfilter/f_interleave: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
fbfcb012ac
avfilter/avf_concat: Free pads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
f28db2ca27
avfilter/af_lv2: Free inpad's name generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
7670e24eb0
avfilter/af_ladspa: Free inpad's name generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
d2e72473df
avfilter/af_join: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
ad5d056dc3
avfilter/af_headphone: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
0e936381ff
avfilter/af_amix: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
414c1b9b62
avfilter/af_amerge: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
c54c8836cf
avfilter/af_afir: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
59b465e4df
avfilter/af_acrossover: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
f308f37441
avfilter/avfilter: Allow to free non-static pads generically
...
This can be enabled/disabled on a per-pad basis by setting
the AVFILTERPAD_FLAG_FREE_NAME flag; variants of ff_append_(in|out)pads
that do this for you have been added and will be put to use in the
following commits.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Andreas Rheinhardt
dff1709eb2
avfilter/internal: Uninline ff_insert_(in|out)pad()
...
These functions are not hot at all.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
Paul B Mahol
da6aab45e4
avfilter/vf_v360: fill unused regions too for orthographic output format
4 years ago
Paul B Mahol
1616f7fb28
avfilter/vf_v360: refactor rescaling of i/j
4 years ago
Paul B Mahol
5b258c2770
avfilter/af_astats: remove invalid 5x factor in window size calculation
...
Also allow smaller window sizes, and change histogram for noise
floor calculation to uint64_t type.
4 years ago
Paul B Mahol
99ccad843f
avfilter/aevalsrc: switch to activate
...
Allow to set the EOF timestamp.
FATE test is updated, as last 2 frames were duplicated.
4 years ago
Paul B Mahol
6854cc2ec7
avfilter/asrc_hilbert: switch to activate
...
Allow to set the EOF timestamp.
4 years ago
Paul B Mahol
5e2e9d50ce
avfilter/asrc_afirsrc: switch to activate
...
Allow to set the EOF timestamp.
4 years ago
Paul B Mahol
9153038e0a
avfilter/asrc_sinc: switch to activate
...
Allow to set the EOF timestamp.
4 years ago
Nicolas George
52091fcb5c
lavfi/sine: switch to activate
...
Allow to set the EOF timestamp.
Signed-off-by: Nicolas George <george@nsup.com>
4 years ago