ddsfile

DirectDraw Surface file format parser/composer

Latest version: 0.6.0 registry icon
Maintenance score
45
Safety score
100
Popularity score
72
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.6.0 0 0 0 0 0
0.5.2 0 0 0 0 0
0.5.1 0 0 0 0 0
0.5.0 0 0 0 0 0
0.4.0 0 0 0 0 0
0.2.3 0 0 0 0 0
0.2.2 0 0 0 0 0
0.2.1 0 0 0 0 0
0.2.0 0 0 0 0 0

Stability
Latest release:

0.6.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



ddsfile

MIT licensed

ddsfile on crates.ioDocumentation

A library for reading and writing Microsoft DirectDraw Surface (.DDS) files. DDS is a container format for texture data, originally designed for DirectX but widely used across graphics APIs (OpenGL, Vulkan, Metal) and asset pipelines.

This library handles the container envelope — parsing headers, computing layout metadata (pitch, stride, mipmap sizes), and providing access to the raw texture data. It does not decode or encode pixel data.

Features

Both the legacy D3DFormat (Direct3D 9) and the modern DxgiFormat (DirectX 10+) are supported, including files where the format is identified only by bitmask. The library handles:

  • Mipmapped textures, volume textures, texture arrays, and cubemaps
  • Compressed formats (DXT1–DXT5, BC1–BC7)
  • The DX10 extension header (Header10)
  • Layout queries: dimensions, bits per pixel, pitch, stride, block size, array layer count, mipmap level count, and RGBA bitmasks

Minimum Supported Rust Version (MSRV)

The MSRV of this crate is 1.73. MSRV bumps are considered breaking changes and will be accompanied by a major version bump.

History

This crate was originally created and maintained by Mike Dilger at SiegeEngine/ddsfile and was also hosted at PistonDevelopers/ddsfile. Thank you to Mike and all past contributors for their work on this library.

License

Licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed under the MIT license without any additional terms or conditions.