JustinTArthur/libchromadec ? reverse-engineered prompt
Reverse engineered prompt
Build me a library for decoding composite analog video into clean component video output behind a simple C interface.
I want it to take either a single capture file or separate luma and chroma files, read the sidecar metadata when it exists, and let me choose between the different decode modes, like mono, NTSC comb filtering, PAL, Transform PAL, SECAM, and the neural network based decoders. It should output common video formats like YUV, RGB, and grayscale, and keep the frame data zero copy where possible.
Please make it handle dropout detection and masking too, so I can either report bad spans or replace them using extra captures of the same source. I also want it to be easy to use from C, and ideally install cleanly for Meson and CMake users, with public headers and package config files.
If you need to, look up the current docs online while wiring up the build and integrations.
Are you gonna build this?
make sure you review the code using arcumet