2013-04-28 00:25:05 +00:00
|
|
|
// Copyright (c) 2012- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
2013-05-20 00:54:14 +00:00
|
|
|
#include "Core/HLE/HLE.h"
|
2014-03-15 18:22:19 +00:00
|
|
|
#include "Core/HLE/FunctionWrappers.h"
|
2013-05-20 00:54:14 +00:00
|
|
|
#include "Core/Reporting.h"
|
2014-04-04 14:46:19 +00:00
|
|
|
#include "Core/HLE/sceMp4.h"
|
2014-04-10 10:45:59 +00:00
|
|
|
#include "Core/HW/SimpleAudioDec.h"
|
2013-04-28 00:25:05 +00:00
|
|
|
|
|
|
|
|
2014-04-10 10:45:59 +00:00
|
|
|
struct AACCtx{
|
|
|
|
// source informations
|
|
|
|
u64 startPos;
|
|
|
|
u64 endPos;
|
|
|
|
u32 AACBuf;
|
|
|
|
u32 AACBufSize;
|
|
|
|
u32 PCMBuf;
|
|
|
|
u32 PCMBufSize;
|
|
|
|
int freq;
|
|
|
|
|
|
|
|
// audio settings
|
|
|
|
u32 SumDecodedSamples;
|
|
|
|
int LoopNum;
|
|
|
|
int Channels;
|
|
|
|
|
|
|
|
// aac decoder
|
|
|
|
SimpleAudio *decoder;
|
|
|
|
|
|
|
|
// buffers informations
|
|
|
|
int aacBufAvailable; // the available buffer of AACBuf to be able to recharge data
|
|
|
|
};
|
|
|
|
|
|
|
|
static std::map<u32, AACCtx*> aacMap;
|
|
|
|
|
2013-04-28 00:25:05 +00:00
|
|
|
u32 sceMp4Init()
|
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
// nothing to do here
|
|
|
|
INFO_LOG(ME, "sceMp4Init()");
|
2014-01-27 15:35:47 +00:00
|
|
|
return 0;
|
2013-04-28 00:25:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4Finish()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4Finish()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4Create()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG_REPORT(ME, "UNIMPL sceMp4Create()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4GetNumberOfSpecificTrack()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4GetNumberOfSpecificTrack()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4GetMovieInfo()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4GetMovieInfo()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4CreatesceMp4GetNumberOfMetaData()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4GetNumberOfMetaData()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4Delete()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4Delete()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4AacDecodeInitResource()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4AacDecodeInitResource()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4GetAvcTrackInfoData()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4GetAvcTrackInfoData()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4TrackSampleBufConstruct()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4TrackSampleBufConstruct()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4TrackSampleBufQueryMemSize()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4TrackSampleBufQueryMemSize()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4GetSampleInfo()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4GetSampleInfo()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4GetSampleNumWithTimeStamp()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4GetSampleNumWithTimeStamp()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4TrackSampleBufFlush()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4TrackSampleBufFlush()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4AacDecodeInit()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4AacDecodeInit()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4GetAacTrackInfoData()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4GetAacTrackInfoData()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4GetNumberOfMetaData()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4GetNumberOfMetaData()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4RegistTrack()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4RegistTrack()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceMp4SearchSyncSampleNum()
|
|
|
|
{
|
2013-09-07 20:02:55 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceMp4SearchSyncSampleNum()");
|
2013-04-28 00:25:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-10 10:45:59 +00:00
|
|
|
|
|
|
|
u32 sceAacInit(u32 id, u32 unknown1, u32 unknown2, u32 unknown3)
|
2014-04-04 14:46:19 +00:00
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
ERROR_LOG_REPORT(ME, "UNIMPL sceAacInit(id %08x, unknown1 %08x, unknown2 %08x, unknown3 %08x)", id, unknown1, unknown2, unknown3);
|
|
|
|
if (!Memory::IsValidAddress(id)){
|
|
|
|
ERROR_LOG(ME, "sceAacInit() AAC Invalid id address %08x", id);
|
2014-04-04 14:46:19 +00:00
|
|
|
return ERROR_AAC_INVALID_ADDRESS;
|
2014-04-08 14:01:26 +00:00
|
|
|
}
|
2014-04-10 10:45:59 +00:00
|
|
|
AACCtx *aac = new AACCtx;
|
|
|
|
aac->startPos = Memory::Read_U64(id); // Audio stream start position.
|
|
|
|
aac->endPos = Memory::Read_U32(id + 8); // Audio stream end position.
|
|
|
|
aac->AACBuf = Memory::Read_U32(id + 16); // Input AAC data buffer.
|
|
|
|
aac->AACBufSize = Memory::Read_U32(id + 20); // Input AAC data buffer size.
|
|
|
|
aac->PCMBuf = Memory::Read_U32(id + 24); // Output PCM data buffer.
|
|
|
|
aac->PCMBufSize = Memory::Read_U32(id + 28); // Output PCM data buffer size.
|
|
|
|
aac->freq = Memory::Read_U32(id + 32); // Frequency.
|
|
|
|
if (aac->AACBuf == 0 || aac->PCMBuf == 0) {
|
|
|
|
ERROR_LOG(ME, "sceAacInit() AAC INVALID ADDRESS %08x", aac->AACBuf);
|
|
|
|
delete aac;
|
2014-04-04 14:46:19 +00:00
|
|
|
return ERROR_AAC_INVALID_ADDRESS;
|
|
|
|
}
|
2014-04-10 10:45:59 +00:00
|
|
|
if (aac->startPos < 0 || aac->startPos > aac->endPos) {
|
|
|
|
ERROR_LOG(ME, "sceAacInit() AAC INVALID startPos %i", aac->startPos);
|
|
|
|
delete aac;
|
2014-04-04 14:46:19 +00:00
|
|
|
return ERROR_AAC_INVALID_PARAMETER;
|
|
|
|
}
|
2014-04-10 10:45:59 +00:00
|
|
|
if (aac->AACBufSize < 8192 || aac->PCMBufSize < 8192) {
|
|
|
|
ERROR_LOG(ME, "sceAacInit() AAC INVALID PARAMETER, bufferSize %i outputSize %i reserved %i", aac->AACBufSize, aac->PCMBufSize);
|
|
|
|
delete aac;
|
2014-04-04 14:46:19 +00:00
|
|
|
return ERROR_AAC_INVALID_PARAMETER;
|
|
|
|
}
|
2014-04-10 10:45:59 +00:00
|
|
|
if (aac->freq != 44100 && aac->freq != 32000 && aac->freq != 48000 && aac->freq != 24000) {
|
|
|
|
ERROR_LOG(ME, "sceAacInit() AAC INVALID freq %i", aac->freq);
|
|
|
|
delete aac;
|
2014-04-04 14:46:19 +00:00
|
|
|
return ERROR_AAC_INVALID_PARAMETER;
|
|
|
|
}
|
|
|
|
|
2014-04-08 12:52:05 +00:00
|
|
|
//To Do
|
2014-04-10 10:45:59 +00:00
|
|
|
WARN_LOG(ME, "startPos %x endPos %x AACbuf %08x AACbufSize %08x PCMbuf %08x PCMbufSize %08x freq %d",
|
|
|
|
aac->startPos, aac->endPos, aac->AACBuf, aac->AACBufSize, aac->PCMBuf, aac->PCMBufSize, aac->freq);
|
2014-04-04 14:46:19 +00:00
|
|
|
|
2014-04-10 10:45:59 +00:00
|
|
|
aac->Channels = 2;
|
|
|
|
aac->SumDecodedSamples = 0;
|
|
|
|
aac->LoopNum = 0;
|
|
|
|
aac->aacBufAvailable = 0;
|
|
|
|
|
|
|
|
// create aac decoder
|
|
|
|
aac->decoder = new SimpleAudio(PSP_CODEC_AAC);
|
|
|
|
|
|
|
|
if (aacMap.find(id) != aacMap.end()) {
|
|
|
|
delete aacMap[id];
|
|
|
|
}
|
|
|
|
aacMap[id] = aac;
|
|
|
|
|
|
|
|
return id;
|
2014-01-27 13:02:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceAacExit()
|
|
|
|
{
|
|
|
|
ERROR_LOG(ME, "UNIMPL sceAacExit()");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-04 14:56:06 +00:00
|
|
|
u32 sceAacInitResource(u32 numberIds)
|
2014-01-27 13:02:15 +00:00
|
|
|
{
|
2014-04-04 14:56:06 +00:00
|
|
|
ERROR_LOG_REPORT(ME, "UNIMPL sceAacInitResource(%i)", numberIds);
|
2014-01-27 13:02:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceAacTermResource()
|
|
|
|
{
|
|
|
|
ERROR_LOG(ME, "UNIMPL sceAacTermResource()");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-04 14:46:19 +00:00
|
|
|
u32 sceAacDecode(u32 id, u32 bufferAddress)
|
2014-01-27 13:02:15 +00:00
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
DEBUG_LOG(ME, "sceAacDecode(id %i, bufferAddress %08x)", id, bufferAddress);
|
|
|
|
auto ctx = aacMap[id];
|
|
|
|
if (!ctx) {
|
|
|
|
ERROR_LOG(ME, "%s: bad aac id %08x", __FUNCTION__, id);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
if (!Memory::IsValidAddress(bufferAddress)){
|
|
|
|
ERROR_LOG(ME, "%s: output bufferAddress %08x is invalid", __FUNCTION__, bufferAddress);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
auto outbuf = Memory::GetPointer(bufferAddress);
|
|
|
|
int outbufsize;
|
|
|
|
ctx->decoder->Decode((void*)ctx->AACBuf, ctx->AACBufSize, outbuf, &outbufsize);
|
|
|
|
|
2014-01-27 13:02:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-10 10:45:59 +00:00
|
|
|
u32 sceAacGetLoopNum(u32 id)
|
2014-01-27 13:02:15 +00:00
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
DEBUG_LOG(ME, "sceAacGetLoopNum(id %i)", id);
|
|
|
|
auto ctx = aacMap[id];
|
|
|
|
if (!ctx) {
|
|
|
|
ERROR_LOG(ME, "%s: bad aac id %08x", __FUNCTION__, id);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
return ctx->LoopNum;
|
2014-01-27 13:02:15 +00:00
|
|
|
}
|
|
|
|
|
2014-04-10 10:45:59 +00:00
|
|
|
u32 sceAacSetLoopNum(u32 id, int loop)
|
2014-01-27 13:02:15 +00:00
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
DEBUG_LOG(ME, "sceAacSetLoopNum(id %i,loop %d)", id,loop);
|
|
|
|
auto ctx = aacMap[id];
|
|
|
|
if (!ctx) {
|
|
|
|
ERROR_LOG(ME, "%s: bad aac id %08x", __FUNCTION__, id);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
ctx->LoopNum = loop;
|
2014-01-27 13:02:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-10 10:45:59 +00:00
|
|
|
int sceAacCheckStreamDataNeeded(u32 id)
|
2014-01-27 13:02:15 +00:00
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
// return 1 to read more data stream, 0 don't read, <0 error
|
|
|
|
INFO_LOG(ME, "sceAacCheckStreamDataNeeded(%i)", id);
|
|
|
|
|
|
|
|
auto ctx = aacMap[id];
|
|
|
|
if (!ctx) {
|
|
|
|
ERROR_LOG(ME, "%s: bad aac id %08x", __FUNCTION__, id);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// if we still have available aac buffer, then read
|
|
|
|
if (ctx->aacBufAvailable != ctx->AACBufSize){
|
|
|
|
return 1;
|
|
|
|
}
|
2014-01-27 13:02:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-10 10:45:59 +00:00
|
|
|
u32 sceAacNotifyAddStreamData(u32 id, int size)
|
2014-01-27 13:02:15 +00:00
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
INFO_LOG(ME, "sceAacNotifyAddStreamData(%i, %08x)", id, size);
|
|
|
|
|
|
|
|
auto ctx = aacMap[id];
|
|
|
|
if (!ctx) {
|
|
|
|
ERROR_LOG(ME, "%s: bad aac id %08x", __FUNCTION__, id);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
|
2014-01-27 13:02:15 +00:00
|
|
|
ERROR_LOG(ME, "UNIMPL sceAacNotifyAddStreamData()");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-10 10:45:59 +00:00
|
|
|
u32 sceAacGetInfoToAddStreamData(u32 id, u32 buff, u32 size, u32 srcPos)
|
2014-01-27 13:02:15 +00:00
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
// read from stream position srcPos of size bytes into buff
|
|
|
|
INFO_LOG(ME, "sceAacGetInfoToAddStreamData(%08X, %08X, %08X, %08X)", id, buff, size, srcPos);
|
|
|
|
|
|
|
|
auto ctx = aacMap[id];
|
|
|
|
if (!ctx) {
|
|
|
|
ERROR_LOG(ME, "%s: bad aac handle %08x", __FUNCTION__, id);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* u32 buf, max_write;
|
|
|
|
if (ctx->readPosition < ctx->mp3StreamEnd) {
|
|
|
|
buf = ctx->mp3Buf + ctx->bufferWrite;
|
|
|
|
max_write = std::min(ctx->mp3BufSize - ctx->bufferWrite, ctx->mp3BufSize - ctx->bufferAvailable);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
buf = 0;
|
|
|
|
max_write = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Memory::IsValidAddress(buff))
|
|
|
|
Memory::Write_U32(buf, buff);
|
|
|
|
if (Memory::IsValidAddress(size))
|
|
|
|
Memory::Write_U32(max_write, size);
|
|
|
|
if (Memory::IsValidAddress(srcPos))
|
|
|
|
Memory::Write_U32(ctx->readPosition, srcPos);
|
|
|
|
*/
|
2014-01-27 13:02:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceAacGetMaxOutputSample()
|
|
|
|
{
|
2014-01-27 15:35:47 +00:00
|
|
|
ERROR_LOG_REPORT(ME, "UNIMPL sceAacGetMaxOutputSample()");
|
2014-01-27 13:02:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-04 14:46:19 +00:00
|
|
|
u32 sceAacGetSumDecodedSample(u32 id)
|
2014-01-27 13:02:15 +00:00
|
|
|
{
|
2014-04-10 10:45:59 +00:00
|
|
|
DEBUG_LOG(ME, "sceAacGetSumDecodedSample(id %i)", id);
|
|
|
|
auto ctx = aacMap[id];
|
|
|
|
if (!ctx) {
|
|
|
|
ERROR_LOG(ME, "%s: bad aac id %08x", __FUNCTION__, id);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ctx->SumDecodedSamples;
|
2014-01-27 13:02:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 sceAacResetPlayPosition()
|
|
|
|
{
|
2014-01-27 15:35:47 +00:00
|
|
|
ERROR_LOG_REPORT(ME, "UNIMPL sceAacResetPlayPosition()");
|
2014-01-27 13:02:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2013-04-28 00:25:05 +00:00
|
|
|
const HLEFunction sceMp4[] =
|
|
|
|
{
|
|
|
|
{0x68651CBC, WrapU_V<sceMp4Init>, "sceMp4Init"},
|
|
|
|
{0x9042B257, WrapU_V<sceMp4Finish>, "sceMp4Finish"},
|
|
|
|
{0xB1221EE7, WrapU_V<sceMp4Create>, "sceMp4Create"},
|
|
|
|
{0x538C2057, WrapU_V<sceMp4Delete>, "sceMp4Delete"},
|
|
|
|
{0x113E9E7B, WrapU_V<sceMp4GetNumberOfMetaData>, "sceMp4GetNumberOfMetaData"},
|
|
|
|
{0x7443AF1D, WrapU_V<sceMp4GetMovieInfo>, "sceMp4GetMovieInfo"},
|
|
|
|
{0x5EB65F26, WrapU_V<sceMp4GetNumberOfSpecificTrack>, "sceMp4GetNumberOfSpecificTrack"},
|
|
|
|
{0x7ADFD01C, WrapU_V<sceMp4RegistTrack>, "sceMp4RegistTrack"},
|
|
|
|
{0xBCA9389C, WrapU_V<sceMp4TrackSampleBufQueryMemSize>, "sceMp4TrackSampleBufQueryMemSize"},
|
|
|
|
{0x9C8F4FC1, WrapU_V<sceMp4TrackSampleBufConstruct>, "sceMp4TrackSampleBufConstruct"},
|
|
|
|
{0x0F0187D2, WrapU_V<sceMp4GetAvcTrackInfoData>, "sceMp4GetAvcTrackInfoData"},
|
|
|
|
{0x9CE6F5CF, WrapU_V<sceMp4GetAacTrackInfoData>, "sceMp4GetAacTrackInfoData"},
|
|
|
|
{0x4ED4AB1E, WrapU_V<sceMp4AacDecodeInitResource>, "sceMp4AacDecodeInitResource"},
|
|
|
|
{0x10EE0D2C, WrapU_V<sceMp4AacDecodeInit>, "sceMp4AacDecodeInit"},
|
|
|
|
{0x496E8A65, WrapU_V<sceMp4TrackSampleBufFlush>, "sceMp4TrackSampleBufFlush"},
|
|
|
|
{0xB4B400D1, WrapU_V<sceMp4GetSampleNumWithTimeStamp>, "sceMp4GetSampleNumWithTimeStamp"},
|
|
|
|
{0xF7C51EC1, WrapU_V<sceMp4GetSampleInfo>, "sceMp4GetSampleInfo"},
|
|
|
|
{0x74A1CA3E, WrapU_V<sceMp4SearchSyncSampleNum>, "sceMp4SearchSyncSampleNum"},
|
|
|
|
{0xD8250B75, 0, "sceMp4PutSampleNum"},
|
|
|
|
{0x8754ECB8, 0, "sceMp4TrackSampleBufAvailableSize"},
|
|
|
|
{0x31BCD7E0, 0, "sceMp4TrackSampleBufPut"},
|
|
|
|
{0x5601A6F0, 0, "sceMp4GetAacAu"},
|
|
|
|
{0x7663CB5C, 0, "sceMp4AacDecode"},
|
|
|
|
{0x503A3CBA, 0, "sceMp4GetAvcAu"},
|
|
|
|
{0x01C76489, 0, "sceMp4TrackSampleBufDestruct"},
|
|
|
|
{0x6710FE77, 0, "sceMp4UnregistTrack"},
|
|
|
|
{0x5D72B333, 0, "sceMp4AacDecodeExit"},
|
|
|
|
{0x7D332394, 0, "sceMp4AacDecodeTermResource"},
|
|
|
|
{0x131BDE57, 0, "sceMp4InitAu"},
|
|
|
|
{0x17EAA97D, 0, "sceMp4GetAvcAuWithoutSampleBuf"},
|
|
|
|
{0x28CCB940, 0, "sceMp4GetTrackEditList"},
|
|
|
|
{0x3069C2B5, 0, "sceMp4GetAvcParamSet"},
|
|
|
|
{0xD2AC9A7E, 0, "sceMp4GetMetaData"},
|
|
|
|
{0x4FB5B756, 0, "sceMp4GetMetaDataInfo"},
|
|
|
|
{0x427BEF7F, 0, "sceMp4GetTrackNumOfEditList"},
|
|
|
|
{0x532029B8, 0, "sceMp4GetAacAuWithoutSampleBuf"},
|
|
|
|
{0xA6C724DC, 0, "sceMp4GetSampleNum"},
|
|
|
|
{0x3C2183C7, 0, "mp4msv_3C2183C7"},
|
|
|
|
{0x9CA13D1A, 0, "mp4msv_9CA13D1A"},
|
|
|
|
};
|
|
|
|
|
2013-09-22 22:27:52 +00:00
|
|
|
// 395
|
|
|
|
const HLEFunction sceAac[] = {
|
2014-04-04 14:46:19 +00:00
|
|
|
{0xE0C89ACA, WrapU_UUUU<sceAacInit>, "sceAacInit"},
|
2014-01-27 13:02:15 +00:00
|
|
|
{0x33B8C009, WrapU_V<sceAacExit>, "sceAacExit"},
|
2014-04-04 14:56:06 +00:00
|
|
|
{0x5CFFC57C, WrapU_U<sceAacInitResource>, "sceAacInitResource"},
|
2014-01-27 13:02:15 +00:00
|
|
|
{0x23D35CAE, WrapU_V<sceAacTermResource>, "sceAacTermResource"},
|
2014-04-04 14:46:19 +00:00
|
|
|
{0x7E4CFEE4, WrapU_UU<sceAacDecode>, "sceAacDecode"},
|
2014-04-10 10:45:59 +00:00
|
|
|
{0x523347D9, WrapU_U<sceAacGetLoopNum>, "sceAacGetLoopNum"},
|
|
|
|
{0xBBDD6403, WrapU_UI<sceAacSetLoopNum>, "sceAacSetLoopNum"},
|
|
|
|
{0xD7C51541, WrapI_U<sceAacCheckStreamDataNeeded>, "sceAacCheckStreamDataNeeded"},
|
|
|
|
{0xAC6DCBE3, WrapU_UI<sceAacNotifyAddStreamData>, "sceAacNotifyAddStreamData"},
|
|
|
|
{0x02098C69, WrapU_UUUU<sceAacGetInfoToAddStreamData>, "sceAacGetInfoToAddStreamData"},
|
2014-01-27 13:02:15 +00:00
|
|
|
{0x6DC7758A, WrapU_V<sceAacGetMaxOutputSample>, "sceAacGetMaxOutputSample"},
|
2014-04-04 14:46:19 +00:00
|
|
|
{0x506BF66C, WrapU_U<sceAacGetSumDecodedSample>, "sceAacGetSumDecodedSample"},
|
2014-01-27 13:02:15 +00:00
|
|
|
{0xD2DA2BBA, WrapU_V<sceAacResetPlayPosition>, "sceAacResetPlayPosition"},
|
2013-09-22 22:27:52 +00:00
|
|
|
};
|
|
|
|
|
2013-04-28 00:25:05 +00:00
|
|
|
void Register_sceMp4()
|
|
|
|
{
|
|
|
|
RegisterModule("sceMp4", ARRAY_SIZE(sceMp4), sceMp4);
|
2013-09-22 22:27:52 +00:00
|
|
|
RegisterModule("sceAac", ARRAY_SIZE(sceAac), sceAac);
|
2013-04-28 00:25:05 +00:00
|
|
|
}
|