diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-22 18:57:14 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-23 16:20:21 +0200 |
commit | ac0f5f4c1717470c0254879cb3ac164af0d47727 (patch) | |
tree | a8fc297cd213027826bdf43b30a1465d5394f1f1 /libavfilter/maskedclamp.h | |
parent | 11cfff04eda73a4ba92eb13bc0d09cbd224cd9e3 (diff) | |
download | ffmpeg-ac0f5f4c1717470c0254879cb3ac164af0d47727.tar.gz |
avfilter/vf_maskedclamp: add x86 SIMD
Diffstat (limited to 'libavfilter/maskedclamp.h')
-rw-r--r-- | libavfilter/maskedclamp.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libavfilter/maskedclamp.h b/libavfilter/maskedclamp.h new file mode 100644 index 0000000000..6a1fd9c04b --- /dev/null +++ b/libavfilter/maskedclamp.h @@ -0,0 +1,35 @@ + /* + * Copyright (c) 2019 Paul B Mahol + * + * 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_MASKEDCLAMP_H +#define AVFILTER_MASKEDCLAMP_H + +#include <stddef.h> +#include <stdint.h> + +typedef struct MaskedClampDSPContext { + void (*maskedclamp)(const uint8_t *bsrc, uint8_t *dst, + const uint8_t *darksrc, const uint8_t *brightsrc, + int w, int undershoot, int overshoot); +} MaskedClampDSPContext; + +void ff_maskedclamp_init_x86(MaskedClampDSPContext *dsp, int depth); + +#endif /* AVFILTER_MASKEDCLAMP_H */ |