Remove HQ2X and the Image.expand_2x_hq2x() method

As of Godot 3.0, HQ2X is no longer used to upscale the editor theme
and icons on hiDPI displays, which limited its effective uses.
HQ2X was also used to upscale the project theme when the "Use Hidpi"
project setting was enabled, but results were often less than ideal.
The new StyleBoxFlat and SVG support also make HQ2X less important
to have as a core feature.

This decreases binary sizes slightly (-150 KB on most platforms,
-212 KB on WebAssembly release).

This partially addresses #12419.
This commit is contained in:
Hugo Locurcio
2020-05-16 16:10:50 +02:00
parent ac58372db8
commit d935a4348d
8 changed files with 7 additions and 2742 deletions

2636
thirdparty/misc/hq2x.cpp vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +0,0 @@
#ifndef HQ2X_H
#define HQ2X_H
#include "core/typedefs.h"
uint32_t *hq2x_resize(
const uint32_t *image,
uint32_t width,
uint32_t height,
uint32_t *output,
uint32_t trY = 0x30,
uint32_t trU = 0x07,
uint32_t trV = 0x06,
uint32_t trA = 0x50,
bool wrapX = false,
bool wrapY = false );
#endif // HQ2X_H