added videocodec

This commit is contained in:
georgemoralis 2024-11-03 12:15:36 +02:00
parent 5f330f3f78
commit 588eedd6a4
3 changed files with 81 additions and 0 deletions

57
libraries/videodec.cpp Normal file
View File

@ -0,0 +1,57 @@
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "videodec.h"
#include "common/logging/log.h"
#include "core/libraries/error_codes.h"
#include "core/libraries/libs.h"
namespace Libraries::Videodec {
int PS4_SYSV_ABI sceVideodecCreateDecoder() {
LOG_ERROR(Lib_Videodec, "(STUBBED) called");
return ORBIS_OK;
}
int PS4_SYSV_ABI sceVideodecDecode() {
LOG_ERROR(Lib_Videodec, "(STUBBED) called");
return ORBIS_OK;
}
int PS4_SYSV_ABI sceVideodecDeleteDecoder() {
LOG_ERROR(Lib_Videodec, "(STUBBED) called");
return ORBIS_OK;
}
int PS4_SYSV_ABI sceVideodecFlush() {
LOG_ERROR(Lib_Videodec, "(STUBBED) called");
return ORBIS_OK;
}
int PS4_SYSV_ABI sceVideodecMapMemory() {
LOG_ERROR(Lib_Videodec, "(STUBBED) called");
return ORBIS_OK;
}
int PS4_SYSV_ABI sceVideodecQueryResourceInfo() {
LOG_ERROR(Lib_Videodec, "(STUBBED) called");
return ORBIS_OK;
}
int PS4_SYSV_ABI sceVideodecReset() {
LOG_ERROR(Lib_Videodec, "(STUBBED) called");
return ORBIS_OK;
}
void RegisterlibSceVideodec(Core::Loader::SymbolsResolver* sym) {
LIB_FUNCTION("qkgRiwHyheU", "libSceVideodec", 1, "libSceVideodec", 1, 1, sceVideodecCreateDecoder);
LIB_FUNCTION("q0W5GJMovMs", "libSceVideodec", 1, "libSceVideodec", 1, 1, sceVideodecDecode);
LIB_FUNCTION("U0kpGF1cl90", "libSceVideodec", 1, "libSceVideodec", 1, 1, sceVideodecDeleteDecoder);
LIB_FUNCTION("jeigLlKdp5I", "libSceVideodec", 1, "libSceVideodec", 1, 1, sceVideodecFlush);
LIB_FUNCTION("kg+lH0V61hM", "libSceVideodec", 1, "libSceVideodec", 1, 1, sceVideodecMapMemory);
LIB_FUNCTION("leCAscipfFY", "libSceVideodec", 1, "libSceVideodec", 1, 1, sceVideodecQueryResourceInfo);
LIB_FUNCTION("f8AgDv-1X8A", "libSceVideodec", 1, "libSceVideodec", 1, 1, sceVideodecReset);
};
} // namespace Libraries::Videodec

23
libraries/videodec.h Normal file
View File

@ -0,0 +1,23 @@
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "common/types.h"
namespace Core::Loader {
class SymbolsResolver;
}
namespace Libraries::Videodec {
int PS4_SYSV_ABI sceVideodecCreateDecoder();
int PS4_SYSV_ABI sceVideodecDecode();
int PS4_SYSV_ABI sceVideodecDeleteDecoder();
int PS4_SYSV_ABI sceVideodecFlush();
int PS4_SYSV_ABI sceVideodecMapMemory();
int PS4_SYSV_ABI sceVideodecQueryResourceInfo();
int PS4_SYSV_ABI sceVideodecReset();
void RegisterlibSceVideodec(Core::Loader::SymbolsResolver* sym);
} // namespace Libraries::Videodec

View File

@ -188,6 +188,7 @@ int main(int argc, char* argv[]) {
modules_to_generate.push_back(std::string("libSceSharePlay"));
modules_to_generate.push_back(std::string("libSceRemoteplay"));
modules_to_generate.push_back(std::string("libSceIme"));
modules_to_generate.push_back(std::string("libSceVideodec"));
GetSymbolsFromLibDoc(modules_to_generate);
return 0;