diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-07-03 17:42:03 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-07-08 11:49:54 +0200 |
commit | 01e545d04680d6398e85eb1b6d937b608b3f72a2 (patch) | |
tree | 02638f5ea7bef6ec8d1e23e5c586f3ba769c2f73 /libavfilter/limiter.h | |
parent | 51db262312558fc62b8b89a138b280e612f37509 (diff) |
avfilter: add limiter filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/limiter.h')
-rw-r--r-- | libavfilter/limiter.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libavfilter/limiter.h b/libavfilter/limiter.h new file mode 100644 index 0000000000..54d423d1f4 --- /dev/null +++ b/libavfilter/limiter.h @@ -0,0 +1,33 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVFILTER_LIMITER_H +#define AVFILTER_LIMITER_H + +#include <stddef.h> +#include <stdint.h> + +typedef struct LimiterDSPContext { + void (*limiter)(const uint8_t *src, uint8_t *dst, + ptrdiff_t slinesize, ptrdiff_t dlinesize, + int w, int h, int min, int max); +} LimiterDSPContext; + +void ff_limiter_init_x86(LimiterDSPContext *dsp, int bpp); + +#endif /* AVFILTER_LIMITER_H */ |