forked from hkc/cc-stuff
1
0
Fork 0
Commit Graph

173 Commits

Author SHA1 Message Date
Casey d4ca60c9f9
CPI -> PNG renderer
Supports CPIv0 and CPIv1 for now, but other formats are experimental
anyways, so not a big problem
2024-10-03 20:28:49 +03:00
Casey 8589b2a730
Build stb_* stuff into a separate blob
Speeds up build process a little bit because we don't have to build it
every single time
2024-10-03 19:25:34 +03:00
Casey 3cadd81a6b
Added random missing stuff so I won't go crazy 2024-10-03 19:03:22 +03:00
Casey e2e5d57e1f
Moved things to a separate file
Font atlas and palettes could be reused by other programs for CC, so
that makes sense IMO.

Also removed debug image saving in cc-pic.py that was left here for ALL
THAT TIME for some fucking reason.
2024-10-03 18:57:44 +03:00
Casey 23447e7ed9
Fixed wsvpn server to work with latest Mongoose 2024-10-03 15:37:46 +03:00
Casey 022cb0cde8
Merge branch 'vftdan-palette-k-means' 2024-10-03 15:35:35 +03:00
Casey 93205ec237
Merge branch 'palette-k-means' of https://git.being.pet/vftdan/cc-stuff into vftdan-palette-k-means 2024-10-03 15:35:20 +03:00
Vftdan 6028bb419e Avoid duplicate palette entries
Don't make an item an empty cluster warp candidate, if it is already
warp candidate for another cluster
2024-10-03 11:26:45 +02:00
Vftdan 5f95f895d2 Try to avoid having unused palette items when the source image only uses a limited gamut region
Warp each empty cluster's centroid onto the closest dataset item
2024-10-03 10:20:58 +02:00
Vftdan c91f4d79bd Allocate the correct amount of intermediate centroid data 2024-10-03 10:16:57 +02:00
Vftdan c5af524dac Implement k-means palette generation 2024-10-03 01:27:30 +02:00
Vftdan 849563285c Global resizeable palette 2024-10-02 23:57:12 +02:00
Vftdan d9f4362615 Dedicated palette type that also stores own length 2024-10-02 23:17:29 +02:00
Vftdan e8c53b1f9b Fix linking recipe for wsvpn
Only the first object was being added
2024-10-02 21:22:19 +02:00
Vftdan be21d42fa0 Now only calculate color difference once for each palette entry pair
Not clear whether it is more optimal
2024-10-02 19:45:27 +02:00
Vftdan d765e88679 Only calculate difference between each pixel × each palette entry once 2024-10-02 19:11:57 +02:00
Vftdan 1eb767d0d2 Added gitignore with C build artifacts 2024-10-02 18:48:47 +02:00
Vftdan a65943a6bd Added Makefile for img2cpi and wsvpn
FIXME: downgrade mongoose submodule or fix wsvpn
2024-10-02 18:47:09 +02:00
Vftdan 2f80e5327d Added mongoose.ws dependency submodule 2024-10-02 18:45:37 +02:00
Vftdan bbbe20f941 Add stb submodule as dependency 2024-10-02 18:23:18 +02:00
Casey 1eccdde3a3
Moved stuff into separate functions, minor cleanup 2024-10-02 15:31:24 +03:00
Casey a0450a7d59
Removed debug stuff 2024-10-02 07:32:28 +03:00
Casey d511cc407e
Fixed it! Now it works fine 2024-10-02 07:22:53 +03:00
Casey 1e364fe3ea
WIP old converter port, gives funky results 2024-10-02 06:51:51 +03:00
Casey 33e3c1ad8c
Minor changes, unfinished palette selection 2024-09-30 14:19:28 +03:00
Casey a665f9498d
One can only hope 2024-09-30 13:58:22 +03:00
Casey 094308ce0b
There's no fucking way it just worked lol 2024-09-30 13:41:31 +03:00
Casey 0afb88e147
First semi-working prototype of converter in C
It gives some funky results tho
2024-09-30 13:32:59 +03:00
Casey a06361ad4a
Off-by-one. Again. 2024-09-16 16:32:38 +03:00
Casey c4740b8bfd
Added padding and fixed IPC problems 2024-09-16 16:29:12 +03:00
Casey 989daae8e8
Removed dependency on yt-dlp, changed some behav-s 2024-09-15 06:00:18 +03:00
Casey bed20ee4d3
Merge branch 'capta1nseal-master' 2024-09-15 05:43:01 +03:00
Casey 703a1744b5
Added dithering flag 2024-09-15 05:42:42 +03:00
Casey 92eb5b325c
Merge branch 'master' of https://git.being.pet/capta1nseal/cc-stuff into capta1nseal-master 2024-09-15 05:42:08 +03:00
capta1nseal 186bc7814d Add video converter 2024-09-15 05:36:41 +03:00
Casey 89bb807cc2
off-by-1 2024-09-15 04:17:07 +03:00
Casey a49e996e1b
Added settings support 2024-09-15 03:41:47 +03:00
Casey abe0b37f7d
Fixed argument parsing 2024-09-15 03:36:14 +03:00
Casey 5e1d23b4bb
Added info.json support and switched to event 2024-09-15 03:31:42 +03:00
Casey 3cb26f3b54
Foxed an oopsie 2024-09-15 03:12:15 +03:00
Casey 330bfa8f80
Added "-wait" parameter 2024-09-15 03:08:14 +03:00
Casey 1ba2cf9aed
Oopsie 2024-09-15 02:37:52 +03:00
Casey f6b91af2ee
Added video+audio player 2024-09-15 02:34:16 +03:00
Casey a00dca3be1
Animation player
Usage:
  anim-web [-m side] <n-frames> <url%d.cpi>
Example:
  anim-web -m top 137 https://kc.is.being.pet/f/ccpi/rivulet/frame%03d.cpi
2024-09-13 06:01:15 +03:00
Casey 38cce4226a
ccpi.lua now can accept handles 2024-09-13 04:31:19 +03:00
Casey a3b079e638
Added palette support 2024-09-13 03:33:52 +03:00
Casey 712346e2c5
I don't have to close it myself anymore 2024-09-13 01:17:20 +03:00
Casey 17cc43fe89
Oopsie 2024-09-13 01:15:41 +03:00
Casey 2fbb51cefe
Added parsing function into CCPI 2024-09-13 01:11:34 +03:00
Casey 52f2a55cc1
Oops 2024-09-10 19:30:02 +03:00