summaryrefslogtreecommitdiff
path: root/libavfilter/vf_framepack.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/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>
* 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/vf_framepack: add >8 format supportPaul B Mahol2021-02-09
|
* avfilter/vf_framepack: really fix ef466a8b29f8Paul B Mahol2019-11-17
|
* avfilter/vf_framepack: switch to activatePaul B Mahol2019-11-17
|
* avfilter/vf_framepack: fix timestamps for frameseq formatPaul B Mahol2019-11-16
|
* avfilter/vf_framepack: add missing filtering flagPaul B Mahol2019-11-16
|
* Merge commit '99e9697e3a12ab4a6638a36b95edafd6a98f9eaa'James Almer2017-11-29
|\ | | | | | | | | | | | | * commit '99e9697e3a12ab4a6638a36b95edafd6a98f9eaa': stereo3d: Support view type for frame sequence type Merged-by: James Almer <jamrial@gmail.com>
| * stereo3d: Support view type for frame sequence typeVittorio Giovara2017-11-28
| | | | | | | | | | | | Implement detection in h264 and hevc and insertion in framepack filter. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'e8bc642202c10beda1ea4e93ec8492b1e39805e5'Derek Buitenhuis2016-01-27
|\| | | | | | | Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavu: add AV_CEIL_RSHIFT and use it in various placesClément Bœsch2016-01-11
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-27
| | | | | | | | | | | | | | | | | | | | Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit '7d12cba95ca15198a930c05458dc414ac00c578b'Hendrik Leppkes2015-11-11
|\| | | | | | | | | | | | | * commit '7d12cba95ca15198a930c05458dc414ac00c578b': vf_framepack: Check and update frame_rate Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * vf_framepack: Check and update frame_rateMichael Niedermayer2015-11-09
| | | | | | | | | | (cherry picked from ffmpeg commit a46a23d30fea9c8a5570e07ec4d9c9b4eaa6eb4f) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | lavfi/vf_framepack: fix scheduling.Nicolas George2015-11-07
| |
* | Merge commit 'c9943f00cfa2471d1b8a3a9ddc7a21049a71090e'Hendrik Leppkes2015-09-29
|\| | | | | | | | | | | | | * commit 'c9943f00cfa2471d1b8a3a9ddc7a21049a71090e': vf_framepack: Use av_image_copy() where appropriate Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * vf_framepack: Use av_image_copy() where appropriateVittorio Giovara2015-09-29
| | | | | | | | | | | | | | This correctly adjust chroma subsampling for column interleaved mode, and allows future high bitdepth support. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avfilter: use AVFILTER_DEFINE_CLASS()Paul B Mahol2015-07-02
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@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/vf_framepack: Check and update frame_rateMichael Niedermayer2015-01-16
| | | | | | | | | | | | | | The frame_rate update was missing leaving the output frame rate wrong. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avfilter/framepack: use FF_CEIL_RSHIFT()Clément Bœsch2014-12-30
| |
* | Merge commit 'a7d0e7ead95e584c4866617f046b2493066975c6'Michael Niedermayer2014-01-10
|/ | | | | | | | | | | | | * commit 'a7d0e7ead95e584c4866617f046b2493066975c6': lavfi: add framepack filter Conflicts: Changelog doc/filters.texi libavfilter/allfilters.c libavfilter/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi: add framepack filterVittorio Giovara2014-01-09