mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Split up softfilter struct definitions into separate header file -
so as to make it not part of the softfilter API header
This commit is contained in:
parent
3a1c3f608a
commit
6fd54d9659
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -14,35 +15,34 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Hyllian's 2xBR v3.3a
|
* Hyllian's 2xBR v3.3a
|
||||||
|
* Copyright (C) 2011, 2014 Hyllian/Jararaca - sergiogdb@gmail.com
|
||||||
Copyright (C) 2011, 2014 Hyllian/Jararaca - sergiogdb@gmail.com
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
This program is free software; you can redistribute it and/or
|
* modify it under the terms of the GNU General Public License
|
||||||
modify it under the terms of the GNU General Public License
|
* as published by the Free Software Foundation; either version 2
|
||||||
as published by the Free Software Foundation; either version 2
|
* of the License, or (at your option) any later version.
|
||||||
of the License, or (at your option) any later version.
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
This program is distributed in the hope that it will be useful,
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* GNU General Public License for more details.
|
||||||
GNU General Public License for more details.
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
You should have received a copy of the GNU General Public License
|
* along with this program; if not, write to the Free Software
|
||||||
along with this program; if not, write to the Free Software
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Compile: gcc -o twoxbr.so -shared twoxbr.c -std=c99 -O3 -Wall -pedantic -fPIC
|
// Compile: gcc -o twoxbr.so -shared twoxbr.c -std=c99 -O3 -Wall -pedantic -fPIC
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
#define softfilter_get_implementation twoxbr_get_implementation
|
#define softfilter_get_implementation twoxbr_get_implementation
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TWOXBR_SCALE 2
|
#define TWOXBR_SCALE 2
|
||||||
|
|
||||||
static unsigned twoxbr_generic_input_fmts(void)
|
static unsigned twoxbr_generic_input_fmts(void)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -16,6 +17,7 @@
|
|||||||
// Compile: gcc -o twoxsai.so -shared twoxsai.c -std=c99 -O3 -Wall -pedantic -fPIC
|
// Compile: gcc -o twoxsai.so -shared twoxsai.c -std=c99 -O3 -Wall -pedantic -fPIC
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -14,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "boolean.h"
|
#include "boolean.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -14,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "boolean.h"
|
#include "boolean.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -14,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "boolean.h"
|
#include "boolean.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -14,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "boolean.h"
|
#include "boolean.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -18,6 +19,7 @@
|
|||||||
// Useless filter, just nice as a reference for other filters.
|
// Useless filter, just nice as a reference for other filters.
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -16,6 +17,7 @@
|
|||||||
// Compile: gcc -o epx.so -shared epx.c -std=c99 -O3 -Wall -pedantic -fPIC
|
// Compile: gcc -o epx.so -shared epx.c -std=c99 -O3 -Wall -pedantic -fPIC
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -16,6 +17,7 @@
|
|||||||
// Compile: gcc -o scale2x.so -shared scale2x.c -std=c99 -O3 -Wall -pedantic -fPIC
|
// Compile: gcc -o scale2x.so -shared scale2x.c -std=c99 -O3 -Wall -pedantic -fPIC
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
|
@ -103,28 +103,6 @@ typedef void (*softfilter_get_work_packets_t)(void *data,
|
|||||||
typedef unsigned (*softfilter_query_num_threads_t)(void *data);
|
typedef unsigned (*softfilter_query_num_threads_t)(void *data);
|
||||||
/////
|
/////
|
||||||
|
|
||||||
struct softfilter_thread_data
|
|
||||||
{
|
|
||||||
void *out_data;
|
|
||||||
const void *in_data;
|
|
||||||
size_t out_pitch;
|
|
||||||
size_t in_pitch;
|
|
||||||
unsigned colfmt;
|
|
||||||
unsigned width;
|
|
||||||
unsigned height;
|
|
||||||
int first;
|
|
||||||
int first_second;
|
|
||||||
int last;
|
|
||||||
int last_second;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct filter_data
|
|
||||||
{
|
|
||||||
unsigned threads;
|
|
||||||
struct softfilter_thread_data *workers;
|
|
||||||
unsigned in_fmt;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct softfilter_implementation
|
struct softfilter_implementation
|
||||||
{
|
{
|
||||||
softfilter_query_input_formats_t query_input_formats;
|
softfilter_query_input_formats_t query_input_formats;
|
||||||
|
39
gfx/filters/softfilter_prototypes.h
Normal file
39
gfx/filters/softfilter_prototypes.h
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
/* RetroArch - A frontend for libretro.
|
||||||
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
|
*
|
||||||
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
|
* ation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* RetroArch 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||||
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _RARCH_SOFTFILTER_PROTOTYPES_H
|
||||||
|
#define _RARCH_SOFTFILTER_PROTOTYPES_H
|
||||||
|
|
||||||
|
struct softfilter_thread_data
|
||||||
|
{
|
||||||
|
void *out_data;
|
||||||
|
const void *in_data;
|
||||||
|
size_t out_pitch;
|
||||||
|
size_t in_pitch;
|
||||||
|
unsigned colfmt;
|
||||||
|
unsigned width;
|
||||||
|
unsigned height;
|
||||||
|
int first;
|
||||||
|
int last;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct filter_data
|
||||||
|
{
|
||||||
|
unsigned threads;
|
||||||
|
struct softfilter_thread_data *workers;
|
||||||
|
unsigned in_fmt;
|
||||||
|
};
|
||||||
|
#endif
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2010-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -16,6 +17,7 @@
|
|||||||
// Compile: gcc -o supertwoxsai.so -shared supertwoxsai.c -std=c99 -O3 -Wall -pedantic -fPIC
|
// Compile: gcc -o supertwoxsai.so -shared supertwoxsai.c -std=c99 -O3 -Wall -pedantic -fPIC
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
* of the GNU General Public License as published by the Free Software Found-
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
@ -16,6 +17,7 @@
|
|||||||
// Compile: gcc -o supereagle.so -shared supereagle.c -std=c99 -O3 -Wall -pedantic -fPIC
|
// Compile: gcc -o supereagle.so -shared supereagle.c -std=c99 -O3 -Wall -pedantic -fPIC
|
||||||
|
|
||||||
#include "softfilter.h"
|
#include "softfilter.h"
|
||||||
|
#include "softfilter_prototypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user