{"id":30707924,"url":"https://github.com/gen2brain/jpegn","last_synced_at":"2025-09-04T15:05:00.378Z","repository":{"id":312152071,"uuid":"1046527418","full_name":"gen2brain/jpegn","owner":"gen2brain","description":"Baseline JPEG decoder with SIMD optimizations","archived":false,"fork":false,"pushed_at":"2025-08-28T20:33:05.000Z","size":411,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T02:06:47.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/gen2brain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-28T20:21:48.000Z","updated_at":"2025-08-28T23:03:27.000Z","dependencies_parsed_at":"2025-08-29T02:06:54.709Z","dependency_job_id":"8d3433e7-9c5e-4657-859f-76ab098301a5","html_url":"https://github.com/gen2brain/jpegn","commit_stats":null,"previous_names":["gen2brain/jpegn"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gen2brain/jpegn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fjpegn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fjpegn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fjpegn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fjpegn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gen2brain","download_url":"https://codeload.github.com/gen2brain/jpegn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fjpegn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273453705,"owners_count":25108473,"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-09-03T02:00:09.631Z","response_time":76,"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":[],"created_at":"2025-09-02T21:01:51.943Z","updated_at":"2025-09-04T15:05:00.368Z","avatar_url":"https://github.com/gen2brain.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"## jpegn\n[![Status](https://github.com/gen2brain/jpegn/actions/workflows/test.yml/badge.svg)](https://github.com/gen2brain/jpegn/actions)\n[![Go Reference](https://pkg.go.dev/badge/github.com/gen2brain/jpegn.svg)](https://pkg.go.dev/github.com/gen2brain/jpegn)\n\nBaseline JPEG decoder with SIMD optimizations. It is based on [NanoJPEG](https://keyj.emphy.de/nanojpeg/).\n\nFor unsupported formats, such as progressive or CMYK JPEGs, it gracefully falls back to the standard `image/jpeg`.\n\n### Benchmark\n\nCompared to the standard library:\n```\nBenchmarkDecode420-8                     \t    1062\t   1222948 ns/op\t  426839 B/op\t       6 allocs/op\nBenchmarkDecode420StdLib-8               \t     542\t   2156193 ns/op\t  407088 B/op\t       5 allocs/op\n\nBenchmarkDecodeConfig-8                  \t 1442437\t       859.4 ns/op\t      53 B/op\t       1 allocs/op\nBenchmarkDecodeConfigStdLib-8            \t  758470\t      1369 ns/op\t   13616 B/op\t       2 allocs/op\n\nBenchmarkDecodeToRGBANearestNeighbor-8   \t     517\t   2353340 ns/op\t 1999821 B/op\t      10 allocs/op\nBenchmarkDecodeToRGBACatmullRom-8        \t     546\t   2180485 ns/op\t 2263200 B/op\t      13 allocs/op\nBenchmarkDecodeToRGBAStdLib-8            \t     414\t   2903516 ns/op\t 1455734 B/op\t       7 allocs/op\n```\n\nDifference with assembly optimizations:\n```\nbenchmark                                  old ns/op     new ns/op     delta\nBenchmarkDecode420-8                       1621872       1068240       -34.14%\nBenchmarkDecodeConfig-8                    824           754           -8.46%\nBenchmarkDecodeToRGBANearestNeighbor-8     2726279       2071692       -24.01%\nBenchmarkDecodeToRGBACatmullRom-8          4068463       2156728       -46.99%\nBenchmarkIdct-8                            135           40.7          -69.93%\nBenchmarkUpsampleNearestNeighbor-8         318541        124015        -61.07%\nBenchmarkUpsampleCatmullRom-8              3548015       411422        -88.40%\n```\n\n### Build tags\n\n* `noasm` - do not use SIMD optimizations\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen2brain%2Fjpegn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgen2brain%2Fjpegn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen2brain%2Fjpegn/lists"}