mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
GRAPHICS: Add Edge2x/3x scaler
This currently does not conform to coding standards and contains a lot of dead code (This will be fixed). Thanks to Eric Welsh for the original patch.
This commit is contained in:
parent
9ed7fde732
commit
592617e2ce
@ -166,6 +166,7 @@ public:
|
||||
#ifdef USE_SCALERS
|
||||
#ifdef USE_HQ_SCALERS
|
||||
LINK_PLUGIN(HQ)
|
||||
LINK_PLUGIN(EDGE)
|
||||
#endif
|
||||
LINK_PLUGIN(ADVMAME)
|
||||
LINK_PLUGIN(SAI)
|
||||
|
@ -103,6 +103,7 @@ endif
|
||||
|
||||
ifdef USE_HQ_SCALERS
|
||||
MODULE_OBJS += \
|
||||
scaler/edge.o \
|
||||
scaler/hq.o \
|
||||
|
||||
ifdef USE_NASM
|
||||
|
4626
graphics/scaler/edge.cpp
Normal file
4626
graphics/scaler/edge.cpp
Normal file
File diff suppressed because it is too large
Load Diff
44
graphics/scaler/edge.h
Normal file
44
graphics/scaler/edge.h
Normal file
@ -0,0 +1,44 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* This program 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 Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef GRAPHICS_SCALER_EDGE_H
|
||||
#define GRAPHICS_SCALER_EDGE_H
|
||||
|
||||
#include "graphics/scalerplugin.h"
|
||||
|
||||
class EdgePlugin : public ScalerPluginObject {
|
||||
public:
|
||||
EdgePlugin();
|
||||
virtual void initialize(Graphics::PixelFormat format);
|
||||
virtual void deinitialize();
|
||||
virtual void scale(const uint8 *srcPtr, uint32 srcPitch,
|
||||
uint8 *dstPtr, uint32 dstPitch, int width, int height, int x, int y);
|
||||
virtual uint increaseFactor();
|
||||
virtual uint decreaseFactor();
|
||||
virtual uint getFactor() const { return _factor; }
|
||||
virtual bool canDrawCursor() const { return false; }
|
||||
virtual uint extraPixels() const { return 1; }
|
||||
virtual const char *getName() const;
|
||||
virtual const char *getPrettyName() const;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user