From e40c19a22a25340f50993eea8799c1077672e544 Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 28 Jan 2014 22:03:11 +0800 Subject: [PATCH] Add and wrap 3 new functions --- Core/HLE/sceMpeg.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index c9a0dd6372..bd981e2974 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -1666,6 +1666,45 @@ u32 sceMpegGetAvcEsAu(u32 mpeg) return 0; } +u32 sceMpegAvcCscInfo(u32 mpeg) +{ + MpegContext *ctx = getMpegCtx(mpeg); + if (!ctx) { + WARN_LOG(ME, "UNIMPL sceMpegAvcCscInfo(%08x): bad mpeg handle", mpeg); + return -1; + } + + ERROR_LOG_REPORT(ME, "UNIMPL sceMpegAvcCscInfo(%08x)", mpeg); + + return 0; +} + +u32 sceMpegAvcCscMode(u32 mpeg) +{ + MpegContext *ctx = getMpegCtx(mpeg); + if (!ctx) { + WARN_LOG(ME, "UNIMPL sceMpegAvcCscMode(%08x): bad mpeg handle", mpeg); + return -1; + } + + ERROR_LOG_REPORT(ME, "UNIMPL sceMpegAvcCscMode(%08x)", mpeg); + + return 0; +} + +u32 sceMpegFlushAu(u32 mpeg) +{ + MpegContext *ctx = getMpegCtx(mpeg); + if (!ctx) { + WARN_LOG(ME, "UNIMPL sceMpegFlushAu(%08x): bad mpeg handle", mpeg); + return -1; + } + + ERROR_LOG_REPORT(ME, "UNIMPL sceMpegFlushAu(%08x)", mpeg); + + return 0; +} + const HLEFunction sceMpeg[] = { {0xe1ce83a7,WrapI_UUUU,"sceMpegGetAtracAu"}, @@ -1719,6 +1758,9 @@ const HLEFunction sceMpeg[] = {0xab0e9556,WrapU_U,"sceMpegAvcDecodeDetailIndex"}, {0xcf3547a2,WrapU_U,"sceMpegAvcDecodeDetail2"}, {0x921fcccf,WrapU_U,"sceMpegGetAvcEsAu"}, + {0xE95838F6,WrapU_U,"sceMpegAvcCscInfo"}, + {0xD1CE4950,WrapU_U,"sceMpegAvcCscMode"}, + {0xDBB60658,WrapU_U,"sceMpegFlushAu"}, {0xd4dd6e75,0,"sceMpeg_D4DD6E75"}, {0x11cab459,0,"sceMpeg_11CAB459"}, {0xc345ded2,0,"sceMpeg_C345DED2"},