mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-30 22:49:53 +08:00
Sdl backend (#670)
* [audio] added sdl audio backend and in-tree atrac9 decoder * [input] replaced per-platform pad readers with sdl gamepad input * [video] added sdl window and host display plumbing * [gui] added host display options and per-game render settings * [bink] synced host movie playback to the guest audio clock * [cpu] hooked windows write faults into guest image tracking * [perf] added guest and render profiling, reserved host cpu lanes * [kernel] fixed stale pthread mutex handle alias * [host] wired the sdl session, save-data paths and project references * [audio] hoisted ajm trace stackalloc out of its loop * [video] Add guest image sync setting * [build] Strip native symbols * reuse
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