Commit graph

66 commits

Author SHA1 Message Date
Claude
0ba1f0af17
JavaScript port decodes YAPF 2; VS Code and Figma open every file
yapf.js: decodeTexture (container, yapf-sum checks, code books with
context decoding, 16-bit / float planes, GPU block tiles), BC1-BC7 /
BC6H block decoding and textureToRGBA for display. Matches the C library
on 417 generated files (surfaces bit-exact) and survives fuzzing with
clean YapfErrors; fixtures in bindings/js/test-data keep it checked.

VS Code preview: pickers for mip, face, layer, frame and slice; storage,
normal-map convention and version in the info bar. Figma import:
textures converted to 8-bit, 8-bit images stay exact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVrVthWN8GsmgHGUhhsCYm
2026-10-11 09:57:52 +00:00
Claude
fdbd0a6b8f
Python binding and Blender read YAPF 2
yapf.load_texture / decode_texture expose every surface and the texture
description; rgba_float() for display (blocks decoded, 16-bit / float
kept). Blender imports 16-bit / HDR as float images packed as EXR,
decodes GPU blocks, follows the normal-map convention (DirectX flip, Z
rebuilt for XY normals). Errors say why. Tested in Blender 4.4.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVrVthWN8GsmgHGUhhsCYm
2026-10-11 09:57:52 +00:00
Claude
a6c032d824
Extensions read YAPF 2; Nix package
- KDE thumbnailer: texture loader, decodes only the mip it needs; GPU
  blocks, 16-bit and float via the new yapf_tex_to_rgba8. Tested through
  KDE's plugin loader with KF6 from nixpkgs.
- Photoshop: shows the tool's error message; HDR textures open as 32-bit
  (.hdr), 16-bit stays 16-bit; 16-bit documents save as 16-bit.
- CLI: 16-bit PNG export, readable conversion errors.
- default.nix: yapf tool, library, header, MIME type and thumbnailer
  (absolute store path); runs the test suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVrVthWN8GsmgHGUhhsCYm
2026-10-11 09:57:52 +00:00
Claude
83588d8e2a
GIMP plugin: open every YAPF 2 file and say why a file fails
Uses the texture loader: GPU blocks are decoded for viewing, 16-bit and
float files open at full precision, and cube faces, array layers, slices
and animation frames become layers. Load errors name the reason instead
of a generic failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVrVthWN8GsmgHGUhhsCYm
2026-10-11 09:57:51 +00:00
Nexoniarz
7b1af7f275
Merge pull request #3
GIMP plugin: NixOS development shell
2026-10-11 11:22:06 +02:00
Claude
fb7212c62b
GIMP plugin: NixOS development shell
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVrVthWN8GsmgHGUhhsCYm
2026-10-11 09:09:51 +00:00
Nexoniarz
6afd0488aa
Merge pull request #2
Add YAPF version 2: texture container with GPU blocks and metadata
2026-10-11 00:14:49 +02:00
Claude
a226b06368
YAPF 2: texture container with GPU blocks, wide samples and streaming
Adds format version 2 alongside version 1 (still written for plain 8-bit
images, so existing readers keep working). Full specification in
docs/FORMAT.md.

- GPU block payloads: BC1-BC7, BC6H, ETC2/EAC, ASTC 4x4-12x12, in tiles
  of 16x16 blocks. Built-in BC1/BC3/BC4/BC5/BC7/BC6H encoders and
  BC1-BC7 decoders (BC6H/BC7 bit-exact with a reference decoder).
- Lossless 16-bit, half and float pixels as byte planes over the 8-bit
  coder; order-preserving float mapping, transforms at sample width.
- Cubemaps, cube arrays, texture arrays, volumes, animation frames.
- Channel meanings, normal convention, linear mask, primaries/transfer,
  mip filter and coverage-preserving mips (yapf_tex_build_mips).
- Small mips stored first, file size in the header, surface/tile tables:
  decode from a file prefix and single tiles (virtual texturing).
