C Decoder

Open-source C projects categorized as Decoder

Top 11 C Decoder Projects

  • ultrajson

    Ultra fast JSON decoder and encoder written in C with Python bindings

    Project mention: orjson: Fast, correct Python JSON lib supporting dataclasses, datetimes, NumPy | news.ycombinator.com | 2024-08-20

    Written in Rust!

    TIL ujson is basically deprecated and they recommend switching to orjson https://github.com/ultrajson/ultrajson

    > UltraJSON's architecture is fundamentally ill-suited to making changes without risk of introducing new security vulnerabilities. As a result, this library has been put into a maintenance-only mode. Support for new Python versions will be added and critical bugs and security issues will still be fixed but all other changes will be rejected. Users are encouraged to migrate to orjson which is both much faster and less likely to introduce a surprise buffer overflow vulnerability in the future.

  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • minimp3

    Minimalistic MP3 decoder single header library

  • bddisasm

    bddisasm is a fast, lightweight, x86/x64 instruction decoder. The project also features a fast, basic, x86/x64 instruction emulator, designed specifically to detect shellcode-like behavior.

  • ffmpeg-rockchip

    FFmpeg with async and zero-copy Rockchip MPP & RGA support

    Project mention: Writing GUI applications on the Raspberry Pi without a desktop environment | news.ycombinator.com | 2024-07-06

    I know there is at least one ffmpeg fork with Rockchip mpp and rga support, although I haven’t tested it myself yet: https://github.com/nyanmisaka/ffmpeg-rockchip

    I have tested the mpp SDK a bit and the code is easy to work with, with examples for encode and decode, both sync and async.

  • readsb

    ADS-B decoder swiss knife

  • gifdec

    small C GIF decoder

  • j40

    J40: Independent, self-contained JPEG XL decoder

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • fadec

    A fast and lightweight decoder for x86 and x86-64 and encoder for x86-64.

    Project mention: Weird things I learned while writing an x86 emulator | news.ycombinator.com | 2024-07-10

    Thanks for the pointer to QEMU's decoder! I actually never looked at it before.

    So you coded all the tables manually in C -- interesting, that's quite some effort. I opted to autogenerate the tables (and keep them as data only => smaller memory footprint) [1,2]. That's doable, because x86 encodings are mostly fairly consistent. I can also generate an encoder from it (ok, you don't need that). Re 'custom size "xh"': AVX-512 also has fourth and eighth. Also interesting that you have a separate row for "66+F2". I special case these two (CRC32, MOVBE) instructions with a flag.

    I think the prefix decoding is not quite right for x86-64: 26/2e/36/3e are ignored in 64-bit mode, except for 2e/3e as branch-not-taken/taken hints and 3e as notrack. (See SDM Vol. 1 3.3.7.1 "Other segment override prefixes (CS, DS, ES, and SS) are ignored.") Also, REX prefixes that don't immediately preceed the opcode (or VEX/EVEX prefix) are ignored. Anyhow, I need to take a closer look at the decoder with more time. :-)

    > For EVEX my plan is to keep the raw bits until after the opcode has been read

    I came to the same conclusion that this is necessary with APX. The map+prefix+opcode combination identifies how the other fields are to be interpreted. For AVX-512, storing the last byte was sufficient, but with APX, vvvv got a second meaning.

    > Nevertheless there are several cases in which the manual is wrong or doesn't say the whole story.

    Yes... especially for corner cases, getting real hardware is the only reliable way to find out, how the CPU behaves.

    [1]: https://github.com/aengelke/fadec/blob/master/instrs.txt

  • opusfile

    Stand-alone decoder library for .opus streams

  • minimp3

    Decode mp3 base on https://github.com/lieff/minimp3 (by tosone)

  • base16384

    Encode binary files to printable utf16be.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C Decoder discussion

Log in or Post with

C Decoder related posts

Index

What are some of the best open-source Decoder projects in C? This list will help you:

Project Stars
1 ultrajson 4,329
2 minimp3 1,598
3 bddisasm 888
4 ffmpeg-rockchip 508
5 readsb 358
6 gifdec 242
7 j40 227
8 fadec 164
9 opusfile 161
10 minimp3 125
11 base16384 124

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai