Skip to content

Commit

Permalink
Merge pull request #11960 from jdgleaver/filter-upscale-320x240
Browse files Browse the repository at this point in the history
Add 'Upscale_256x-320x240' video filter
  • Loading branch information
inactive123 authored Jan 31, 2021
2 parents 1f58ceb + ebfe32d commit 94beed5
Show file tree
Hide file tree
Showing 6 changed files with 732 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,8 @@ ifeq ($(HAVE_STATIC_VIDEO_FILTERS), 1)
gfx/video_filters/gameboy4x.o \
gfx/video_filters/dot_matrix_3x.o \
gfx/video_filters/dot_matrix_4x.o \
gfx/video_filters/upscale_1_5x.o
gfx/video_filters/upscale_1_5x.o \
gfx/video_filters/upscale_256x_320x240.o
endif

ifeq ($(WANT_IOSUHAX), 1)
Expand Down
2 changes: 2 additions & 0 deletions gfx/video_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ extern const struct softfilter_implementation *gameboy4x_get_implementation(soft
extern const struct softfilter_implementation *dot_matrix_3x_get_implementation(softfilter_simd_mask_t simd);
extern const struct softfilter_implementation *dot_matrix_4x_get_implementation(softfilter_simd_mask_t simd);
extern const struct softfilter_implementation *upscale_1_5x_get_implementation(softfilter_simd_mask_t simd);
extern const struct softfilter_implementation *upscale_256x_320x240_get_implementation(softfilter_simd_mask_t simd);

static const softfilter_get_implementation_t soft_plugs_builtin[] = {
blargg_ntsc_snes_get_implementation,
Expand All @@ -315,6 +316,7 @@ static const softfilter_get_implementation_t soft_plugs_builtin[] = {
dot_matrix_3x_get_implementation,
dot_matrix_4x_get_implementation,
upscale_1_5x_get_implementation,
upscale_256x_320x240_get_implementation,
};

static bool append_softfilter_plugs(rarch_softfilter_t *filt,
Expand Down
2 changes: 1 addition & 1 deletion gfx/video_filters/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ objects += blargg_ntsc_snes.$(DYLIB) phosphor2x.$(DYLIB) epx.$(DYLIB) lq2x.$(DYL
scanline2x.$(DYLIB) grid2x.$(DYLIB) grid3x.$(DYLIB) \
gameboy3x.$(DYLIB) gameboy4x.$(DYLIB) \
dot_matrix_3x.$(DYLIB) dot_matrix_4x.$(DYLIB) \
upscale_1_5x.$(DYLIB)
upscale_1_5x.$(DYLIB) upscale_256x_320x240.$(DYLIB)

all: build;

Expand Down
1 change: 1 addition & 0 deletions gfx/video_filters/Upscale_256x-320x240.filt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
filter = upscale_256x_320x240
Loading

0 comments on commit 94beed5

Please sign in to comment.