mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
This change allows ff_limiter_init to be inlined without depending on vf_limiter.o Signed-off-by: Rodrigo Camacho <rodrigompcamacho@gmail.com>
49 lines
1.5 KiB
C
49 lines
1.5 KiB
C
/*
|
|
* 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>
|
|
#include "avfilter.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;
|
|
|
|
typedef struct LimiterContext {
|
|
const AVClass *class;
|
|
int min, max; /* user-facing option */
|
|
int planes;
|
|
int nb_planes;
|
|
int plane_min[4]; /* resolved per-plane limits */
|
|
int plane_max[4];
|
|
int linesize[4];
|
|
int width[4];
|
|
int height[4];
|
|
|
|
LimiterDSPContext dsp;
|
|
} LimiterContext;
|
|
|
|
void ff_limiter_init_x86(LimiterDSPContext *dsp, int bpp);
|
|
|
|
#endif /* AVFILTER_LIMITER_H */
|