RetroArch
video_filter.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  *
5  * RetroArch is free software: you can redistribute it and/or modify it under the terms
6  * of the GNU General Public License as published by the Free Software Found-
7  * ation, either version 3 of the License, or (at your option) any later version.
8  *
9  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  * PURPOSE. See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with RetroArch.
14  * If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef RARCH_FILTER_H__
18 #define RARCH_FILTER_H__
19 
20 #include <stddef.h>
21 
22 #include <libretro.h>
23 #include <retro_common_api.h>
24 
25 #define RARCH_SOFTFILTER_THREADS_AUTO 0
26 
28 
30 
32  const char *filter_path,
33  unsigned threads,
34  enum retro_pixel_format in_pixel_format,
35  unsigned max_width, unsigned max_height);
36 
38 
40  unsigned *width, unsigned *height);
41 
43  unsigned *out_width, unsigned *out_height,
44  unsigned width, unsigned height);
45 
47  rarch_softfilter_t *filt);
48 
50  void *output, size_t output_stride,
51  const void *input, unsigned width, unsigned height, size_t input_stride);
52 
53 const char *rarch_softfilter_get_name(void *data);
54 
56 
57 #endif
void rarch_softfilter_get_max_output_size(rarch_softfilter_t *filt, unsigned *width, unsigned *height)
Definition: video_filter.c:494
void rarch_softfilter_get_output_size(rarch_softfilter_t *filt, unsigned *out_width, unsigned *out_height, unsigned width, unsigned height)
Definition: video_filter.c:501
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
enum retro_pixel_format rarch_softfilter_get_output_format(rarch_softfilter_t *filt)
Definition: video_filter.c:510
Definition: ibxm.h:9
GLenum GLenum GLenum input
Definition: glext.h:9938
retro_pixel_format
Definition: libretro.h:2142
Definition: video_filter.c:87
static unsigned max_height
Definition: gx_gfx.c:278
rarch_softfilter_t * rarch_softfilter_new(const char *filter_path, unsigned threads, enum retro_pixel_format in_pixel_format, unsigned max_width, unsigned max_height)
Definition: video_filter.c:388
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
void rarch_softfilter_free(rarch_softfilter_t *filt)
Definition: video_filter.c:455
std::string output
Definition: Config.FromFile.cpp:44
typedefRETRO_BEGIN_DECLS struct rarch_softfilter rarch_softfilter_t
Definition: video_filter.h:29
GLint GLint GLsizei width
Definition: glext.h:6293
unsigned max_width
Definition: video_filter.c:97
unsigned threads
Definition: video_filter.c:101
void rarch_softfilter_process(rarch_softfilter_t *filt, void *output, size_t output_stride, const void *input, unsigned width, unsigned height, size_t input_stride)
Definition: video_filter.c:516
const char * rarch_softfilter_get_name(void *data)
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293