Commit Graph

40 Commits

Author SHA1 Message Date
Unknown W. Brackets
62fe178608 Jpeg: Cleanup Init/Finish error checks. 2022-10-06 22:45:18 -07:00
sum2012
d716b74480 Fix as @hrydgard suggest 2022-10-07 06:01:53 +08:00
sum2012
de6d747cf0 Store crc change to u32
Should build fixed
2022-10-05 20:36:01 +08:00
sum2012
bbe9c41098 Add crc record into mpeg module 2022-10-04 09:21:11 +08:00
Unknown W. Brackets
2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Henrik Rydgård
ecf62a03ad Naruto 3: Probably a better fix for the video hang issue.
Fixes #9591, replaces #11772
2019-02-10 11:42:53 +01:00
Henrik Rydgård
6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Unknown W. Brackets
558b4620e8 Mpeg: Parse video streams from PSMF header.
Without doing this, FFmpeg will try to probe the streams to detect them
instead.  When it does this, sometimes it tries to read beyond the data
that's available - and then gets confused by EOFs.

Parsing this way allows us to control the situation.

An example is Valkyrie Profile, corruption in the first frames of the
second video during the intro.  Thi doesn't fix it yet, but now it's just
a matter of buffering.
2016-07-24 15:58:06 -07:00
Unknown W. Brackets
41f2999a2b Mpeg: Write into the ringbuffer using actual ring.
This mimics behavior with clamped sizes and wrap around, and also makes it
easier to implement the garbage data handling the PSP has.
2016-06-04 18:16:21 -07:00
Unknown W. Brackets
67cbf2e904 Reverse packetsFree to packetsAvail.
This is the actual value stored in memory, which games may be accessing or
even writing to.

Makes the video/mpeg/ringbuffer/avail test pass.
2015-01-03 18:59:56 -08:00
kaienfr
04756b91e0 Do State PMP media, and some other updates to PMP media. 2014-04-04 23:01:25 +02:00
sum2012
9b054de4e5 Add scempegbase stuff
Find in homebrew game
2014-03-27 00:51:07 +08:00
Unknown W. Brackets
05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
Henrik Rydgard
c80510fb3b MemMap should not be included in MIPS.h. 2014-03-15 10:45:39 +01:00
Unknown W. Brackets
fc1ab072b3 Write the ringbuffer struct based on mpeg version.
This way it can easily match tests.
2014-03-02 01:31:30 -08:00
Unknown W. Brackets
cda1bc2772 Keep track of the loaded sceMpeg_library version.
They have variations in behavior.
2014-03-02 01:31:29 -08:00
raven02
8bef9c35e9 Code cleanup #1 2014-02-16 23:22:25 +08:00
Henrik Rydgard
bf43a3e1a1 Merge branch 'patch-15' of https://github.com/raven02/ppsspp into raven02-patch-15 2014-02-10 09:53:11 +01:00
raven02
5aeed7c6c4 Add ERROR_JPEG_INVALID_VALUE 2014-02-09 00:10:28 +08:00
raven02
25eb2d5664 Add ERROR_MPEG_AVC_INVALID_VALUE 2014-02-08 23:19:19 +08:00
raven02
0b4c7d3d1d Add ERROR_MPEG_AVC_DECODE_FATAL in sceMpeg.h 2014-02-01 23:53:48 +08:00
Henrik Rydgard
ef56298ab6 Revert "Merge pull request #5106 from shenweip/patch-1"
This reverts commit 91a355b642, reversing
changes made to 82395001ec.
2014-01-14 19:31:09 +01:00
shenweip
3773122316 Tell media engine to change channel when psmf specifi stream. 2014-01-15 00:17:00 +08:00
Unknown W. Brackets
079d770ce2 Revert the gp struct member in mpegs for now.
Unlikely to be used, even though seen in tests, and could be
causing #5045 (just a guess.)
2014-01-08 00:07:25 -08:00
Unknown W. Brackets
e16602641c Improve errors in sceMpegRingbufferConstruct().
And also make Destruct() not actually null out the ringbuffer, per tests.
2014-01-05 22:34:11 -08:00
Henrik Rydgård
00c32ddadb Mostly get rid of including "Globals.h" 2013-12-30 10:17:11 +01:00
Ced2911
e5166a5970 endian fro sceMpeg 2013-08-16 09:18:18 +02:00
Unknown W. Brackets
bfb05440e2 Specify memory layout in sceMpeg/scePsmf. 2013-07-27 15:53:30 -07:00
oioitff
32fb534375 Improve mpeg timestamp.
Read 6 bytes timestamp instead.
2013-06-10 04:21:36 +08:00
Henrik Rydgard
51daa1f878 Delete the "Use Media Engine" option. 2013-06-08 22:53:36 +02:00
Unknown W. Brackets
8b25545849 Don't allow sceMpegInit() twice. 2013-06-08 03:00:46 -07:00
oioitff
0b23e0389f Rewrite and implement sceMpeg with MediaEngine. 2013-06-02 01:29:59 +08:00
Jacky TSUI
95addc09b1 Separate sceMp3 from sceMpeg 2013-05-06 21:14:58 +08:00
Unknown W. Brackets
4974124587 Fix some small constant-comparison type warnings. 2013-04-05 20:58:35 -07:00
Unknown W. Brackets
2a6457b6ab Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
2013-02-04 08:26:59 -08:00
Unknown W. Brackets
39b91e906c Mpeg timestamps are in the wrong dword order. 2013-01-06 19:22:52 -08:00
Unknown W. Brackets
ac2768640a Add save stating changes to mediaengine.
Also makes it compile again.
2012-12-28 23:29:24 -08:00
Henrik Rydgard
8053c244b8 Implement large chunks of sceMpeg and scePsmf with JPSCP as a guide.
Not yet hooked up to FFMPEG and doesn't quite work yet.
2012-11-13 18:07:20 +01:00
Henrik Rydgard
64cc573703 Switch to "GPL 2.0 or later" for various reasons. I wrote most of the code I imported from Dolphin (which is GPL2-but-not-later), so it should be OK. 2012-11-04 23:24:00 +01:00
Henrik Rydgard
4f7ad15758 Add snapshot of the whole source code. 2012-11-01 16:19:01 +01:00