{"id":27381471,"url":"https://github.com/mauserzjeh/dxt","last_synced_at":"2025-06-25T08:40:30.864Z","repository":{"id":57696422,"uuid":"492308518","full_name":"mauserzjeh/dxt","owner":"mauserzjeh","description":"DXT decompression library","archived":false,"fork":false,"pushed_at":"2022-05-14T19:56:50.000Z","size":261,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T14:56:46.250Z","etag":null,"topics":["decompression","dxt","dxt1","dxt3","dxt5","go","golang","library"],"latest_commit_sha":null,"homepage":"","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/mauserzjeh.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}},"created_at":"2022-05-14T19:34:20.000Z","updated_at":"2024-10-07T03:05:12.000Z","dependencies_parsed_at":"2022-09-15T20:50:33.305Z","dependency_job_id":null,"html_url":"https://github.com/mauserzjeh/dxt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauserzjeh%2Fdxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauserzjeh%2Fdxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauserzjeh%2Fdxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauserzjeh%2Fdxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauserzjeh","download_url":"https://codeload.github.com/mauserzjeh/dxt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732481,"owners_count":21152851,"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":["decompression","dxt","dxt1","dxt3","dxt5","go","golang","library"],"created_at":"2025-04-13T14:56:52.098Z","updated_at":"2025-04-13T14:56:52.835Z","avatar_url":"https://github.com/mauserzjeh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub release (latest by date)](https://img.shields.io/github/v/release/mauserzjeh/dxt?style=flat-square)\n\n# dxt\n\nDXT decompression library written in Go. It supports DXT1, DXT3 and DXT5 decompression to RGBA\n\n# Installation\n```\ngo get -u github.com/mauserzjeh/dxt\n```\n\n# Tests\n```\ngo test -v\n```\n\n# Usage\n```go\n// import the library\nimport \"github.com/mauserzjeh/dxt\"\n\nvar dxtBytes []byte\nvar width uint\nvar height uint\n\n// ...read the DXT encoded data...\n// ...and also obtain the width and height of the image...\n\n// decompress DXT1 to RGBA\nrgbaBytes, err := dxt.DecodeDXT1(dxtBytes, width, height)\n\n// or\n\n// decompress DXT3 to RGBA\nrgbaBytes, err := dxt.DecodeDXT3(dxtBytes, width, height)\n\n// or\n\n// decompress DXT5 to RGBA\nrgbaBytes, err := dxt.DecodeDXT5(dxtBytes, width, height)\n\n// check for errors\nif err != nil {\n    log.Fatal(err)\n}\n\n// rgbaBytes should hold the decompressed RGBA data if no error happened\n//             R    G   B    A    R   G    B  ...\n// ie. []byte{123, 23, 234, 212, 21, 128, 52, ...}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauserzjeh%2Fdxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauserzjeh%2Fdxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauserzjeh%2Fdxt/lists"}