Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMPL Some Mpeg and Handle ringbufferAddr =0 in sceMpegCreate #867

Merged
merged 5 commits into from
Mar 5, 2013
Merged

IMPL Some Mpeg and Handle ringbufferAddr =0 in sceMpegCreate #867

merged 5 commits into from
Mar 5, 2013

Conversation

sum2012
Copy link
Collaborator

@sum2012 sum2012 commented Mar 5, 2013

ref #508
please help to check whether I IMPL correctly

ref #508
please help to check whether I IMPL correctly

u32 sceMpegAvcResourceFinish(u32 mpeg)
{
return 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to add a log above here.

-[Unknown]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this ?
INFO_LOG(HLE,"sceMpegAvcResourceFinish(%08x)", mpeg);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, or even just DEBUG, just so we know it's getting called when we're trying to see what's going on.

-[Unknown]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok.Will add

@unknownbrackets
Copy link
Collaborator

Well, they need to be properly implemented probably, but not many games call them. If this makes that game get farther, then I think it's good enough for now until we figure them out more. Aside from some inconsistent tabs it looks okay.

-[Unknown]

@sum2012
Copy link
Collaborator Author

sum2012 commented Mar 5, 2013

Still need 1 more fix to make that game run further (mpeg bug).Do I need merge this first ?

@unknownbrackets
Copy link
Collaborator

What's the other fix? Well, if this is helping I think it's not bad to merge it. But if it still doesn't seem improved in any way and we don't have any tests, might be better to try to figure out what's wrong still first...

-[Unknown]

@sum2012
Copy link
Collaborator Author

sum2012 commented Mar 5, 2013

I haved tested ringbufferAddr =0 in sceMpegCreate make game crash.
Change that source can in game now.

@unknownbrackets
Copy link
Collaborator

Ah, interesting. I guess the resource functions mean it doesn't use a ringbuffer?

Cool, so it gets farther now with those changes?

-[Unknown]

@sum2012
Copy link
Collaborator Author

sum2012 commented Mar 5, 2013

Then full of UNIMPL _sceAtracGetContextAddress<0>
1

@@ -77,6 +77,7 @@
static const int NUM_ES_BUFFERS = 2;

static const int PSP_ERROR_MPEG_NO_DATA = 0x80618001;
static const int PSP_ERROR_MPEG_INVALID_VALUE = 0x806101fe;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are those two const ints really needed? Identical values are defined in enum in sceMpeg.h.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.I have removed

@sum2012
Copy link
Collaborator Author

sum2012 commented Mar 5, 2013

@hrydgard I am ready merge when you don't find any probrem.

@hrydgard
Copy link
Owner

hrydgard commented Mar 5, 2013

Alright for now, but your return value for sceMpegAvcResourceGetAvcDecTopAddr could have some bad effects if unlucky...

hrydgard added a commit that referenced this pull request Mar 5, 2013
IMPL Some Mpeg and Handle ringbufferAddr =0 in sceMpegCreate
@hrydgard hrydgard merged commit aca4740 into hrydgard:master Mar 5, 2013
@sum2012
Copy link
Collaborator Author

sum2012 commented Mar 5, 2013

@hrydgard
JPCSP use this value.
If other platform have any probrem,feel free to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants