Documentation
¶
Overview ¶
Package d3d11 decodes HEVC and AV1 on the GPU of a Direct3D 11 device through a Media Foundation decoder transform made aware of the device (DXVA). Pictures stay in the decoder's textures on that device.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder is a hardware decoder on one D3D11 device.
func Open ¶
Open makes a decoder for cfg.Codec on dev, whose Handle is an ID3D11Device* made with video support. Decoded textures belong to dev.
func (*Decoder) Decode ¶
Decode copies au into a Media Foundation sample (one CPU copy of the compressed bytes), decodes it, and returns the newest picture ready: when a late picture and the current one are both ready, the late one is released unshown (counted by Dropped).
func (*Decoder) Dropped ¶
Dropped counts the pictures Decode released unshown because a newer one was ready with them.