forums.PPSSPP.org
JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Development (/forumdisplay.php?fid=3)
+--- Thread: JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 (/showthread.php?tid=1428)



JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - sum2012 - 03-08-2013 03:06 PM

public int sceMpegAvcConvertToYuv420(int mpeg, TPointer bufferOutput, TPointer unknown1, int unknown2) {
return 0;
}
Use WrapV_IUUUU ?


RE: JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - [Unknown] - 03-08-2013 03:31 PM

Well, we use u32 for the mpeg param, so it would be WrapI_UUUI, I guess.

-[Unknown]


RE: JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - sum2012 - 03-08-2013 03:46 PM

Thanks


RE: JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - sum2012 - 03-09-2013 11:55 PM

int sceMpegAvcConvertToYuv420(u32 mpeg, u32 bufferOutput, u32 unknown1, int unknown2)
{
ERROR_LOG(HLE, "UNIMPL sceMpegAvcConvertToYuv420(%08x, %08x, %08x, %08x)", mpeg, bufferOutput, unknown1, unknown2);
return 0;
}

{0xF5E7EA31,WrapI_UUUI<sceMpegAvcConvertToYuv420>,"sceMpegAvcConvertToYuv420"},

VS2012 said "> HLE \ sceMpeg.cpp (1737): error C2973: 'WrapI_UUUI': invalid template argument 'int (__cdecl *) (u32, u32, u32, int)'

Please help


RE: JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - [Unknown] - 03-10-2013 03:00 AM

Template is wrong, it has:

template<int func(int, u32, u32, u32, int)> void WrapI_UUUI() {

It should not have the extra int (first arg.)

-[Unknown]


RE: JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - sum2012 - 03-10-2013 05:31 AM

I remove extra int (first arg.) in template but still fail

e: \ project \ ppsspp \ core \ hle \ FunctionWrappers.h (151): error C2197: 'int (__cdecl * const) (u32, u32, u32, int)': too many arguments call


RE: JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - [Unknown] - 03-10-2013 05:48 AM

Now you need to change the insides of the template to also not use that first arg (or last arg, really.)

-[Unknown]


RE: JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420 - sum2012 - 03-10-2013 06:18 AM

Thanks.