mirror of
https://github.com/par274/sharpemu.git
synced 2026-08-01 07:29:43 +08:00
[video] added sdl window and host display plumbing
This commit is contained in:
@@ -97,6 +97,24 @@ public sealed class VideoOutPixelFormatTests
|
||||
Assert.Equal(56u, InvokeMapPixelFormat(0xDEADBEEFUL));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0x88740000UL)]
|
||||
[InlineData(0x8100070422000000UL)]
|
||||
[InlineData(0x8100070400000000UL)]
|
||||
public void IsHdrPixelFormat_PqFormats_ReturnTrue(ulong pixelFormat)
|
||||
{
|
||||
Assert.True(VideoOutExports.IsHdrPixelFormat(pixelFormat));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0x80000000UL)]
|
||||
[InlineData(0x88060000UL)]
|
||||
[InlineData(0x8100000622000000UL)]
|
||||
public void IsHdrPixelFormat_SdrFormats_ReturnFalse(ulong pixelFormat)
|
||||
{
|
||||
Assert.False(VideoOutExports.IsHdrPixelFormat(pixelFormat));
|
||||
}
|
||||
|
||||
// ---- Self-check activation ----
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user