[Phi] adding image management and image/buffer copy commands
Mirror Gitea refs to GitHub / mirror (push) Successful in 18s
Build / build (push) Failing after 59s
Test / build_and_test (push) Failing after 1m6s

This commit is contained in:
2026-08-19 00:01:17 +02:00
parent e98907df8e
commit 51147a1eaf
12 changed files with 1045 additions and 99 deletions
+8 -5
View File
@@ -2,6 +2,11 @@
#include <Logger.h>
#include <Buffer.h>
#include <Image.h>
static const char* CommandName[] = {
"CopyBuffer", "FillBuffer", "CopyBufferToImage", "CopyImageToBuffer", "CopyImage",
};
PhiStatus ReadCommandData(PhiCommandReader* reader, void* data, uint64_t size)
{
@@ -42,14 +47,12 @@ static PhiStatus ExecuteCommand(PhiCommandReader* reader, const PhiCmdHeader* co
if(IsBufferCommand(command_header))
return ExecuteBufferCommand(reader, command_header);
if(IsImageCommand(command_header))
return ExecuteImageCommand(reader, command_header);
return PHI_STATUS_BAD_MESSAGE;
}
static const char* CommandName[] = {
"CopyBuffer",
"FillBuffer",
};
int HandleWorkExecution(PhiEndpoint endpoint, const PhiMessageHeader* header)
{
PhiWorkExecutionRequest request;