• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    C
  • Created over 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Library implementing the xBR pixel art scaling algorithm

Standalone XBR/hqx Library

This library implements the xBR pixel art scaling filter developed by Hyllian, and now also the hqx filter developed by Maxim Stepin.

I needed a standalone implementation, but could not find any ready-to-use ones. I found versions of the algorithm used in various open-source projects and I eventually settled on a modified version of the one used in FFmpeg's libavfilter.

I also wanted to use hqx and needed to make some changes to the code, so I wound up merging this into the same codebase/library. This project is the result.

Original source for the xBR implementation: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?p=ffmpeg.git;a=blob;f=libavfilter/vf_xbr.c;h=5c14565b3a03f66f1e0296623dc91373aeac1ed0;hb=HEAD

Original source for the hqx implementation: https://code.google.com/p/hqx/

This version is a pure C library that operates on 32-bit ARGB data. It scales images up to 2x, 3x and 4x sizes, and preserves and interpolates the alpha channel as necessary.

Project files included to compile as a DLL with Visual Studio 2012. Code should also compile successfully under GCC on other platforms, and probably with other Visual Studio versions.

A crude example application is included that uses libpng to apply the available filters to 32-bit images.

Licensed under the GNU Lesser General Public License, version 2.1. (See the header in xbr.h and xbr.c.)

More Repositories

1

CylindricalEarth

research into the internals of Animal Crossing: New Horizons
Python
302
star
2

MeteoNook

weather prediction tool for Animal Crossing: New Horizons
Vue
251
star
3

WindEmu

experimental emulator for Psion Series 5mx (Windermere)
C++
70
star
4

Kamek

a nice code injection engine for Wii games
C#
67
star
5

Reggie

Editor for New Super Mario Bros. Wii data files
Arc
66
star
6

robert.js

javascript tools for working with Microsoft Bob data files
JavaScript
55
star
7

BirdBridge

shoving a twitter API-shaped peg into a mastodon API-shaped hole
TypeScript
54
star
8

MarioUnmaker

simple viewer for level files from Super Mario Maker
C++
41
star
9

mpw-emu

tries to emulate the command-line tools from MPW for classic PowerPC Macs
Rust
40
star
10

PocketWordle

Wordle for Pocket PC 2003
C++
38
star
11

FlicksForAll

iOS 13 tweak: brings iPad keyboard flicks to iPhone
Objective-C
28
star
12

SMM2Reversing

reverse-engineering Super Mario Maker 2
Python
25
star
13

LayoutStudio

Graphical viewer/editor for Wii 2D screen layouts (brlyt/brlan files) written in C++ using Qt
C++
13
star
14

bitBoard

forum software written with Python/Flask/SQLAlchemy
Python
11
star
15

legacybrowse

a http proxy that downgrades TLS down to SSLv2 for really, really old browsers
Rust
11
star
16

atrac3tool

encoder for LP2 ATRAC3 files
C++
9
star
17

TM155-tools

bits and bobs for hacking on certain variants of the TM155 mouse (mainly TeckNet M009-V2)
Swift
9
star
18

SimplePaste

Quick and dirty pastebin script that generates and uploads static HTML using Pygments
Python
8
star
19

RandomStuff

Random stuff which is too small to deserve its own repo. Just a couple of decompression tools atm.
C
7
star
20

darkgram

A dark theme for Telegram on iOS!
Logos
6
star
21

unofficial-twrp-cosmo

a really junky, experimental, unofficial port of TWRP to the Cosmo Communicator
Makefile
6
star
22

OpenCodi

an attempt to create custom firmware for the Cosmo Communicator's STM32 cover display
C
5
star
23

midihackery.js

javascript binding to libtimidity for hot midi action on your website
JavaScript
5
star
24

iBlame

figure out how much money your iCloud Family members owe you
Python
5
star
25

CMap

a soon-to-be-great alternative map editor for the online game Furcadia
C++
4
star
26

Causson

a programming language experiment
TeX
3
star
27

twitlog

a simple Twitter stream event logger
Python
3
star
28

t2

abandoned attempt to decompile an old Mac game
C++
3
star
29

VulpIRC

Hybrid IRC client/bouncer designed for mobile platforms
C++
3
star
30

GenericIRC

IRC client for Android
Java
2
star
31

Nelumbo

advanced Ruby library for creating bots for the MMOSG Furcadia
C
2
star
32

myplace-timetable-export

export class timetables from Strathclyde University's MyPlace to .ics
Python
2
star
33

rjis-experiment

trying to make sense of National Rail open data feeds using Haskell
Haskell
2
star
34

fake-kasa

adjusting the IoT lights in my flat using some hand-built Rust code
Rust
1
star
35

JoytechFFDWrapper

an awful, awful hack for the Joytech Neo S force feedback driver and 64-bit
C#
1
star
36

ubar-crimes

patches to make uBar work more good with WINE applications
Objective-C
1
star
37

JanetterApiKeyInjector

sticks new api keys into Janetter (Twitter client for Windows)
C#
1
star
38

dotfiles

trying to standardise my config across machines
Vim Script
1
star
39

p5-poe-component-pastebin

(Perl 5) POE component for creating posts on pastebins
Perl
1
star