-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathfilters.h
More file actions
81 lines (66 loc) · 2.13 KB
/
filters.h
File metadata and controls
81 lines (66 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* XBR filter: from the FFmpeg project
*
* Copyright (c) 2011, 2012 Hyllian/Jararaca <sergiogdb@gmail.com>
* Copyright (c) 2014 Arwa Arif <arwaarif1994@gmail.com>
* Copyright (c) 2015 Treeki <treeki@gmail.com>
*
*
* hqx filter: from the hqx project
* Copyright (C) 2003 Maxim Stepin ( maxst@hiend3d.com )
* Copyright (C) 2010 Cameron Zemek ( grom@zeminvaders.net)
* Copyright (c) 2015 Treeki <treeki@gmail.com>
*
*
* This program 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.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __LIBXBR_FILTERS_H_INCLUDED
#define __LIBXBR_FILTERS_H_INCLUDED
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MSC_VER
#define XBR_INLINE __inline
#ifdef XBR_INTERNAL
#define XBR_EXPORT __declspec(dllexport)
#else
#define XBR_EXPORT __declspec(dllimport)
#endif
#else
#define XBR_INLINE inline
#define XBR_EXPORT
#endif
typedef struct {
uint32_t rgbtoyuv[1<<24];
} xbr_data;
typedef struct {
const uint8_t *input;
uint8_t *output;
int inWidth, inHeight;
int inPitch, outPitch;
const xbr_data *data;
} xbr_params;
XBR_EXPORT void xbr_filter_xbr2x(const xbr_params *ctx);
XBR_EXPORT void xbr_filter_xbr3x(const xbr_params *ctx);
XBR_EXPORT void xbr_filter_xbr4x(const xbr_params *ctx);
XBR_EXPORT void xbr_filter_hq2x(const xbr_params *ctx);
XBR_EXPORT void xbr_filter_hq3x(const xbr_params *ctx);
XBR_EXPORT void xbr_filter_hq4x(const xbr_params *ctx);
XBR_EXPORT void xbr_init_data(xbr_data *data);
#ifdef __cplusplus
}
#endif
#endif