Add 2xBR and DDT video filters (#1070)

* Add 2xBR and DDT video filters

* Add 2xBR and DDT video filters

* Add 2xBR and DDT video filters

* Add 2xBR and DDT video filters (fix file)
This commit is contained in:
Hyllian 2023-09-18 12:17:37 -03:00 committed by GitHub
parent 1e957ae1a9
commit 19c89b028e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 698 additions and 390 deletions

File diff suppressed because it is too large Load Diff

View File

@ -28,6 +28,8 @@ enum RenderFilter{
FILTER_HQ2XBOLD, FILTER_HQ2XBOLD,
FILTER_SCALE2X, FILTER_SCALE2X,
FILTER_TVMODE, FILTER_TVMODE,
FILTER_2XBR,
FILTER_DDT,
NUM_FILTERS NUM_FILTERS
}; };
@ -50,6 +52,7 @@ void SelectFilterMethod ();
const char* GetFilterName (RenderFilter filterID); const char* GetFilterName (RenderFilter filterID);
int GetFilterScale(RenderFilter filterID); int GetFilterScale(RenderFilter filterID);
void InitLUTs(); void InitLUTs();
void SetupFormat();
#endif #endif

View File

@ -568,6 +568,7 @@ if (CONF_GetAspectRatio() == CONF_ASPECT_16_9 && (*(u32*)(0xCD8005A0) >> 16) ==
SetupVideoMode(rmode); SetupVideoMode(rmode);
#ifdef HW_RVL #ifdef HW_RVL
InitLUTs(); // init LUTs for hq2x InitLUTs(); // init LUTs for hq2x
SetupFormat(); // For 2xBR
#endif #endif
LWP_CreateThread (&vbthread, vbgetback, NULL, vbstack, TSTACK, 68); LWP_CreateThread (&vbthread, vbgetback, NULL, vbstack, TSTACK, 68);