mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-11-18 20:14:36 +01:00
Stubs for libSceVdecsw (#5022)
* libSceVdecsw stuff defines all the structs, functions, and error codes. * Obligatory clang commit
This commit is contained in:
1 parent
ca6f7e56b4
commit
f3f0c14c13
7 files changed
+464
No files matched your search
@@ -619,6 +619,8 @@ set(FIBER_LIB src/core/libraries/fiber/fiber_context.cpp
|
||||
|
||||
set(VDEC_LIB src/core/libraries/videodec/video_utils.cpp
|
||||
src/core/libraries/videodec/video_utils.h
|
||||
src/core/libraries/videodec/vdecsw.cpp
|
||||
src/core/libraries/videodec/vdecsw.h
|
||||
src/core/libraries/videodec/videodec2_impl.cpp
|
||||
src/core/libraries/videodec/videodec2_impl.h
|
||||
src/core/libraries/videodec/videodec2.cpp
|
||||
|
||||
@@ -100,6 +100,7 @@ constexpr auto Lib_SystemService = "Lib.SystemService"; ///< The Lib
|
||||
constexpr auto Lib_Usbd = "Lib.Usbd"; ///< The LibSceUsbd implementation.
|
||||
constexpr auto Lib_UserService = "Lib.UserService"; ///< The LibSceUserService implementation.
|
||||
constexpr auto Lib_Vdec2 = "Lib.Vdec2"; ///< The LibSceVideodec2 implementation.
|
||||
constexpr auto Lib_Vdecsw = "Lib.Vdecsw"; ///< The LibSceVdecsw implementation.
|
||||
constexpr auto Lib_VideoOut = "Lib.VideoOut"; ///< The LibSceVideoOut implementation.
|
||||
constexpr auto Lib_Videodec = "Lib.Videodec"; ///< The LibSceVideodec implementation.
|
||||
constexpr auto Lib_VideoRecording = "Lib.VideoRecording"; ///< The LibSceVideoRecording implementation.
|
||||
|
||||
@@ -116,6 +116,7 @@ std::unordered_map<std::string_view, std::shared_ptr<spdlog::logger>> ALL_LOGGER
|
||||
{Class::Lib_Usbd, nullptr},
|
||||
{Class::Lib_UserService, nullptr},
|
||||
{Class::Lib_Vdec2, nullptr},
|
||||
{Class::Lib_Vdecsw, nullptr},
|
||||
{Class::Lib_VideoOut, nullptr},
|
||||
{Class::Lib_Videodec, nullptr},
|
||||
{Class::Lib_VideoRecording, nullptr},
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
#include "core/libraries/ulobjmgr/ulobjmgr.h"
|
||||
#include "core/libraries/usbd/usbd.h"
|
||||
#include "core/libraries/video_recording/video_recording.h"
|
||||
#include "core/libraries/videodec/vdecsw.h"
|
||||
#include "core/libraries/videodec/videodec.h"
|
||||
#include "core/libraries/videodec/videodec2.h"
|
||||
#include "core/libraries/videoout/video_out.h"
|
||||
@@ -146,6 +147,7 @@ void InitHLELibs(Core::Loader::SymbolsResolver* sym) {
|
||||
{"libSceAjm.sprx", Libraries::Ajm::RegisterLib},
|
||||
{"libSceErrorDialog.sprx", Libraries::ErrorDialog::RegisterLib},
|
||||
{"libSceImeDialog.sprx", Libraries::ImeDialog::RegisterLib},
|
||||
{"libSceVdecsw.sprx", Libraries::Vdecsw::RegisterLib},
|
||||
{"libSceVideodec.sprx", Libraries::Videodec::RegisterLib},
|
||||
{"libSceVideodec2.sprx", Libraries::Videodec2::RegisterLib},
|
||||
{"libSceIme.sprx", Libraries::Ime::RegisterLib},
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2026 shadPS4 Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "common/alignment.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/logging/log.h"
|
||||
#include "core/libraries/libs.h"
|
||||
#include "core/libraries/videodec/vdecsw.h"
|
||||
#include "core/libraries/videodec/videodec_error.h"
|
||||
|
||||
namespace Libraries::Vdecsw {
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswQueryComputeMemoryInfo(OrbisVdecswComputeMemoryInfo* compute_mem_info) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI
|
||||
sceVdecswAllocateComputeQueue(const OrbisVdecswComputeConfigInfo* compute_cfg_info_in,
|
||||
const OrbisVdecswComputeMemoryInfo* compute_mem_info_in,
|
||||
OrbisVdecswComputeQueue* compute_queue_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswReleaseComputeQueue(OrbisVdecswComputeQueue compute_queue_in) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI
|
||||
sceVdecswQueryDecoderMemoryInfo(const OrbisVdecswDecoderConfigInfo* decoder_config_info_in,
|
||||
OrbisVdecswDecoderMemoryInfo* decoder_memory_info_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswCreateDecoder(const OrbisVdecswDecoderConfigInfo* decoder_config_info_in,
|
||||
const OrbisVdecswDecoderMemoryInfo* decoder_memory_info_in,
|
||||
OrbisVdecswDecoder* decoder_instance_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswDeleteDecoder(OrbisVdecswDecoder decoder_instance_in) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswResetDecoder(OrbisVdecswDecoder decoder_instance_in) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswSetDecodeInput(OrbisVdecswDecoder decoder_instance_in,
|
||||
const OrbisVdecswInputData* input_data_in) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswSyncDecodeInput(OrbisVdecswDecoder decoder_instance_in,
|
||||
OrbisVdecswInputResult* input_result_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswTrySyncDecodeInput(OrbisVdecswDecoder decoder_instance_in,
|
||||
OrbisVdecswInputResult* input_result_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswSetDecodeOutput(OrbisVdecswDecoder decoder_instance_in,
|
||||
OrbisVdecswFrameBuffer* frame_buffer_in_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswSyncDecodeOutput(OrbisVdecswDecoder decoder_instance_in,
|
||||
OrbisVdecswOutputInfo* output_info_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswTrySyncDecodeOutput(OrbisVdecswDecoder decoder_instance_in,
|
||||
OrbisVdecswOutputInfo* output_info_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswFinalizeDecodeSequence(OrbisVdecswDecoder decoder_instance_in) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswGetPictureInfo(const OrbisVdecswOutputInfo* output_info_in,
|
||||
void* p_1st_picture_info_out,
|
||||
void* p_2nd_picture_info_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswGetAvcPictureInfo(const OrbisVdecswOutputInfo* output_info_in,
|
||||
OrbisVdecswAvcPictureInfo* p_1st_picture_info_out,
|
||||
OrbisVdecswAvcPictureInfo* p_2nd_picture_info_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceVdecswGetHevcPictureInfo(const OrbisVdecswOutputInfo* output_info_in,
|
||||
OrbisVdecswHevcPictureInfo* picture_info_out) {
|
||||
LOG_ERROR(Lib_Vdecsw, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
void RegisterLib(Core::Loader::SymbolsResolver* sym) {
|
||||
LIB_FUNCTION("hIgrg5h4V6s", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswAllocateComputeQueue);
|
||||
LIB_FUNCTION("+L5ArV1tPGA", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswCreateDecoder);
|
||||
LIB_FUNCTION("ecUtPX+dBYk", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswDeleteDecoder);
|
||||
LIB_FUNCTION("5Y6nZqIZvBg", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswFinalizeDecodeSequence);
|
||||
LIB_FUNCTION("ihNT-uuEAr4", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswGetAvcPictureInfo);
|
||||
LIB_FUNCTION("PzF+L5zXoyg", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswGetHevcPictureInfo);
|
||||
LIB_FUNCTION("FzECy3Wxxas", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswGetPictureInfo);
|
||||
LIB_FUNCTION("0moTubWCsTM", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswQueryComputeMemoryInfo);
|
||||
LIB_FUNCTION("A+2M7EivuOU", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswQueryDecoderMemoryInfo);
|
||||
LIB_FUNCTION("fX-zOOefbbs", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswReleaseComputeQueue);
|
||||
LIB_FUNCTION("veb-YBrOqo0", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswResetDecoder);
|
||||
LIB_FUNCTION("aqMiF0AgUYI", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswSetDecodeInput);
|
||||
LIB_FUNCTION("rgtMCOpyBSc", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswSetDecodeOutput);
|
||||
LIB_FUNCTION("AAMM-Q1X0g0", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswSyncDecodeInput);
|
||||
LIB_FUNCTION("tWiSgXov8GM", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswSyncDecodeOutput);
|
||||
LIB_FUNCTION("l4sQYy5wPkc", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswTrySyncDecodeInput);
|
||||
LIB_FUNCTION("kMBw37oH8nI", "libSceVdecsw", 1, "libSceVdecsw", sceVdecswTrySyncDecodeOutput);
|
||||
}
|
||||
|
||||
} // namespace Libraries::Vdecsw
|
||||
@@ -0,0 +1,279 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2026 shadPS4 Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common/types.h"
|
||||
|
||||
namespace Core::Loader {
|
||||
class SymbolsResolver;
|
||||
}
|
||||
namespace Libraries::Vdecsw {
|
||||
|
||||
class VdecDecoder;
|
||||
|
||||
using OrbisVdecswDecoder = VdecDecoder*;
|
||||
using OrbisVdecswComputeQueue = void*;
|
||||
|
||||
enum class OrbisVdecswCodecType : u32 {
|
||||
Avc = 1,
|
||||
Hevc = 974921,
|
||||
};
|
||||
|
||||
struct OrbisVdecswDecoderConfigInfo {
|
||||
u64 this_size;
|
||||
u32 resource_type;
|
||||
OrbisVdecswCodecType codec_type;
|
||||
u32 profile;
|
||||
u32 max_level;
|
||||
s32 max_frame_width;
|
||||
s32 max_frame_height;
|
||||
s32 max_dpb_frame_count;
|
||||
u32 decode_pipeline_depth;
|
||||
OrbisVdecswComputeQueue compute_queue;
|
||||
u64 cpu_affinity_mask;
|
||||
s32 cpu_thread_priority;
|
||||
bool optimize_progressive_video;
|
||||
bool check_memory_type;
|
||||
u8 reserved0;
|
||||
s8 extra_dpb_frame_count;
|
||||
void* extra_config_info;
|
||||
bool disable_sync_decode_output;
|
||||
u32 max_pending_sync_count;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswDecoderConfigInfo) == 0x50);
|
||||
|
||||
struct OrbisVdecswDecoderMemoryInfo {
|
||||
u64 this_size;
|
||||
u64 cpu_memory_size;
|
||||
void* cpu_memory;
|
||||
u64 gpu_memory_size;
|
||||
void* gpu_memory;
|
||||
u64 cpu_gpu_memory_size;
|
||||
void* cpu_gpu_memory;
|
||||
u64 max_frame_buffer_size;
|
||||
u32 frame_buffer_alignment;
|
||||
u32 reserved0;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswDecoderMemoryInfo) == 0x48);
|
||||
|
||||
struct OrbisVdecswInputData {
|
||||
u64 this_size;
|
||||
void* au_data;
|
||||
u64 au_size;
|
||||
u64 pts_data;
|
||||
u64 dts_data;
|
||||
u64 attached_data;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswInputData) == 0x30);
|
||||
|
||||
struct OrbisVdecswInputResult {
|
||||
u64 this_size;
|
||||
void* decoded_au;
|
||||
u32 output_frame_count;
|
||||
u32 reserved0;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswInputResult) == 0x18);
|
||||
|
||||
struct OrbisVdecswOutputInfo {
|
||||
u64 this_size;
|
||||
bool is_valid;
|
||||
bool is_last_frame;
|
||||
bool is_error_frame;
|
||||
u8 picture_count;
|
||||
OrbisVdecswCodecType codec_type;
|
||||
u32 frame_width;
|
||||
u32 frame_pitch;
|
||||
u32 frame_height;
|
||||
bool is_discarded_frame;
|
||||
void* frame_buffer;
|
||||
u64 frame_buffer_size;
|
||||
u32 frame_format;
|
||||
u32 frame_pitch_in_bytes;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswOutputInfo) == 0x38);
|
||||
|
||||
struct OrbisVdecswFrameBuffer {
|
||||
u64 this_size;
|
||||
void* frame_buffer;
|
||||
u64 frame_buffer_size;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswFrameBuffer) == 0x18);
|
||||
|
||||
struct OrbisVdecswComputeMemoryInfo {
|
||||
u64 this_size;
|
||||
u64 cpu_gpu_memory_size;
|
||||
void* cpu_gpu_memory;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswComputeMemoryInfo) == 0x18);
|
||||
|
||||
struct OrbisVdecswComputeConfigInfo {
|
||||
u64 this_size;
|
||||
u16 compute_pipe_id;
|
||||
u16 compute_queue_id;
|
||||
bool check_memory_type;
|
||||
u8 reserved0;
|
||||
u16 reserved1;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswComputeConfigInfo) == 0x10);
|
||||
|
||||
struct OrbisVdecswAvcPictureInfo {
|
||||
u64 this_size;
|
||||
|
||||
bool is_valid;
|
||||
|
||||
u64 pts_data;
|
||||
u64 dts_data;
|
||||
u64 attached_data;
|
||||
|
||||
u8 idr_pictureflag;
|
||||
|
||||
u8 profile_idc;
|
||||
u8 level_idc;
|
||||
u32 pic_width_in_mbs_minus1;
|
||||
u32 pic_height_in_map_units_minus1;
|
||||
u8 frame_mbs_only_flag;
|
||||
|
||||
u8 frame_cropping_flag;
|
||||
u32 frame_crop_left_offset;
|
||||
u32 frame_crop_right_offset;
|
||||
u32 frame_crop_top_offset;
|
||||
u32 frame_crop_bottom_offset;
|
||||
|
||||
u8 aspect_ratio_info_present_flag;
|
||||
u8 aspect_ratio_idc;
|
||||
u16 sar_width;
|
||||
u16 sar_height;
|
||||
|
||||
u8 video_signal_type_present_flag;
|
||||
u8 video_format;
|
||||
u8 video_full_range_flag;
|
||||
u8 colour_description_present_flag;
|
||||
u8 colour_primaries;
|
||||
u8 transfer_characteristics;
|
||||
u8 matrix_coefficients;
|
||||
|
||||
u8 timing_info_present_flag;
|
||||
u32 num_units_in_tick;
|
||||
u32 time_scale;
|
||||
u8 fixed_frame_rate_flag;
|
||||
|
||||
u8 bitstream_restriction_flag;
|
||||
u8 max_dec_frame_buffering;
|
||||
|
||||
u8 pic_struct_present_flag;
|
||||
u8 pic_struct;
|
||||
u8 field_pic_flag;
|
||||
u8 bottom_field_flag;
|
||||
|
||||
u8 sequence_parameter_set_present_flag;
|
||||
u8 picture_parameter_set_present_flag;
|
||||
u8 au_delimiter_present_flag;
|
||||
u8 end_of_sequence_present_flag;
|
||||
u8 end_of_stream_present_flag;
|
||||
u8 filler_data_present_flag;
|
||||
u8 picture_timing_sei_present_flag;
|
||||
u8 buffering_period_sei_present_flag;
|
||||
|
||||
u8 constraint_set0_flag;
|
||||
u8 constraint_set1_flag;
|
||||
u8 constraint_set2_flag;
|
||||
u8 constraint_set3_flag;
|
||||
u8 constraint_set4_flag;
|
||||
u8 constraint_set5_flag;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswAvcPictureInfo) == 0x78);
|
||||
|
||||
struct OrbisVdecswHevcExtraConfigInfo {
|
||||
u64 this_size;
|
||||
s32 tier_type;
|
||||
s8 max_bit_depth_luma;
|
||||
s8 max_bit_depth_chroma;
|
||||
u16 reserved0;
|
||||
s32 max_temporal_id_to_decode;
|
||||
u32 hdr_frame_format;
|
||||
u32 gpu_load_level;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswHevcExtraConfigInfo) == 0x20);
|
||||
|
||||
struct OrbisVdecswHevcPictureInfo {
|
||||
u64 this_size;
|
||||
bool is_valid;
|
||||
u64 pts_data;
|
||||
u64 dts_data;
|
||||
u64 attached_data;
|
||||
u32 pic_width_in_luma_samples;
|
||||
u32 pic_height_in_luma_samples;
|
||||
u8 bit_depth_luma_minus8;
|
||||
u8 bit_depth_chroma_minus8;
|
||||
u8 timing_info_present_flag;
|
||||
u32 num_units_in_tick;
|
||||
u32 time_scale;
|
||||
u32 aspect_ratio_info_present_flag;
|
||||
u8 aspect_ratio_idc;
|
||||
u16 sar_width;
|
||||
u16 sar_height;
|
||||
u8 video_signal_type_present_flag;
|
||||
u8 video_format;
|
||||
u8 video_full_range_flag;
|
||||
u8 colour_description_present_flag;
|
||||
u8 colour_primaries;
|
||||
u8 transfer_characteristics;
|
||||
u8 matrix_coeffs;
|
||||
u8 frame_field_info_present_flag;
|
||||
u32 pic_struct;
|
||||
u32 source_scan_type;
|
||||
u32 duplicate_flag;
|
||||
u32 conformance_window_flag;
|
||||
u32 conf_win_left_offset;
|
||||
u32 conf_win_right_offset;
|
||||
u32 conf_win_top_offset;
|
||||
u32 conf_win_bottom_offset;
|
||||
u32 default_display_window_flag;
|
||||
u32 def_disp_win_left_offset;
|
||||
u32 def_disp_win_right_offset;
|
||||
u32 def_disp_win_top_offset;
|
||||
u32 def_disp_win_bottom_offset;
|
||||
u8 chroma_loc_info_present_flag;
|
||||
u8 chroma_sample_loc_type_top_field;
|
||||
u8 chroma_sample_loc_type_bottom_field;
|
||||
u8 field_seq_flag;
|
||||
u8 video_parameter_set_present_flag;
|
||||
u8 sequence_parameter_set_present_flag;
|
||||
u8 picture_parameter_set_present_flag;
|
||||
u8 au_delimiter_present_flag;
|
||||
u8 end_of_sequence_present_flag;
|
||||
u8 end_of_stream_present_flag;
|
||||
u8 filler_data_present_flag;
|
||||
u8 picture_timing_sei_present_flag;
|
||||
u8 buffering_period_sei_present_flag;
|
||||
u8 frame_packing_arrangement_sei_present_flag;
|
||||
u8 alternative_transfer_characteristics_sei_present_flag;
|
||||
u8 idr_pictureflag;
|
||||
u8 irap_picture_flag;
|
||||
u8 general_profile_space;
|
||||
u8 general_tier_flag;
|
||||
u8 general_profile_idc;
|
||||
u8 general_progressive_source_flag;
|
||||
u8 general_interlaced_source_flag;
|
||||
u8 general_frame_only_constraint_flag;
|
||||
u8 general_level_idc;
|
||||
u8 sub_layer_profile_present_flag;
|
||||
u8 sub_layer_level_present_flag;
|
||||
u8 sub_layer_profile_space;
|
||||
u8 sub_layer_tier_flag;
|
||||
u8 sub_layer_profile_idc;
|
||||
u8 sub_layer_level_idc;
|
||||
u8 sub_layer_ordering_info_present_flag;
|
||||
u8 max_dec_pic_buffering_minus1;
|
||||
u8 preferred_transfer_characteristics;
|
||||
u8 frame_cropping_flag;
|
||||
u32 frame_crop_left_offset;
|
||||
u32 frame_crop_right_offset;
|
||||
u32 frame_crop_top_offset;
|
||||
u32 frame_crop_bottom_offset;
|
||||
};
|
||||
static_assert(sizeof(OrbisVdecswHevcPictureInfo) == 0xB8);
|
||||
|
||||
void RegisterLib(Core::Loader::SymbolsResolver* sym);
|
||||
} // namespace Libraries::Vdecsw
|
||||
@@ -66,3 +66,46 @@ constexpr int ORBIS_VIDEODEC2_ERROR_ACCESS_UNIT = 0x811D0301;
|
||||
constexpr int ORBIS_VIDEODEC2_ERROR_OVERSIZE_DECODE = 0x811D0302;
|
||||
constexpr int ORBIS_VIDEODEC2_ERROR_INVALID_SEQUENCE = 0x811D0303;
|
||||
constexpr int ORBIS_VIDEODEC2_ERROR_FATAL_STREAM = 0x811D0304;
|
||||
|
||||
// Vdecsw library
|
||||
constexpr int ORBIS_VDECSW_ERROR_API_FAIL = 0x81510100;
|
||||
constexpr int ORBIS_VDECSW_ERROR_STRUCT_SIZE = 0x81510101;
|
||||
constexpr int ORBIS_VDECSW_ERROR_ARGUMENT_POINTER = 0x81510102;
|
||||
constexpr int ORBIS_VDECSW_ERROR_DECODER_INSTANCE = 0x81510103;
|
||||
constexpr int ORBIS_VDECSW_ERROR_MEMORY_SIZE = 0x81510104;
|
||||
constexpr int ORBIS_VDECSW_ERROR_MEMORY_POINTER = 0x81510105;
|
||||
constexpr int ORBIS_VDECSW_ERROR_FRAME_BUFFER_SIZE = 0x81510106;
|
||||
constexpr int ORBIS_VDECSW_ERROR_FRAME_BUFFER_POINTER = 0x81510107;
|
||||
constexpr int ORBIS_VDECSW_ERROR_FRAME_BUFFER_ALIGNMENT = 0x81510108;
|
||||
constexpr int ORBIS_VDECSW_ERROR_NOT_DIRECT_MEMORY = 0x8151010B;
|
||||
constexpr int ORBIS_VDECSW_ERROR_MEMORY_INFO = 0x8151010C;
|
||||
constexpr int ORBIS_VDECSW_ERROR_ACCESS_UNIT_SIZE = 0x8151010D;
|
||||
constexpr int ORBIS_VDECSW_ERROR_ACCESS_UNIT_POINTER = 0x8151010E;
|
||||
constexpr int ORBIS_VDECSW_ERROR_OUTPUT_INFO = 0x8151010F;
|
||||
constexpr int ORBIS_VDECSW_ERROR_COMPUTE_QUEUE = 0x81510110;
|
||||
constexpr int ORBIS_VDECSW_ERROR_FATAL_STATE = 0x81510111;
|
||||
constexpr int ORBIS_VDECSW_ERROR_PRESET_VALUE = 0x81510112;
|
||||
constexpr int ORBIS_VDECSW_ERROR_INPUT_QUEUE_FULL = 0x81510113;
|
||||
constexpr int ORBIS_VDECSW_ERROR_OUTPUT_BUFFER_FULL = 0x81510114;
|
||||
constexpr int ORBIS_VDECSW_ERROR_OUTPUT_PENDING = 0x81510115;
|
||||
constexpr int ORBIS_VDECSW_ERROR_INPUT_QUEUE_EMPTY = 0x81510116;
|
||||
constexpr int ORBIS_VDECSW_ERROR_DECODE_PENDING = 0x81510117;
|
||||
constexpr int ORBIS_VDECSW_ERROR_OUTPUT_BUFFER_EMPTY = 0x81510118;
|
||||
constexpr int ORBIS_VDECSW_ERROR_CONFIG_INFO = 0x81510200;
|
||||
constexpr int ORBIS_VDECSW_ERROR_COMPUTE_PIPE_ID = 0x81510201;
|
||||
constexpr int ORBIS_VDECSW_ERROR_COMPUTE_QUEUE_ID = 0x81510202;
|
||||
constexpr int ORBIS_VDECSW_ERROR_RESOURCE_TYPE = 0x81510203;
|
||||
constexpr int ORBIS_VDECSW_ERROR_CODEC_TYPE = 0x81510204;
|
||||
constexpr int ORBIS_VDECSW_ERROR_PROFILE_LEVEL = 0x81510205;
|
||||
constexpr int ORBIS_VDECSW_ERROR_INPUT_QUEUE_DEPTH = 0x81510206;
|
||||
constexpr int ORBIS_VDECSW_ERROR_AFFINITY_MASK = 0x81510207;
|
||||
constexpr int ORBIS_VDECSW_ERROR_THREAD_PRIORITY = 0x81510208;
|
||||
constexpr int ORBIS_VDECSW_ERROR_DPB_FRAME_COUNT = 0x81510209;
|
||||
constexpr int ORBIS_VDECSW_ERROR_FRAME_WIDTH_HEIGHT = 0x8151020A;
|
||||
constexpr int ORBIS_VDECSW_ERROR_EXTRA_CONFIG_INFO = 0x8151020B;
|
||||
constexpr int ORBIS_VDECSW_ERROR_MEMORY_TYPE = 0x8151020C;
|
||||
constexpr int ORBIS_VDECSW_ERROR_NEW_SEQUENCE = 0x81510300;
|
||||
constexpr int ORBIS_VDECSW_ERROR_ACCESS_UNIT = 0x81510301;
|
||||
constexpr int ORBIS_VDECSW_ERROR_OVERSIZE_DECODE = 0x81510302;
|
||||
constexpr int ORBIS_VDECSW_ERROR_INVALID_SEQUENCE = 0x81510303;
|
||||
constexpr int ORBIS_VDECSW_ERROR_FATAL_STREAM = 0x81510304;
|
||||
Reference in new issue
Block a user