Documentation ¶
Overview ¶
Package d2dcc contains the logic for loading and processing DCC files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir64ToDcc ¶
Dir64ToDcc returns the DCC direction based on the actual direction. Special thanks for Necrolis for these tables!
Types ¶
type DCC ¶
type DCC struct { Signature int Version int NumberOfDirections int FramesPerDirection int Directions []*DCCDirection // contains filtered or unexported fields }
DCC represents a DCC file.
type DCCCell ¶
type DCCCell struct { Width int Height int XOffset int YOffset int LastWidth int LastHeight int LastXOffset int LastYOffset int }
DCCCell represents a single cell in a DCC file.
type DCCDirection ¶
type DCCDirection struct { OutSizeCoded int CompressionFlags int Variable0Bits int WidthBits int HeightBits int XOffsetBits int YOffsetBits int OptionalDataBits int CodedBytesBits int EqualCellsBitstreamSize int PixelMaskBitstreamSize int EncodingTypeBitsreamSize int RawPixelCodesBitstreamSize int Frames []*DCCDirectionFrame PaletteEntries [256]byte Box d2geom.Rectangle Cells []*DCCCell PixelData []byte HorizontalCellCount int VerticalCellCount int PixelBuffer []DCCPixelBufferEntry }
DCCDirection represents a DCCDirection file.
func CreateDCCDirection ¶
func CreateDCCDirection(bm *d2datautils.BitMuncher, file *DCC) *DCCDirection
CreateDCCDirection creates an instance of a DCCDirection.
type DCCDirectionFrame ¶
type DCCDirectionFrame struct { Box d2geom.Rectangle Cells []DCCCell PixelData []byte Width int Height int XOffset int YOffset int NumberOfOptionalBytes int NumberOfCodedBytes int HorizontalCellCount int VerticalCellCount int FrameIsBottomUp bool // contains filtered or unexported fields }
DCCDirectionFrame represents a direction frame for a DCC.
func CreateDCCDirectionFrame ¶
func CreateDCCDirectionFrame(bits *d2datautils.BitMuncher, direction *DCCDirection) *DCCDirectionFrame
CreateDCCDirectionFrame Creates a DCCDirectionFrame for a DCC.
type DCCPixelBufferEntry ¶
DCCPixelBufferEntry represents a single entry in the pixel buffer.
Click to show internal directories.
Click to hide internal directories.