yading@10: /* yading@10: * Copyright (c) 2003 Daniel Moreno yading@10: * Copyright (c) 2010 Baptiste Coudurier yading@10: * Copyright (c) 2012 Loren Merritt yading@10: * yading@10: * This file is part of FFmpeg, ported from MPlayer. yading@10: * yading@10: * FFmpeg is free software; you can redistribute it and/or modify yading@10: * it under the terms of the GNU General Public License as published by yading@10: * the Free Software Foundation; either version 2 of the License, or yading@10: * (at your option) any later version. yading@10: * yading@10: * FFmpeg is distributed in the hope that it will be useful, yading@10: * but WITHOUT ANY WARRANTY; without even the implied warranty of yading@10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the yading@10: * GNU General Public License for more details. yading@10: * yading@10: * You should have received a copy of the GNU General Public License along yading@10: * with FFmpeg; if not, write to the Free Software Foundation, Inc., yading@10: * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. yading@10: */ yading@10: yading@10: #ifndef AVFILTER_VF_HQDN3D_H yading@10: #define AVFILTER_VF_HQDN3D_H yading@10: yading@10: #include yading@10: #include yading@10: yading@10: #include "libavutil/opt.h" yading@10: yading@10: typedef struct { yading@10: const AVClass *class; yading@10: int16_t *coefs[4]; yading@10: uint16_t *line; yading@10: uint16_t *frame_prev[3]; yading@10: double strength[4]; yading@10: int hsub, vsub; yading@10: int depth; yading@10: void (*denoise_row[17])(uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial, int16_t *temporal); yading@10: } HQDN3DContext; yading@10: yading@10: #define LUMA_SPATIAL 0 yading@10: #define LUMA_TMP 1 yading@10: #define CHROMA_SPATIAL 2 yading@10: #define CHROMA_TMP 3 yading@10: yading@10: void ff_hqdn3d_init_x86(HQDN3DContext *hqdn3d); yading@10: yading@10: #endif /* AVFILTER_VF_HQDN3D_H */