Libav
vf_hqdn3d_init.c
Go to the documentation of this file.
1 /*
2  * This file is part of Libav.
3  *
4  * Libav is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * Libav is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with Libav; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #include <stddef.h>
20 #include <stdint.h>
21 
22 #include "libavutil/attributes.h"
23 #include "libavfilter/vf_hqdn3d.h"
24 #include "config.h"
25 
26 void ff_hqdn3d_row_8_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant,
27  uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial,
28  int16_t *temporal);
29 void ff_hqdn3d_row_9_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant,
30  uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial,
31  int16_t *temporal);
32 void ff_hqdn3d_row_10_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant,
33  uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial,
34  int16_t *temporal);
35 void ff_hqdn3d_row_16_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant,
36  uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial,
37  int16_t *temporal);
38 
40 {
41 #if HAVE_YASM
42  hqdn3d->denoise_row[8] = ff_hqdn3d_row_8_x86;
43  hqdn3d->denoise_row[9] = ff_hqdn3d_row_9_x86;
44  hqdn3d->denoise_row[10] = ff_hqdn3d_row_10_x86;
45  hqdn3d->denoise_row[16] = ff_hqdn3d_row_16_x86;
46 #endif /* HAVE_YASM */
47 }
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:35
Macro definitions for various function/variable attributes.
av_cold void ff_hqdn3d_init_x86(HQDN3DContext *hqdn3d)
uint8_t
#define av_cold
Definition: attributes.h:66
void ff_hqdn3d_row_16_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial, int16_t *temporal)
void ff_hqdn3d_row_8_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial, int16_t *temporal)
void ff_hqdn3d_row_10_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial, int16_t *temporal)
void ff_hqdn3d_row_9_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial, int16_t *temporal)