DDS 文件库

该库可用于解析和保存DDS(DirectDraw Surface <https://en.wikipedia.org/wiki/DirectDraw_Surface>)文件。

初始版本由以下人员编写:

Alexey Borzenkov (snaury@gmail.com)

所有初期工作的功劳都归于他!谢谢 :)

此版本使用结构体(structs)而非ctypes。

DDS 格式

[DDS ][SurfaceDesc][Data]

[SurfaceDesc]:: (everything is uint32)
    Size
    Flags
    Height
    Width
    PitchOrLinearSize
    Depth
    MipmapCount
    Reserved1 * 11
    [PixelFormat]::
        Size
        Flags
        FourCC
        RGBBitCount
        RBitMask
        GBitMask
        BBitMask
        ABitMask
    [Caps]::
        Caps1
        Caps2
        Reserved1 * 2
    Reserverd2

警告

这是一个外部库,Kivy 不为其提供任何支持。未来它可能会发生变化,我们建议您不要在代码中依赖它。

exception kivy.lib.ddsfile.DDSException[源代码]

基类:Exception

class kivy.lib.ddsfile.QueryDict[源代码]

基类:dict