diff options
author | Nicolas George <george@nsup.org> | 2020-04-16 16:40:40 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2020-05-23 15:50:20 +0200 |
commit | 563e1df5d6ae4fc6ba8257268f5493aee9168e9e (patch) | |
tree | 1769d3a48a8c0036d1487e9f2a5178a4a630a7dd /libavfilter/formats.h | |
parent | aef670cff4d8856a99451995aff6d77a2f20403f (diff) |
lavfi/formats: add ff_formats_pixdesc_filter().
Diffstat (limited to 'libavfilter/formats.h')
-rw-r--r-- | libavfilter/formats.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/formats.h b/libavfilter/formats.h index 870809b5a0..cc588f30d8 100644 --- a/libavfilter/formats.h +++ b/libavfilter/formats.h @@ -222,6 +222,16 @@ av_warn_unused_result AVFilterFormats *ff_all_formats(enum AVMediaType type); /** + * Construct a formats list containing all pixel formats with certain + * properties + */ +av_warn_unused_result +int ff_formats_pixdesc_filter(AVFilterFormats **rfmts, unsigned want, unsigned rej); + +//* format is software, non-planar with sub-sampling +#define FF_PIX_FMT_FLAG_SW_FLAT_SUB (1 << 24) + +/** * Construct a formats list containing all planar sample formats. */ av_warn_unused_result |