Live In-Browser Webcam, PCA & Text-to-Image Studio
Experience RCRE's zero-copy CV filters, PCA rate-distortion codec, and 100% client-side Text-to-Image Diffusion (WASM SIMD128) directly in your browser with zero server inference.
Pipeline Controls
Memory & Trace
🔬 PCA Image Compression Test Lab
Test RCRE's zero-dependency Principal Component Analysis (RPCA) spatial block codec.
Compress photos into orthogonal low-dimensional subspace bases with 8-bit uniform quantization,
inspect learned eigen-basis patches, evaluate rate-distortion curves (PSNR vs. Bitrate),
and export bitstreams matching the C23 CLI engine (rcre-pca).
Compression Settings
Rate-Distortion Benchmark
Sweep K values from 2 to 64 to evaluate PSNR vs. Bitrate curves (identical to rcre-pca --benchmark).
Runs RCRE's native ISO C23 Text-Conditioned Diffusion Transformer (RCRE_TextDiT),
4× Spatial Convolutional VAE (RCRE_SpatialVAE), Rectified Flow ODE + Classifier-Free Guidance,
and RGQ1 Q8_0 dequantizer directly inside a browser Web Worker using 128-bit WASM SIMD register-blocked GEMM kernels.
Models are lazy-loaded on demand.
Supported vocabulary for this tier
Ready to take your algorithms beyond the browser? The turnkey project-template gives you a clean, zero-dependency C23 starter kit. No package managers, no CMake hurdles—just pure ISO C23 and the single-header engine.
Clone the repository and build the hardware-accelerated 1080p pipeline in three commands:
cd apps/rcre/project-template # 1. Build & execute 1080p SIMD pipeline make run # 2. Run AddressSanitizer & UBSan tests make test
Every RCRE program follows this predictable, zero-fragmentation pattern:
Probes host CPU (ARM NEON, AVX2, or SIMD128) and wires dynamic dispatch tables.
Allocates a 64-byte aligned contiguous memory pool. Zero malloc in hot paths.
Sub-allocates strided N-D tensors linearly in O(1) time without OS syscalls.
Executes vector micro-kernels delivering multi-gigapixel throughput.
Rewinds offset in O(1) time between frames; clean single unmap on exit.
Keep your code blazingly fast and free from memory bugs:
rcre_arena_reset() at batch/frame boundaries.
#define RCRE_IMPLEMENTATION in exactly one file (src/main.c). In all other modules, just include rcre.h.
Copy this minimal skeleton directly into your new project:
#define RCRE_IMPLEMENTATION #include "rcre.h" int main(void) { // 1. Probe CPU SIMD rcre_hal_init(); // 2. Pre-allocate 16MB linear arena RCRE_Arena* arena = rcre_arena_create(16 * 1024 * 1024); // 3. Create strided tensor & execute size_t shape[3] = {1080, 1920, 3}; RCRE_Tensor img = rcre_tensor_create(shape, 3, RCRE_DTYPE_U8, RCRE_LAYOUT_HWC, arena); // 4. Free arena in O(1) single unmap rcre_arena_destroy(arena); return 0; }