summaryrefslogtreecommitdiff
path: root/libavfilter/vf_misc_vaapi.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>
* Remove unnecessary avassert.h inclusionsAndreas Rheinhardt2021-07-22
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove unnecessary mem.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>
* lavfi/vf_*_vaapi: Fix error caseMark Thompson2020-02-09
| | | | Fixes CID 1452400, 1452416, 1452550, 1452590, 1452760.
* lavfi/vaapi: Improve support for colour propertiesMark Thompson2019-06-02
| | | | | | Attempts to pick the set of supported colour properties best matching the input. Output is then set with the same values, except for the colour matrix which may change when converting between RGB and YUV.
* vf_misc_vaapi: Add missing return value checksMark Thompson2019-06-02
| | | | Parameter buffer creation can fail.
* lavfi/vaapi: Factorise out common code for parameter buffer setupMark Thompson2019-06-02
| | | | | Also enables cropping on all VAAPI filters, inherited from the existing support in scale_vaapi.
* lavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACKZachary Zhou2018-12-30
| | | | | Signed-off-by: Zachary Zhou <zachary.zhou@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* avfilter/vf_*_vaapi: Add missing AV_OPT_FLAG_FILTERING_PARAMMichael Niedermayer2018-03-07
| | | | | Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi/misc_vaapi: use default value setting if without arguments.Jun Zhao2018-01-25
| | | | | Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* lavfi/vf_xxx_vaapi: fix typo.Jun Zhao2018-01-24
| | | | Signed-off-by: Jun Zhao <jun.zhao@intel.com>
* lavfi: add denoise and sharpness VAAPI video filters.Jun Zhao2018-01-21
Most code between them is common, so put them in a new file for miscellaneous VAAPI filters. Signed-off-by: Yun Zhou <yunx.z.zhou@intel.com> Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>