{"id":20326969,"url":"https://github.com/habibslim/jpegdecoder","last_synced_at":"2025-03-04T10:43:05.963Z","repository":{"id":106054739,"uuid":"189743582","full_name":"HabibSlim/JPEGDecoder","owner":"HabibSlim","description":"A JPEG (JFIF\\Progressive) entirely written in C","archived":false,"fork":false,"pushed_at":"2021-10-26T23:37:08.000Z","size":19558,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-14T14:45:50.348Z","etag":null,"topics":["image-compression","jpeg-decoder"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HabibSlim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-06-01T14:41:00.000Z","updated_at":"2024-09-04T06:32:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae34314b-9747-41e0-a3b1-112e7fcf3b7e","html_url":"https://github.com/HabibSlim/JPEGDecoder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HabibSlim%2FJPEGDecoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HabibSlim%2FJPEGDecoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HabibSlim%2FJPEGDecoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HabibSlim%2FJPEGDecoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HabibSlim","download_url":"https://codeload.github.com/HabibSlim/JPEGDecoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241836139,"owners_count":20028146,"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","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":["image-compression","jpeg-decoder"],"created_at":"2024-11-14T19:46:01.087Z","updated_at":"2025-03-04T10:43:05.942Z","avatar_url":"https://github.com/HabibSlim.png","language":"C","readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1 align=\"center\"\u003e\n    JPEG Decoder\n\u003c/h1\u003e\n\n[![C99](https://img.shields.io/badge/C--99-red?logo=C\u0026logoColor=white)](https://en.wikipedia.org/wiki/C99)\n\n\\[[Specification](./docs/itu-t81.pdf)\\]\n\nJFIF-compliant decoder (ISO/IEC 10918-5:2013)\n\n\u003cp align=\"center\"\u003e\n     \u003cimg src=\"./main_fig.svg\" width=400px/\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n\n## Summary\n\n* [Introduction](#introduction)\n* [Running](#running)\n* [Implementation](#implementation)\n* [Credits](#credits)\n\n## Introduction\n\nThis repository contains an implementation of a decoder for the [JPEG](https://wacv2022.thecvf.com/) image format, written entirely in C without any dependency, following its [official specification](./docs/itu-t81.pdf). It supports JFIF files in the sequential format, or progressive format without upsampling. It uses an [implementation](./docs/loeffler.pdf) of the Loeffler algoritm for fast DCT computation.\n\n\n## Running\n\nYou may compile using make after positioning in the root folder:\n```bash\ncd ./jpegdecoder/\nmake\n```\n\nRun the executable as follows:\n```bash\n./bin/jpeg2ppm img.jpeg -opt\n```\n\nWhere `opt` can be either:\n- `-v` to have the verbose mode which displays the header of the image\n- `-b` to have the blabla mode which does not export in ppm but displays the results of each - step for each MCU\n- `-p` to save all intermediate images when decompressing a progressive image\n\n\n## Implementation\n\nOur decoder supports images compressed according to the JFIF-APP0 sequential or progressive format. Corrupted images or non-compliant images will cause an appropriate error message.\nImages with progressive upsampling are currently unsupported.\nThe supported subsampling modes are the 4 most common ones:\n- vertical subsampling\n- horizontal subsampling\n- vertical and horizontal subsampling\n\nThe `autotest` folder contains an automatized test to compare uncompressed images to image rasters in the `ppm` format.\n\n```bash\nsource ./autotest/autotest.sh\n```\n\n## Credits\n\nThis decoder was written from scratch by Habib Slim, Nathan Boulanger and Lucas Druart.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhabibslim%2Fjpegdecoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhabibslim%2Fjpegdecoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhabibslim%2Fjpegdecoder/lists"}