FFmpeg
vf_hqdn3d.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003 Daniel Moreno <comac AT comac DOT darktech DOT org>
3  * Copyright (c) 2010 Baptiste Coudurier
4  * Copyright (c) 2012 Loren Merritt
5  *
6  * This file is part of FFmpeg, ported from MPlayer.
7  *
8  * FFmpeg is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * FFmpeg is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with FFmpeg; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #ifndef AVFILTER_HQDN3D_H
24 #define AVFILTER_HQDN3D_H
25 
26 #include <stddef.h>
27 #include <stdint.h>
28 
29 #include "libavutil/opt.h"
30 
31 typedef struct HQDN3DContext {
32  const AVClass *class;
33  int16_t *coefs[4];
34  uint16_t *line[3];
35  uint16_t *frame_prev[3];
36  double strength[4];
37  int hsub, vsub;
38  int depth;
39  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);
41 
42 #define LUMA_SPATIAL 0
43 #define LUMA_TMP 1
44 #define CHROMA_SPATIAL 2
45 #define CHROMA_TMP 3
46 
47 void ff_hqdn3d_init_x86(HQDN3DContext *hqdn3d);
48 
49 #endif /* AVFILTER_HQDN3D_H */
opt.h
w
uint8_t w
Definition: llviddspenc.c:38
HQDN3DContext::depth
int depth
Definition: vf_hqdn3d.h:38
ff_hqdn3d_init_x86
void ff_hqdn3d_init_x86(HQDN3DContext *hqdn3d)
Definition: vf_hqdn3d_init.c:41
HQDN3DContext::vsub
int vsub
Definition: vf_hqdn3d.h:37
AVClass
Describe the class of an AVClass context structure.
Definition: log.h:66
HQDN3DContext::hsub
int hsub
Definition: vf_hqdn3d.h:37
line
Definition: graph2dot.c:48
HQDN3DContext::strength
double strength[4]
Definition: vf_hqdn3d.h:36
HQDN3DContext::coefs
int16_t * coefs[4]
Definition: vf_hqdn3d.h:33
HQDN3DContext
Definition: vf_hqdn3d.h:31
src
INIT_CLIP pixel * src
Definition: h264pred_template.c:418
HQDN3DContext::frame_prev
uint16_t * frame_prev[3]
Definition: vf_hqdn3d.h:35
HQDN3DContext::denoise_row
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)
Definition: vf_hqdn3d.h:39