mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-16 05:31:06 +08:00
Optimize x11 screen capture buffer handling
This commit is contained in:
17
pkg/driver/screen/x11capture_linux_test.go
Normal file
17
pkg/driver/screen/x11capture_linux_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package screen
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAlign64(t *testing.T) {
|
||||
if ret := cAlign64(0x00010008); ret != 0x00010008 {
|
||||
t.Errorf("Wrong alignment, expected %x, got %x", 0x00010008, ret)
|
||||
}
|
||||
if ret := cAlign64(0x00010006); ret != 0x00010008 {
|
||||
t.Errorf("Wrong alignment, expected %x, got %x", 0x00010008, ret)
|
||||
}
|
||||
if ret := cAlign64(0x00010009); ret != 0x00010010 {
|
||||
t.Errorf("Wrong alignment, expected %x, got %x", 0x00010010, ret)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user