forked from sin365/AxibugEmuOnline
移除AxibugEmuOnline.GameScreenConvert/
This commit is contained in:
parent
4beea769b5
commit
aba9d4fa41
@ -1,13 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Memory" Version="4.6.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<_LastSelectedProfileId>G:\Sin365\AxibugEmuOnline\AxibugEmuOnline.GameScreenConvert\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<PublishDir>bin\Release\netstandard2.0\publish\</PublishDir>
|
||||
<PublishProtocol>FileSystem</PublishProtocol>
|
||||
<_TargetId>Folder</_TargetId>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<History>True|2025-01-08T10:23:00.0935802Z||;True|2025-01-08T17:56:27.1142682+08:00||;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@ -1,61 +0,0 @@
|
||||
namespace AxibugEmuOnline.GameScreenConvert
|
||||
{
|
||||
public static class ScreenConvert
|
||||
{
|
||||
/// <summary>
|
||||
/// 转换
|
||||
/// </summary>
|
||||
/// <param name="platform">
|
||||
/// enum RomPlatformType
|
||||
///{
|
||||
/// Invalid = 0;
|
||||
/// Nes = 1;
|
||||
/// Master_System = 2;
|
||||
/// Game_Gear = 3;
|
||||
/// Game_Boy = 4;
|
||||
/// Game_Boy_Color = 5;
|
||||
/// Coleco_Vision = 6;
|
||||
/// SC_3000 = 7;
|
||||
/// SG_1000 = 8;
|
||||
/// All = 999;
|
||||
///}</param>
|
||||
/// <param name="srcData"></param>
|
||||
/// <param name="width"></param>
|
||||
/// <param name="height"></param>
|
||||
/// <param name="Quality">品质0~100</param>
|
||||
/// <param name="JpegData"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Convert(int platform, byte[] srcData, out byte[] imageData)
|
||||
{
|
||||
IScreenConvert convert = default;
|
||||
switch (platform)
|
||||
{
|
||||
case 1://nes
|
||||
//
|
||||
break;
|
||||
default:
|
||||
convert = new SampleScreenConvert();
|
||||
break;
|
||||
}
|
||||
return convert.ScreenDataToRGBA32Data(platform, srcData, out imageData);
|
||||
}
|
||||
}
|
||||
|
||||
public interface IScreenConvert
|
||||
{
|
||||
|
||||
bool ScreenDataToRGBA32Data(int platform, byte[] srcData, out byte[] imageData);
|
||||
}
|
||||
|
||||
public class SampleScreenConvert : IScreenConvert
|
||||
{
|
||||
public bool ScreenDataToRGBA32Data(int platform, byte[] srcData, out byte[] imageData)
|
||||
{
|
||||
imageData = null;
|
||||
//TODO 这里加上自己从原始数据中的颜色处理 比如颜色查找表
|
||||
//System.Span<T> 也是可用的
|
||||
//统一处理成RGBA32的通道顺序
|
||||
return imageData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user