{"id":29987121,"url":"https://github.com/anar-bastanov/root-delta-codec","last_synced_at":"2026-05-14T04:33:48.465Z","repository":{"id":304882587,"uuid":"1020330339","full_name":"anar-bastanov/root-delta-codec","owner":"anar-bastanov","description":"A lossy media codec built around the root delta algorithm.","archived":false,"fork":false,"pushed_at":"2025-08-03T12:04:40.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-03T14:18:27.703Z","etag":null,"topics":["codec","compression","compression-algorithm","compression-formats","compression-library","csharp","dotnet","image-compression","rdc","root-delta","root-delta-codec"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anar-bastanov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-15T17:39:57.000Z","updated_at":"2025-08-03T11:15:59.000Z","dependencies_parsed_at":"2025-07-17T01:02:28.475Z","dependency_job_id":"aed67c04-3474-4134-90f4-bc98d7c616bf","html_url":"https://github.com/anar-bastanov/root-delta-codec","commit_stats":null,"previous_names":["anar-bastanov/root-delta-codec"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anar-bastanov/root-delta-codec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anar-bastanov%2Froot-delta-codec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anar-bastanov%2Froot-delta-codec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anar-bastanov%2Froot-delta-codec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anar-bastanov%2Froot-delta-codec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anar-bastanov","download_url":"https://codeload.github.com/anar-bastanov/root-delta-codec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anar-bastanov%2Froot-delta-codec/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268789219,"owners_count":24307791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codec","compression","compression-algorithm","compression-formats","compression-library","csharp","dotnet","image-compression","rdc","root-delta","root-delta-codec"],"created_at":"2025-08-04T22:12:12.660Z","updated_at":"2026-05-14T04:33:48.460Z","avatar_url":"https://github.com/anar-bastanov.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Root Delta Codec\n\n`RDC` is a lossy media codec framework designed to significantly reduce file sizes while maintaining high perceptual quality. It uses efficient compression algorithms and a unified approach to support various types of content.\n\nThe framework defines a family of formats including:\n\n- `RDI` – Root Delta Image\n- `RDA` – Root Delta Audio\n- `RDV` – Root Delta Video\n- `RDAI` – Root Delta Animated Image\n\n\u003e [!WARNING]\n\u003e This project is under active development and not ready for general use.\n\n## Installation \u0026 Build Instructions\n\nYou can build `RDC` from source or download prebuilt binaries from the latest [GitHub Releases](https://github.com/anar-bastanov/root-delta-codec/releases).\n\nTo build `RDC` from source, ensure you have the [.NET 10 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/10.0) installed.\n\nRun the following commands from the root of the repository to restore dependencies and publish the project:\n\n### Windows\n\n```bash\ndotnet publish ./RdcCli/RdcCli.csproj -c Release -r win-x64\n```\n\n### Linux\n\n```bash\ndotnet publish ./RdcCli/RdcCli.csproj -c Release -r linux-x64\n```\n\n### Output\n\nAfter publishing, the executable will be located at:\n\n- `./bin/Release/net10.0/win-x64/publish/rdc.exe` (Windows)\n- `./bin/Release/net10.0/linux-x64/publish/rdc` (Linux)\n\n## Usage\n\n`RDC` is available both as a CLI tool and as a .NET library for programmatic use.\n\n### Command-Line Interface\n\n```bash\nrdc encode input.bmp output.rdi\nrdc decode input.rdi output.bmp\n\nrdc encode -w -f bmp:rdi input output\nrdc decode -w -f :bmp input.rdi output\n```\n\nOptions:\n\n* `-f`, `--format`: Input and output media formats as `FROM:TO`\n* `-m`, `--mode`: Set encoding mode\n* `-w`, `--overwrite`: Allow overwriting the output file if it exists\n* `-h`, `--help`: Show help and usage information\n* `-v`, `--version`: Show tool version\n\n### .NET Library\n\nThe core encoding/decoding logic lives in `RdcEngine`, while the CLI front-end uses `RdcCli`.\n\n```cs\nusing RdcEngine.Image;\n\n{\n    using var inputBmp = File.OpenRead(\"input.bmp\");\n    using var outputRdi = File.Create(\"output.rdi\");\n    ImageCodec.EncodeBmp(inputBmp, outputRdi);\n}\n\n{\n    using var inputRdi = File.OpenRead(\"input.rdi\");\n    using var outputBmp = File.Create(\"output.bmp\");\n    ImageCodec.DecodeBmp(inputRdi, outputBmp);\n}\n```\n\n## Supported Formats\n\n| From            | To                   | Status    |\n| :-------------- | :------------------- | :-------- |\n| `BMP`           | `RDI`                | Supported |\n| `RDI`           | `BMP`                | Supported |\n| `PNG`, `JPEG`   | `RDI`                | Not Yet   |\n| `RDI`           | `PNG`, `JPEG`        | Not Yet   |\n| Video/Audio/GIF | `RDV`, `RDA`, `RDAI` | Planned   |\n\n\u003e [!TIP]\n\u003e You can use tools like `ffmpeg` or other image converters to transform unsupported file types (e.g., `PNG` to `BMP`) before encoding, or back again (`BMP` to `PNG`) after decoding.\n\n## License\n\nCopyright \u0026copy; 2025 Anar Bastanov \u003cbr\u003e\nSource code is distributed under the [MIT License](LICENSE-MIT.txt). \u003cbr\u003e\nSpecifications and other documentation are licensed under [CC BY 4.0](LICENSE-CC-BY-4.0.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanar-bastanov%2Froot-delta-codec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanar-bastanov%2Froot-delta-codec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanar-bastanov%2Froot-delta-codec/lists"}