AMF + NVENC control and support

This commit is contained in:
KingKDot
2026-07-11 14:55:26 -05:00
parent 62cd920936
commit 424ed348e3
31 changed files with 761 additions and 35 deletions
@@ -0,0 +1,19 @@
package privacy
import (
"strconv"
"testing"
)
func TestInputMarkerFitsPointerWidth(t *testing.T) {
marker := InputMarker()
if marker == 0 {
t.Fatal("input marker must not be zero")
}
if strconv.IntSize == 32 && uint64(marker) != inputMarkerValue&0xffffffff {
t.Fatalf("32-bit marker = %#x, want low bits %#x", marker, inputMarkerValue&0xffffffff)
}
if strconv.IntSize == 64 && uint64(marker) != inputMarkerValue {
t.Fatalf("64-bit marker = %#x, want %#x", marker, inputMarkerValue)
}
}