- yapf-sum checksums on header, tables and every tile; needs bits so
  decoders refuse cleanly what they cannot read.
- Optional entropy stage: per-surface Huffman code books with a
  neighbourhood context (~10% smaller photos) and per-lane packing of
  GPU blocks (~3x smaller on disk); planes decoded interleaved.
- Notes: author, licence, source, tool, ICC and application tags.
- CLI: --format, --entropy, --coverage, --normal, --map, colour options,
  16-bit/HDR input, pack cube/array/volume/anim, info, verify, export.
- Tests for all of the above, including fuzzing; v1 API reads 8-bit v2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVrVthWN8GsmgHGUhhsCYm
2026-10-10 21:57:14 +00:00
Nexoniarz
5642b8c85d
Merge YAPF v1: fast format, SIMD, tools, plugins and language bindings v1.0.0
YAPF v1: fast byte-aligned format, SIMD, tools and plugins
2026-10-03 14:58:59 +02:00
Nexoniarz
d7f494a0c9 Language bindings, KDE thumbnails, yapf compare, in-memory encoding
- yapf_encode() / yapf_free_buffer(): encode to memory; yapf_save uses it
- yapf.c also compiles as C++
- `yapf compare`: size and decode speed of the original format vs YAPF,
  with a lossless check
- bindings with tested examples: C++ (header-only), C# (P/Invoke),
  Rust (crate, builds the C code), Go (cgo), Java (FFM API, Java 22+),
  Zig (@cImport), LuaJIT (FFI), TypeScript types for the JS port;
  Python now encodes in memory
- docs/LANGUAGES.md and examples/ with measured results
- KDE Dolphin thumbnail plugin (KF6, CMake)
- README: honest status for Photoshop / VS Code / Figma (not run in the
  apps yet) and macOS (cross-compiled only), platform table

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 14:39:56 +02:00
Nexoniarz
2ca726e3af YAPF v1: fast byte-aligned format, SIMD, tools and plugins
Format (version 1, replaces the earlier experimental versions):
- per-tile YCoCg-R or subtract-green colour transform, 8-bit modular
- 12 row filters per 8-row band (Left, Gradient, Up-right, Up-average,
  Up 1-8 rows), none with more than a one-add serial dependency
- residuals in groups of 8 at the group's width (w bits x 8 = w bytes),
  4-bit control codes with repeat-previous-width runs chosen by DP
- constant and stored tiles, independent 64x64 tiles, mips, GPU hints
- all sizes validated before decoding; corrupt input is rejected

Library:
- SIMD on by default: SSSE3 (runtime CPUID check; GCC, Clang, MSVC,
  MinGW) and NEON on ARM64; -DYAPF_NO_SIMD for plain C
- yapf_load_memory, yapf_load_mt, yapf_load_memory_mt
- 6-10x faster decoding than PNG (stb_image) on one core; -O2 and -O3
  builds perform the same
- fixes for macOS (sysconf) and the Windows import library exports

Tools and integrations:
- `yapf` CLI: convert PNG/JPG/TGA/BMP/PSD/GIF <-> YAPF, info, bench,
  thumbnail, mips
- JavaScript and Python bindings (byte-identical to the C encoder)
- GIMP 3 plugin: exports the flattened image, optional mipmaps
- Blender extension: import (also as plane), export, drag and drop
- VS Code preview, Figma plugin, Photoshop scripts, Linux MIME type and
  thumbnailer
