Moved filter enums from WX to filters.hpp

Eventual goal is to just get rid of them completely.
This commit is contained in:
Arthur Moore 2015-02-18 03:57:35 -05:00
parent fc660a0b35
commit eded24e8ff
2 changed files with 17 additions and 17 deletions

View File

@ -13,6 +13,23 @@
// Function pointer type for a filter function // Function pointer type for a filter function
typedef void(*FilterFunc)(u8*, u32, u8*, u8*, u32, int, int); typedef void(*FilterFunc)(u8*, u32, u8*, u8*, u32, int, int);
//WX
enum wx_filtfunc {
// this order must match order of option enum and selector widget
FF_NONE, FF_2XSAI, FF_SUPER2XSAI, FF_SUPEREAGLE, FF_PIXELATE,
FF_ADVMAME, FF_BILINEAR, FF_BILINEARPLUS, FF_SCANLINES, FF_TV,
FF_HQ2X, FF_LQ2X, FF_SIMPLE2X, FF_SIMPLE3X, FF_HQ3X, FF_SIMPLE4X,
FF_HQ4X, FF_PLUGIN // plugin must always be last
};
#define builtin_ff_scale(x) \
((x == FF_HQ4X || x == FF_SIMPLE4X) ? 4 : \
(x == FF_HQ3X || x == FF_SIMPLE3X) ? 3 : \
x == FF_PLUGIN ? 0 : x == FF_NONE ? 1 : 2)
enum ifbfunc {
// this order must match order of option enum and selector widget
IFB_NONE, IFB_SMART, IFB_MOTION_BLUR
};
typedef std::pair<FilterFunc,FilterFunc> filterpair; typedef std::pair<FilterFunc,FilterFunc> filterpair;
typedef std::pair<std::string,filterpair> namedfilter; typedef std::pair<std::string,filterpair> namedfilter;

View File

@ -291,23 +291,6 @@ enum showspeed {
SS_NONE, SS_PERCENT, SS_DETAILED SS_NONE, SS_PERCENT, SS_DETAILED
}; };
enum filtfunc {
// this order must match order of option enum and selector widget
FF_NONE, FF_2XSAI, FF_SUPER2XSAI, FF_SUPEREAGLE, FF_PIXELATE,
FF_ADVMAME, FF_BILINEAR, FF_BILINEARPLUS, FF_SCANLINES, FF_TV,
FF_HQ2X, FF_LQ2X, FF_SIMPLE2X, FF_SIMPLE3X, FF_HQ3X, FF_SIMPLE4X,
FF_HQ4X, FF_PLUGIN // plugin must always be last
};
#define builtin_ff_scale(x) \
((x == FF_HQ4X || x == FF_SIMPLE4X) ? 4 : \
(x == FF_HQ3X || x == FF_SIMPLE3X) ? 3 : \
x == FF_PLUGIN ? 0 : x == FF_NONE ? 1 : 2)
enum ifbfunc {
// this order must match order of option enum and selector widget
IFB_NONE, IFB_SMART, IFB_MOTION_BLUR
};
// make sure and keep this in sync with opts.cpp! // make sure and keep this in sync with opts.cpp!
enum renderer { enum renderer {
RND_SIMPLE, RND_OPENGL, RND_CAIRO, RND_DIRECT3D RND_SIMPLE, RND_OPENGL, RND_CAIRO, RND_DIRECT3D