summaryrefslogtreecommitdiff
path: root/libavfilter/vf_xbr.c
Commit message (Collapse)AuthorAge
* avfilter/avfilter: Add numbers of (in|out)pads directly to AVFilterAndreas Rheinhardt2021-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up until now, an AVFilter's lists of input and output AVFilterPads were terminated by a sentinel and the only way to get the length of these lists was by using avfilter_pad_count(). This has two drawbacks: first, sizeof(AVFilterPad) is not negligible (i.e. 64B on 64bit systems); second, getting the size involves a function call instead of just reading the data. This commit therefore changes this. The sentinels are removed and new private fields nb_inputs and nb_outputs are added to AVFilter that contain the number of elements of the respective AVFilterPad array. Given that AVFilter.(in|out)puts are the only arrays of zero-terminated AVFilterPads an API user has access to (AVFilterContext.(in|out)put_pads are not zero-terminated and they already have a size field) the argument to avfilter_pad_count() is always one of these lists, so it just has to find the filter the list belongs to and read said number. This is slower than before, but a replacement function that just reads the internal numbers that users are expected to switch to will be added soon; and furthermore, avfilter_pad_count() is probably never called in hot loops anyway. This saves about 49KiB from the binary; notice that these sentinels are not in .bss despite being zeroed: they are in .data.rel.ro due to the non-sentinels. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avfilter/internal: Factor out executing a filter's execute_funcAndreas Rheinhardt2021-08-15
| | | | | | | 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>
* avfilter/formats: Factor common function combinations outAndreas Rheinhardt2021-08-13
| | | | | | | | | | | 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>
* Remove unnecessary avassert.h inclusionsAndreas Rheinhardt2021-07-22
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avfilter: Constify all AVFiltersAndreas Rheinhardt2021-04-27
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter: add av_cold where it is missingPaul B Mahol2019-10-03
|
* avfilter/vf_xbr: Fix left shift of negative numberAndreas Rheinhardt2019-09-28
| | | | | | | | | Affected every usage of vf_xbr, e.g. the FATE-tests filter-2xbr, filter-3xbr, filter-4xbr. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi/xbr: update filter urlMina2018-08-09
| | | | | | | | Existing link is broken. This patch updates the existing url with a working one. Signed-off-by: Mina <minasamy_@hotmail.com> Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
* avfilter: don't anonymously typedef structsPaul B Mahol2017-05-13
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/xbr: undef PI if definedClément Bœsch2017-03-29
| | | | | | | | | | This conflict with the DJGPP libc math.h which includes a PI macro (to M_PI). We cannot make DJGPP POSIX only (using -D_POSIX_SOURCE) to avoid this kind of symbols conflicts due to the lack of both posix_memalign and memalign (DJGPP non standard function) in that POSIX mode. We currently rely on memalign for aligned heap allocation.
* avfilter: make use of ff_filter_get_nb_threadsPaul B Mahol2016-08-29
|
* all: do standards compliant absdiff computationGanesh Ajjanagadde2015-09-18
| | | | | | | | This resolves implementation defined behavior, and also silences -Wabsolute-value in clang 3.5+. Moreover, the generated asm is identical to before modulo nop padding. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_xbr: use the name 's' for the pointer to the private contextGanesh Ajjanagadde2015-09-15
| | | | Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter: handle error in query_formats() in bunch of filtersPaul B Mahol2015-04-08
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/xbr: reindent after previous commitClément Bœsch2014-12-25
|
* avfilter/xbr: refactor px calculation in FILT[234]Clément Bœsch2014-12-25
|
* avfilter/xbr: move alpha blend assignment out of the macrosClément Bœsch2014-12-25
|
* avfilter/xbr: remove unused maskClément Bœsch2014-12-25
|
* avfilter/xbr: refactor alpha blending macrosClément Bœsch2014-12-25
|
* avfilter/xbr: fix style in FILT4() callsClément Bœsch2014-11-15
|
* avfilter/xbr: clarify default "interpolated" pixels assignmentsClément Bœsch2014-11-15
|
* avfilter/xbr: refactor xbr[234]x into a single functionClément Bœsch2014-11-15
| | | | No speed difference.
* avfilter/xbr: add slice threadingClément Bœsch2014-11-15
|
* avfilter/xbr: add video and filtering flags to optionsClément Bœsch2014-11-15
| | | | Fixes ffmpeg -h filter=xbr
* avfilter/xbr: use function pointers for xbr[234]xClément Bœsch2014-11-15
|
* avfilter/xbr: remove FATE test entry from @todoClément Bœsch2014-11-15
| | | | See 57688aecbd720f4b02acc65b5006b14b7dd6a9f4
* avfilter/xbr: consistent copyright headerClément Bœsch2014-11-15
|
* avfilter/xbr: make xbr[234]x a bit more consistentClément Bœsch2014-11-15
|
* avfilter/xbr: misc style fixesClément Bœsch2014-11-15
|
* avfilter/xbr: simplify left/up conditionsClément Bœsch2014-11-15
|
* avfilter/xbr: misc cleanup in FILT[234] macrosClément Bœsch2014-11-15
|
* avfilter/xbr: refactor src/dst pointers definitions into a macroClément Bœsch2014-11-15
|
* avfilter/xbr: refactor the 21 pixels definition into a macroClément Bœsch2014-11-15
|
* avfilter/xbr: mark source pointers as constClément Bœsch2014-11-15
|
* avfilter/xbr: simplify width overread checksClément Bœsch2014-11-15
|
* avfilter/xbr: use different macro names for each dimensionClément Bœsch2014-11-15
|
* avfilter/xbr: avoid unecessary macro redirectionsClément Bœsch2014-11-15
|
* avfilter/xbr: localize some filtering variablesClément Bœsch2014-11-15
|
* avfilter/xbr: do not pass unchanging r2y to macrosClément Bœsch2014-11-15
|
* lavfi/xbr: remove relicensing notice from copyright headerStefano Sabatini2014-11-15
| | | | The log is good enough for tracking those changes.
* lavfi : change xBR filter to LGPLArwa Arif2014-11-15
| | | | | | Hyllian's message : "Hi, Put lgpl on this and use it as you wish. It's free!" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/xbr: apply misc cosmetical fixesStefano Sabatini2014-11-10
|
* avfilter/xbr: drop yet another x2 referenceClément Bœsch2014-11-10
|
* avfilter/xbr: fix filter description fieldClément Bœsch2014-11-10
|
* avfilter/xbr: fix TODO entryClément Bœsch2014-11-10
|
* avfilter/xbr: consistent use of @seeClément Bœsch2014-11-10
|
* avfilter/vf_xbr: Uppercase first letter of context type for consistencyMichael Niedermayer2014-11-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi: add xbr filter xBRArwa Arif2014-11-10
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>