{"id":16181790,"url":"https://github.com/4eb0da/dds-parser","last_synced_at":"2025-04-07T12:25:51.201Z","repository":{"id":65532308,"uuid":"586280287","full_name":"4eb0da/dds-parser","owner":"4eb0da","description":"DDS header and data parser","archived":false,"fork":false,"pushed_at":"2023-01-08T11:09:34.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T23:34:44.236Z","etag":null,"topics":["ati2","dds","dxt1","dxt3","dxt5","parser","texture","webgl"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/4eb0da.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":"2023-01-07T15:27:49.000Z","updated_at":"2023-01-07T15:29:59.000Z","dependencies_parsed_at":"2023-02-08T05:45:39.991Z","dependency_job_id":null,"html_url":"https://github.com/4eb0da/dds-parser","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/4eb0da%2Fdds-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4eb0da%2Fdds-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4eb0da%2Fdds-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4eb0da%2Fdds-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4eb0da","download_url":"https://codeload.github.com/4eb0da/dds-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247650795,"owners_count":20973327,"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":["ati2","dds","dxt1","dxt3","dxt5","parser","texture","webgl"],"created_at":"2024-10-10T06:27:41.575Z","updated_at":"2025-04-07T12:25:51.167Z","avatar_url":"https://github.com/4eb0da.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dds-parser\nDDS parser (header and raw data).\nHeavely based (copy-paste) on the [parse-dds](https://www.npmjs.com/package/parse-dds) and [mdx-m3-viewer](https://www.npmjs.com/package/mdx-m3-viewer).\n\n## Installation\n\n```\nnpm i dds-parser\n```\n\n## Usage\n\n```ts\nimport { decodeDds, parseHeaders } from 'dds-parser';\n\nconst info = parseHeaders(arrayBuffer);\n\nconsole.log(info.format);\n\nconst image = info.images[0];\nconst rgba = decodeDds(\n    arrayBuffer.slice(image.offset, image.offset + image.length),\n    info.format,\n    image.shape.width,\n    image.shape.height\n);\n```\n\n## Supported formats\n\n* `dxt1`\n* `dxt3`\n* `dxt5`\n* `ati2`\n\n## Thanks\n\n* GhostWolf (aka flowtsohg)\n* Jam3\n* toji\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4eb0da%2Fdds-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4eb0da%2Fdds-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4eb0da%2Fdds-parser/lists"}