- Makefile, updated build.sh / build.bat, tools/build_release.sh
- tests/test_yapf.c (784 checks) and bindings/js/test.js

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 14:17:59 +02:00
Nexoniarz
b9b8c93a22
Add files via upload 2026-06-20 15:03:21 +02:00
Nexoniarz
0a2b234169
Update and rename pikture-gimp.c to yapf-gimp.c 2026-06-20 13:02:33 +00:00
Nexoniarz
56b1837b76
Update howtocompile.txt 2026-06-20 13:01:49 +00:00
Nexoniarz
624d95fe71
Delete other/Pikture.svg 2026-06-20 13:01:13 +00:00
Nexoniarz
e5f076cf8a
Delete other/Pikture.pik 2026-06-20 13:01:04 +00:00
Nexoniarz
d5e01b9db9
Add files via upload 2026-06-20 15:00:39 +02:00
Nexoniarz
64e18fd593
Delete README.md 2026-06-20 12:59:57 +00:00
Nexoniarz
6ec9d0b7f0
Delete pikture.h 2026-06-20 12:59:48 +00:00
Nexoniarz
55fc84ca49
Delete pikture.c 2026-06-20 12:59:41 +00:00
Nexoniarz
510ba7fd42
Update build.sh 2026-06-20 12:59:28 +00:00
Nexoniarz
d218fbaa8f
Update build.bat 2026-06-20 12:59:11 +00:00
Nexoniarz
01f5e4f9fe
Update pikture-gimp.c 2026-06-06 19:28:08 +00:00
Nexoniarz
f4754d81fd
Update pikture.h 2026-06-06 19:23:37 +00:00
Nexoniarz
021dd6b1ae
Update pikture.c 2026-06-06 19:23:23 +00:00
Nexoniarz
af3793b453
Update README.md 2026-06-06 19:22:13 +00:00
Nexoniarz
8c11a2f426
Update LICENSE 2026-06-06 19:21:41 +00:00
Nexoniarz
b17a7219cf
Add files via upload 2026-05-15 00:40:00 +02:00
Nexoniarz
c98090a1f3
Delete other/Pikture.pik 2026-05-14 22:39:47 +00:00
Nexoniarz
f021609a4f
Update pikture-gimp.c 2026-05-14 22:31:38 +00:00
Nexoniarz
2b5679806f
Update pikture.h 2026-05-14 22:31:19 +00:00
Nexoniarz
e6406519f2
Update pikture.c 2026-05-14 22:31:02 +00:00
Nexoniarz
31da3f5ac5
Update README.md 2026-05-14 22:22:35 +00:00
Nexoniarz
39e3959038
Update howtocompile.txt 2026-05-14 21:41:39 +00:00
Nexoniarz
d0dbd3ecf5
Update howtocompile.txt 2026-05-14 21:38:53 +00:00
Nexoniarz
75fd56ccc9
Update howtocompile.txt 2026-05-14 21:36:46 +00:00
Nexoniarz
9d5405e679
Update howtocompile.txt 2026-05-14 21:36:20 +00:00
Nexoniarz
0a8ab71de9
Rename howto.txt to howtocompile.txt 2026-05-14 21:35:09 +00:00
Nexoniarz
9f6beedb1c
Rename test to howto.txt 2026-05-14 21:34:54 +00:00
Nexoniarz
2927009b5f
Delete extensions/createdir 2026-05-14 21:34:34 +00:00
Nexoniarz
2991f6faba
Add files via upload 2026-05-14 23:34:22 +02:00
Nexoniarz
867b29561c
Create test 2026-05-14 21:33:36 +00:00
Nexoniarz
96c2f451ec
Create createdir 2026-05-14 21:33:17 +00:00
Nexoniarz
1854c6f482
Delete other/createdir 2026-05-14 21:30:34 +00:00
Nexoniarz
9477a9955a
Update README.md 2026-05-14 21:30:13 +00:00
Nexoniarz
e65859c880
Delete Pikture.svg 2026-05-14 21:29:46 +00:00
Nexoniarz
63dbe54400
Add files via upload 2026-05-14 23:29:31 +02:00
Nexoniarz
6d96de00dd
Create createdir 2026-05-14 21:29:04 +00:00
Nexoniarz
1ed497c872
Update README.md 2026-05-14 12:15:09 +00:00
Nexoniarz
8056537dc5
Update README.md 2026-05-14 12:14:42 +00:00