mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
36 lines
958 B
Go
36 lines
958 B
Go
package screenshot
|
|
|
|
import "github.com/AvengeMedia/DankMaterialShell/core/internal/wayland/shm"
|
|
|
|
type PixelFormat = shm.PixelFormat
|
|
|
|
const (
|
|
FormatARGB8888 = shm.FormatARGB8888
|
|
FormatXRGB8888 = shm.FormatXRGB8888
|
|
FormatABGR8888 = shm.FormatABGR8888
|
|
FormatXBGR8888 = shm.FormatXBGR8888
|
|
FormatRGB888 = shm.FormatRGB888
|
|
FormatBGR888 = shm.FormatBGR888
|
|
)
|
|
|
|
const (
|
|
TransformNormal = shm.TransformNormal
|
|
Transform90 = shm.Transform90
|
|
Transform180 = shm.Transform180
|
|
Transform270 = shm.Transform270
|
|
TransformFlipped = shm.TransformFlipped
|
|
TransformFlipped90 = shm.TransformFlipped90
|
|
TransformFlipped180 = shm.TransformFlipped180
|
|
TransformFlipped270 = shm.TransformFlipped270
|
|
)
|
|
|
|
type ShmBuffer = shm.Buffer
|
|
|
|
func CreateShmBuffer(width, height, stride int) (*ShmBuffer, error) {
|
|
return shm.CreateBuffer(width, height, stride)
|
|
}
|
|
|
|
func InverseTransform(transform int32) int32 {
|
|
return shm.InverseTransform(transform)
|
|
}
|