about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-05-09 18:38:12 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-05-09 18:38:12 +0200
commita8adde923408d01a977beb0645e6d3d0360c5c9f (patch)
treee089e9a6a433ceed74fda05c24647cce1e462105 /src
parentdaa3fca1f1109c1fd2e1d5d97189d9ab51fe882d (diff)
downloadbox64-a8adde923408d01a977beb0645e6d3d0360c5c9f.tar.gz
box64-a8adde923408d01a977beb0645e6d3d0360c5c9f.zip
[WRAPPER] Added a few more wrapped function to ffmpegs libs
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64printer.c2
-rw-r--r--src/wrapped/generated/functions_list.txt1
-rw-r--r--src/wrapped/generated/wrapper.c4
-rw-r--r--src/wrapped/generated/wrapper.h1
-rw-r--r--src/wrapped/wrappedlibavcodec58_private.h2
-rw-r--r--src/wrapped/wrappedlibavformat58_private.h4
6 files changed, 11 insertions, 3 deletions
diff --git a/src/emu/x64printer.c b/src/emu/x64printer.c
index 5ab00421..d4e5c7e4 100644
--- a/src/emu/x64printer.c
+++ b/src/emu/x64printer.c
@@ -4111,6 +4111,8 @@ void x64Print(x64emu_t* emu, char* buff, size_t buffsz, const char* func, int ti
         snprintf(buff, buffsz, "%04d|%p: Calling %s(%" PRIp ", %" PRIi32 ", %" PRIi32 ", %" PRIp ", %" PRIi32 ", %" PRIp ")", tid, *(void**)(R_RSP), func, (void*)R_RDI, (int32_t)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (int32_t)R_R8, (void*)R_R9);
     } else if (w == iFpiippp) {
         snprintf(buff, buffsz, "%04d|%p: Calling %s(%" PRIp ", %" PRIi32 ", %" PRIi32 ", %" PRIp ", %" PRIp ", %" PRIp ")", tid, *(void**)(R_RSP), func, (void*)R_RDI, (int32_t)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (void*)R_R8, (void*)R_R9);
+    } else if (w == iFpiIIIi) {
+        snprintf(buff, buffsz, "%04d|%p: Calling %s(%" PRIp ", %" PRIi32 ", %" PRIi64 ", %" PRIi64 ", %" PRIi64 ", %" PRIi32 ")", tid, *(void**)(R_RSP), func, (void*)R_RDI, (int32_t)R_RSI, (int64_t)R_RDX, (int64_t)R_RCX, (int64_t)R_R8, (int32_t)R_R9);
     } else if (w == iFpiCCpu) {
         snprintf(buff, buffsz, "%04d|%p: Calling %s(%" PRIp ", %" PRIi32 ", %" PRIu8 ", %" PRIu8 ", %" PRIp ", %" PRIu32 ")", tid, *(void**)(R_RSP), func, (void*)R_RDI, (int32_t)R_RSI, (uint8_t)R_RDX, (uint8_t)R_RCX, (void*)R_R8, (uint32_t)R_R9);
     } else if (w == iFpiuuup) {
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 4f0a0627..19169c13 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -2258,6 +2258,7 @@
 #() iFpiipii
 #() iFpiipip
 #() iFpiippp
+#() iFpiIIIi
 #() iFpiCCpu
 #() iFpiuuup
 #() iFpiuupp
diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c
index 22d031e4..b6caa74c 100644
--- a/src/wrapped/generated/wrapper.c
+++ b/src/wrapped/generated/wrapper.c
@@ -2286,6 +2286,7 @@ typedef int32_t (*iFpiipcc_t)(void*, int32_t, int32_t, void*, int8_t, int8_t);
 typedef int32_t (*iFpiipii_t)(void*, int32_t, int32_t, void*, int32_t, int32_t);
 typedef int32_t (*iFpiipip_t)(void*, int32_t, int32_t, void*, int32_t, void*);
 typedef int32_t (*iFpiippp_t)(void*, int32_t, int32_t, void*, void*, void*);
+typedef int32_t (*iFpiIIIi_t)(void*, int32_t, int64_t, int64_t, int64_t, int32_t);
 typedef int32_t (*iFpiCCpu_t)(void*, int32_t, uint8_t, uint8_t, void*, uint32_t);
 typedef int32_t (*iFpiuuup_t)(void*, int32_t, uint32_t, uint32_t, uint32_t, void*);
 typedef int32_t (*iFpiuupp_t)(void*, int32_t, uint32_t, uint32_t, void*, void*);
@@ -5808,6 +5809,7 @@ void iFpiipcc(x64emu_t *emu, uintptr_t fcn) { iFpiipcc_t fn = (iFpiipcc_t)fcn; R
 void iFpiipii(x64emu_t *emu, uintptr_t fcn) { iFpiipii_t fn = (iFpiipii_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (int32_t)R_R8, (int32_t)R_R9); }
 void iFpiipip(x64emu_t *emu, uintptr_t fcn) { iFpiipip_t fn = (iFpiipip_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (int32_t)R_R8, (void*)R_R9); }
 void iFpiippp(x64emu_t *emu, uintptr_t fcn) { iFpiippp_t fn = (iFpiippp_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (void*)R_R8, (void*)R_R9); }
+void iFpiIIIi(x64emu_t *emu, uintptr_t fcn) { iFpiIIIi_t fn = (iFpiIIIi_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI, (int64_t)R_RDX, (int64_t)R_RCX, (int64_t)R_R8, (int32_t)R_R9); }
 void iFpiCCpu(x64emu_t *emu, uintptr_t fcn) { iFpiCCpu_t fn = (iFpiCCpu_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI, (uint8_t)R_RDX, (uint8_t)R_RCX, (void*)R_R8, (uint32_t)R_R9); }
 void iFpiuuup(x64emu_t *emu, uintptr_t fcn) { iFpiuuup_t fn = (iFpiuuup_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI, (uint32_t)R_RDX, (uint32_t)R_RCX, (uint32_t)R_R8, (void*)R_R9); }
 void iFpiuupp(x64emu_t *emu, uintptr_t fcn) { iFpiuupp_t fn = (iFpiuupp_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI, (uint32_t)R_RDX, (uint32_t)R_RCX, (void*)R_R8, (void*)R_R9); }
@@ -8915,6 +8917,7 @@ int isSimpleWrapper(wrapper_t fun) {
 	if (fun == &iFpiipii) return 1;
 	if (fun == &iFpiipip) return 1;
 	if (fun == &iFpiippp) return 1;
+	if (fun == &iFpiIIIi) return 1;
 	if (fun == &iFpiCCpu) return 1;
 	if (fun == &iFpiuuup) return 1;
 	if (fun == &iFpiuupp) return 1;
@@ -10973,6 +10976,7 @@ int isSimpleWrapper(wrapper_t fun) {
 	if (fun == &iFpiipii) return 865;
 	if (fun == &iFpiipip) return 353;
 	if (fun == &iFpiippp) return 97;
+	if (fun == &iFpiIIIi) return 545;
 	if (fun == &iFpiCCpu) return 545;
 	if (fun == &iFpiuuup) return 481;
 	if (fun == &iFpiuupp) return 225;
diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h
index 40a48eba..a9b7cc0a 100644
--- a/src/wrapped/generated/wrapper.h
+++ b/src/wrapped/generated/wrapper.h
@@ -2295,6 +2295,7 @@ void iFpiipcc(x64emu_t *emu, uintptr_t fnc);
 void iFpiipii(x64emu_t *emu, uintptr_t fnc);
 void iFpiipip(x64emu_t *emu, uintptr_t fnc);
 void iFpiippp(x64emu_t *emu, uintptr_t fnc);
+void iFpiIIIi(x64emu_t *emu, uintptr_t fnc);
 void iFpiCCpu(x64emu_t *emu, uintptr_t fnc);
 void iFpiuuup(x64emu_t *emu, uintptr_t fnc);
 void iFpiuupp(x64emu_t *emu, uintptr_t fnc);
diff --git a/src/wrapped/wrappedlibavcodec58_private.h b/src/wrapped/wrappedlibavcodec58_private.h
index 4f3bb7f0..7a504c3a 100644
--- a/src/wrapped/wrappedlibavcodec58_private.h
+++ b/src/wrapped/wrappedlibavcodec58_private.h
@@ -42,7 +42,7 @@ GO(avcodec_descriptor_next, pFp)
 DATA(av_codec_ffversion, 8) // Warning: failed to confirm
 GO(avcodec_fill_audio_frame, iFpiipii)
 GO(avcodec_find_best_pix_fmt_of_list, iFpiip)
-//GOM(avcodec_find_decoder, pFEu)
+GO(avcodec_find_decoder, pFu)
 //GOM(avcodec_find_decoder_by_name, pFEp)
 //GOM(avcodec_find_encoder, pFEu)
 //GOM(avcodec_find_encoder_by_name, pFEp)
diff --git a/src/wrapped/wrappedlibavformat58_private.h b/src/wrapped/wrappedlibavformat58_private.h
index 54c6d9fb..84ebfbd1 100644
--- a/src/wrapped/wrappedlibavformat58_private.h
+++ b/src/wrapped/wrappedlibavformat58_private.h
@@ -43,7 +43,7 @@ GO(avformat_network_init, iFv)
 GO(avformat_open_input, iFpppp) // many strucure might need wrapping here
 //GOM(avformat_query_codec, iFEpui)
 //GOM(avformat_queue_attached_pictures, iFEp)
-//GOM(avformat_seek_file, iFEpiIIIi)
+GO(avformat_seek_file, iFpiIIIi)
 //GOM(avformat_stream_group_add_stream, iFEpp)
 //GOM(avformat_stream_group_create, pFEpup)
 GO(avformat_stream_group_name, pFu)
@@ -81,7 +81,7 @@ GO(avio_free_directory_entry, vFp)
 //GOM(avio_get_str16be, iFEpipi)
 //GOM(avio_get_str16le, iFEpipi)
 //GOM(avio_handshake, iFEp)
-//GOM(avio_open, iFEppi)
+GO(avio_open, iFppi)
 //GOM(avio_open2, iFEppipp)
 GO(avio_open_dir, iFppp)
 //GOM(avio_open_dyn_buf, iFEp)