yui0 / slibs

Single file libraries for C/C++
117 stars 11 forks source link
aac alsa ascii audio blas c codec encoder flac gemm glsl gpgpu kms m4a math mp3 mp4 mpeg opencl single-header-lib

slibs ๐Ÿพ

GitHub Repo stars GitHub code size in bytes Lines of code

๐Ÿฑ Single file libraries for C/C++.

Logo

๐Ÿ’Ž AI (llm, Stable Diffusion)

library license LoC description
catseye_llm.h MIT 1874
Llama2 for CPULlama2, catseye
ggml.h MIT 20352 Tensor library for machine learning,
detailsGGML, Llama 2, RedPajama, Stable Diffusion

๐ŸŽถ audio (aplay+)

library license LoC description
alsa.h public domain 138 ALSA library
uaac.h RPSL 13438 AAC audio decoder
uflac_enc.h LGPL-2.1 2843 FLAC audio encoder
wav.h public domain 61 Wave format
wave.h public domain 304 utility for wave format
minimp3.h LGPL 2671 MP3 decoder

๐ŸŽฅ video

library license LoC description
v4l2.h public domain 614 video for linux
mp4parser.h LGPL-3.0 6015 mp4 parser
jo_mpeg.h public domain 317 MPEG1/2 encoder

๐Ÿ–ผ image (img2vec)

library license LoC description
imgp.h public domain 441 mini image processing library
potracelib.h GPL 2466 Transforming bitmaps into vector graphics,
detailsDocument, Example
pssub.h unknown 1153 Postscript library
svg.h Apache-2.0 348 SVG library

๐ŸŽฎ OpenGL

library license LoC description
kms-glsl.h MIT 2426 OpenGL using the DRM/KMS

๐Ÿ“ˆ math

library license LoC description
fft.h public domain 136 Fast Fourier Transform
ifft.h unknown 550 Fixed-point in-place Fast Fourier Transform
fmath.h public domain 142 Fast math library
random.h public domain 33 XOR128 random function

๐Ÿ“ˆ math / GEMM / GPGPU (waifu2x-glsl)

library license LoC description
sgemm_sse.h public domain 451 Fast GEMM function for SSE
sgemm_ocl.h public domain 662 Fast GEMM function for OpenCL
sgemm_gl.h public domain 110 Fast GEMM function for OpenGL4
gpgpu_glsl.h public domain 399 GLSL frameworks
gpgpu_gles.h public domain 443
GLES 3.0 frameworksMatmul example,LLM example
gpgpu_gles3.h public domain 264 GLES 3.0 frameworks with TransformFeedback
gpgpu_gl4.h public domain 170 OpenGL compute shader frameworks
ocl.h public domain 190 OpenCL frameworks

๐Ÿ”ง utils

library license LoC description
alloc.h MIT 116 Safety alloc
clock.h MIT 31
clock function for linuxref.
ht.h MIT 330 hash table
kbhit.h MIT 64
kbhit function for linuxref.
ls.h MIT 155
making list of files and directoriesref.

๐Ÿ–ฅ console

library license LoC description
aimage.h public domain 321 Image Viewer for Console
mcurses.h GPL-2 1481
"mcurses" is a minimized version of programming library ncursesref.
termbox.h MIT 1719
Library for writing text-based user interfacesref.
qrcodegen.h MIT 1413 QR Code generator library

๐Ÿ“ parser

library license LoC description
csv.h public domain 77 CSV file parser
ini.h BSD 250 ini file parser
parg.h CC0 551
Parser for argv that works similarly to getoptref.
parson.h MIT 2239
Lightweight JSON libraryref.
utf8.h GPL2 1123
UTF8 decoder and encoder libraryref.

๐Ÿ“– References