mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
dummy videocodec
This commit is contained in:
parent
75d2181489
commit
af98386ea4
@ -366,6 +366,8 @@ set(VDEC_LIB src/core/libraries/videodec/videodec2_impl.cpp
|
||||
src/core/libraries/videodec/videodec2.cpp
|
||||
src/core/libraries/videodec/videodec2.h
|
||||
src/core/libraries/videodec/videodec2_avc.h
|
||||
src/core/libraries/videodec/videodec.cpp
|
||||
src/core/libraries/videodec/videodec.h
|
||||
)
|
||||
|
||||
set(NP_LIBS src/core/libraries/np_manager/np_manager.cpp
|
||||
|
@ -120,6 +120,7 @@ bool ParseFilterRule(Filter& instance, Iterator begin, Iterator end) {
|
||||
SUB(Lib, SharePlay) \
|
||||
SUB(Lib, Fiber) \
|
||||
SUB(Lib, Vdec2) \
|
||||
SUB(Lib, Videodec) \
|
||||
CLS(Frontend) \
|
||||
CLS(Render) \
|
||||
SUB(Render, Vulkan) \
|
||||
|
@ -87,6 +87,7 @@ enum class Class : u8 {
|
||||
Lib_SharePlay, ///< The LibSceSharePlay implemenation
|
||||
Lib_Fiber, ///< The LibSceFiber implementation.
|
||||
Lib_Vdec2, ///< The LibSceVideodec2 implementation.
|
||||
Lib_Videodec, ///< The LibSceVideodec implementation.
|
||||
Frontend, ///< Emulator UI
|
||||
Render, ///< Video Core
|
||||
Render_Vulkan, ///< Vulkan backend
|
||||
|
60
src/core/libraries/videodec/videodec.cpp
Normal file
60
src/core/libraries/videodec/videodec.cpp
Normal file
@ -0,0 +1,60 @@
|
||||
// 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
src/core/libraries/videodec/videodec.h
Normal file
23
src/core/libraries/videodec/videodec.h
Normal 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
|
Loading…
Reference in New Issue
Block a user