Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-20lavfi/formats: rename AVFilterNegotiation.nb to nb_mergersNicolas George
2021-08-20lavfi/formats: cosmetic: move negotiation stuff at the endNicolas George
It was between AVFilterFormats and AVFilterChannelLayouts.
2021-08-20avfilter/vf_signalstats: avoid doubles in calculationsPaul B Mahol
2021-08-20avfilter/vf_chromakey: fix diff scaling for chromahold filterPaul B Mahol
2021-08-19avfilter/vf_paletteuse: do not use in dithering transparent palettePaul B Mahol
2021-08-19avfilter/vf_paletteuse: fix some integer overflowsPaul B Mahol
2021-08-19avfilter/vf_paletteuse: do not sort transparency colorPaul B Mahol
Make last palette entry always transparent color. Fixes wrong filtered output with new=1 option set.
2021-08-19avfilter/vf_palettegen: fix integer overflowPaul B Mahol
2021-08-17avfilter/avfilter: Remove unused feature to add pads in the middleAndreas Rheinhardt
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-17avfilter/internal: Replace AVFilterPad.needs_writable by flagsAndreas Rheinhardt
It will be useful in the future when more flags are added. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-17avfilter/audio: Don't call av_get_channel_layout_nb_channels twiceAndreas Rheinhardt
Also makes the assert-string shorter. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-17avfilter/internal: Combine get_(audio|video)_buffer into unionAndreas Rheinhardt
These fields are mutually exclusive, so putting them in a union is possible and makes AVFilterPad smaller. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-17avfilter/avfilter: Remove redundant assignmentAndreas Rheinhardt
av_frame_copy_props() already copies pts. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-17avfilter/vf_convolve: switch to TX FFT from avutilPaul B Mahol
2021-08-16avfilter: add (a)segment filtersPaul B Mahol
2021-08-16avfilter: Remove init_opaque callbackAndreas Rheinhardt
The last init_opaque callback has been removed in commit 07ffdedf784e86b88074d8d3e08e55752869562a; the opaque argument has been always NULL since 0acf7e268b2f873379cd854b4d5aaba6f9c1f0b5. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-16avfilter/vf_(guided|program_opencl): Add missing dynamic inputs flagAndreas Rheinhardt
The code for inserting inpads can't be reached by ff_vsrc_openclsrc (unsurprising given that it is a source filter), so it didn't get the flag. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-16avfilter/vf_waveform: add option to control strechness of waveformPaul B Mahol
2021-08-16avfilter/vf_colorcorrect: calculate imax/max once at config stagePaul B Mahol
2021-08-16avfilter/vf_colorcorrect: add initial automatic filteringPaul B Mahol
2021-08-16avfilter/vf_fieldorder: Simplify setting common pixel formatsAndreas Rheinhardt
by using ff_set_common_formats(). Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-15avfilter/vf_find_rect: Don't make frame writable unnecessarilyAndreas Rheinhardt
AVFrame.metadata is always owned by its AVFrame, it is not shared in the first place, so one does not need to make the frame writable to modify it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-15avfilter/vf_colorkey: Don't manually make frame writableAndreas Rheinhardt
Instead, set AVFilterPad.needs_writable. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-15avfilter/vf_despill: Don't manually make frame writableAndreas Rheinhardt
Instead, set AVFilterPad.needs_writable. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-15avfilter/vf_lumakey: Don't manually make frame writableAndreas Rheinhardt
Instead, set AVFilterPad.needs_writable. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-15avfilter/vf_paletteuse: Remove redundant freeing codeAndreas Rheinhardt
AVFilter.uninit is called automatically if init fails. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-15avfilter/internal: Factor out executing a filter's execute_funcAndreas Rheinhardt
The current way of doing it involves writing the ctx parameter twice. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-15avfilter/vf_colorcorrect: add subsampling formats supportPaul B Mahol
2021-08-15avfilter/vf_colorcorrect: remove code touching Y componentPaul B Mahol
It is not needed operation.
2021-08-15avfilter/avf_showspectrum: add unwrapped phase data modePaul B Mahol
2021-08-14lavfi/formats: describe conversion in negotiation structure.Nicolas George
2021-08-14lavfi/formats: put merge functions in structures.Nicolas George
It makes the code clearer and will allow adding new stages of negotiation easier.
2021-08-13avfilter/vf_transpose_npp: Use correct array nameAndreas Rheinhardt
Fixes build failures since 18ec426a861c1a9a2072080796dff146bafecb53. Found-by: Gregory Beauregard Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-13avfilter/formats: Factor common function combinations outAndreas Rheinhardt
Several combinations of functions happen quite often in query_format functions; e.g. ff_set_common_formats(ctx, ff_make_format_list(sample_fmts)) is very common. This commit therefore adds functions that are equivalent to commonly used function combinations in order to reduce code duplication. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-12avfilter/vf_scale: Avoid unnecessary indirectionAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-11avfilter/avfilter: Use av_memdup where appropriateAndreas Rheinhardt
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-10avfilter/af_join: fix eof timestamps and blocking in many scenariosPaul B Mahol
2021-08-10lavfi/dnn: DNNAsyncExecModule Execution Failure HandlingShubhanshu Saxena
This commit adds the case handling if the asynchronous execution of a request fails by checking the exit status of the thread when joining before starting another execution. On failure, it does the cleanup as well. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/dnn_backend_tf: Error Handling for tf_create_inference_requestShubhanshu Saxena
This commit includes the check for the case when the newly created TFInferRequest is NULL. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/dnn: Extract Common Parts from get_output functionsShubhanshu Saxena
The frame allocation and filling the TaskItem with execution parameters is common in the three backends. This commit shifts this logic to dnn_backend_common. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/dnn_backend_tf: Add TF_Status to TFRequestItemShubhanshu Saxena
Since requests are running in parallel, there is inconsistency in the status of the execution. To resolve it, we avoid using mutex as it would result in single TF_Session running at a time. So add TF_Status to the TFRequestItem Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/dnn_backend_tf: Error Handling for execute_model_tfShubhanshu Saxena
This patch adds error handling for cases where the execute_model_tf fails, clears the used memory in the TFRequestItem and finally pushes it back to the request queue. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/dnn: Async Support for TensorFlow BackendShubhanshu Saxena
This commit enables async execution in the TensorFlow backend and adds function to flush extra frames. The async execution mechanism executes the TFInferRequests on a separate thread which is joined before the next execution of same TFRequestItem/while freeing the model. The following is the comparison of this mechanism with the existing sync mechanism on TensorFlow C API 2.5 CPU variant. Async Mode: 4m32.846s Sync Mode: 5m17.582s The above was performed on super resolution filter using SRCNN model. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/dnn_backend_tf: TFInferRequest Execution and DocumentationShubhanshu Saxena
This commit adds a function for execution of TFInferRequest and documentation for functions related to TFInferRequest. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/dnn: Common Function to Get Async Result in DNN BackendsShubhanshu Saxena
This commits refactors the get async result function for common use in all three backends. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/dnn: Add Async Execution Mechanism and DocumentationShubhanshu Saxena
This commit adds an async execution mechanism for common use in the TensorFlow and Native backends. This commit also adds the documentation of typedefs and functions in the async module for common use in DNN backends. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2021-08-10lavfi/qsvvpp: do not mix up FFmpeg and SDK error codeHaihao Xiang
The function ff_qsvvpp_filter_frame should return a FFmpeg error code if there is an error. However it might return a SDK error code without this patch. Reviewed-by: Soft Works <softworkz@hotmail.com>
2021-08-08avfilter/asrc_flite: Don't define an object by accidentAndreas Rheinhardt
The flite filter apparently only wanted to declare a struct, but mistakenly also defined an unused and zero-initialized element with external linkage. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-08avfilter/vf_vif: Make ff_compute_vif2 staticAndreas Rheinhardt
Only used here; the vif.h header can then be removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-08avfilter/vf_vif: Fix mismatch in number of array elementsAndreas Rheinhardt
The function definition used float *data_buf[14], although there are only 13 elements (and only 13 are used); the declaration used 13. Given that the type will be converted to float **data_buf anyway, this is not in violation of the C specs, but nevertheless a bug. GCC 11 has a new warning for this -Warray-parameter. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>