|
3 | 3 |
|
4 | 4 | #include "common/assert.h"
|
5 | 5 | #include "common/config.h"
|
6 |
| -#include "common/elf_info.h" |
7 | 6 | #include "common/logging/log.h"
|
8 | 7 | #include "core/libraries/libs.h"
|
9 | 8 | #include "core/libraries/system/userservice.h"
|
@@ -316,12 +315,6 @@ s32 sceVideoOutSubmitEopFlip(s32 handle, u32 buf_id, u32 mode, u32 arg, void** u
|
316 | 315 | s32 PS4_SYSV_ABI sceVideoOutGetDeviceCapabilityInfo(
|
317 | 316 | s32 handle, SceVideoOutDeviceCapabilityInfo* pDeviceCapabilityInfo) {
|
318 | 317 | pDeviceCapabilityInfo->capability = 0;
|
319 |
| - if (presenter->IsHDRSupported()) { |
320 |
| - auto& game_info = Common::ElfInfo::Instance(); |
321 |
| - if (game_info.GetPSFAttributes().support_hdr) { |
322 |
| - pDeviceCapabilityInfo->capability |= ORBIS_VIDEO_OUT_DEVICE_CAPABILITY_BT2020_PQ; |
323 |
| - } |
324 |
| - } |
325 | 318 | return ORBIS_OK;
|
326 | 319 | }
|
327 | 320 |
|
@@ -359,49 +352,6 @@ s32 PS4_SYSV_ABI sceVideoOutAdjustColor(s32 handle, const SceVideoOutColorSettin
|
359 | 352 | return ORBIS_OK;
|
360 | 353 | }
|
361 | 354 |
|
362 |
| -struct Mode { |
363 |
| - u32 size; |
364 |
| - u8 encoding; |
365 |
| - u8 range; |
366 |
| - u8 colorimetry; |
367 |
| - u8 depth; |
368 |
| - u64 refresh_rate; |
369 |
| - u64 resolution; |
370 |
| - u8 reserved[8]; |
371 |
| -}; |
372 |
| - |
373 |
| -void PS4_SYSV_ABI sceVideoOutModeSetAny_(Mode* mode, u32 size) { |
374 |
| - std::memset(mode, 0xff, size); |
375 |
| - mode->size = size; |
376 |
| -} |
377 |
| - |
378 |
| -s32 PS4_SYSV_ABI sceVideoOutConfigureOutputMode_(s32 handle, u32 reserved, const Mode* mode, |
379 |
| - const void* options, u32 size_mode, |
380 |
| - u32 size_options) { |
381 |
| - auto* port = driver->GetPort(handle); |
382 |
| - if (!port) { |
383 |
| - return ORBIS_VIDEO_OUT_ERROR_INVALID_HANDLE; |
384 |
| - } |
385 |
| - |
386 |
| - if (reserved != 0) { |
387 |
| - return ORBIS_VIDEO_OUT_ERROR_INVALID_VALUE; |
388 |
| - } |
389 |
| - |
390 |
| - if (mode->colorimetry != OrbisVideoOutColorimetry::Any) { |
391 |
| - auto& game_info = Common::ElfInfo::Instance(); |
392 |
| - if (mode->colorimetry == OrbisVideoOutColorimetry::Bt2020PQ && |
393 |
| - game_info.GetPSFAttributes().support_hdr) { |
394 |
| - port->is_mode_changing = true; |
395 |
| - presenter->SetHDR(true); |
396 |
| - port->is_mode_changing = false; |
397 |
| - } else { |
398 |
| - return ORBIS_VIDEO_OUT_ERROR_INVALID_VALUE; |
399 |
| - } |
400 |
| - } |
401 |
| - |
402 |
| - return ORBIS_OK; |
403 |
| -} |
404 |
| - |
405 | 355 | void RegisterLib(Core::Loader::SymbolsResolver* sym) {
|
406 | 356 | driver = std::make_unique<VideoOutDriver>(Config::getScreenWidth(), Config::getScreenHeight());
|
407 | 357 |
|
@@ -440,10 +390,6 @@ void RegisterLib(Core::Loader::SymbolsResolver* sym) {
|
440 | 390 | sceVideoOutAdjustColor);
|
441 | 391 | LIB_FUNCTION("-Ozn0F1AFRg", "libSceVideoOut", 1, "libSceVideoOut", 0, 0,
|
442 | 392 | sceVideoOutDeleteFlipEvent);
|
443 |
| - LIB_FUNCTION("pjkDsgxli6c", "libSceVideoOut", 1, "libSceVideoOut", 0, 0, |
444 |
| - sceVideoOutModeSetAny_); |
445 |
| - LIB_FUNCTION("N1bEoJ4SRw4", "libSceVideoOut", 1, "libSceVideoOut", 0, 0, |
446 |
| - sceVideoOutConfigureOutputMode_); |
447 | 393 |
|
448 | 394 | // openOrbis appears to have libSceVideoOut_v1 module libSceVideoOut_v1.1
|
449 | 395 | LIB_FUNCTION("Up36PTk687E", "libSceVideoOut", 1, "libSceVideoOut", 1, 1, sceVideoOutOpen);
|
|
0 commit comments