Commit Graph

67 Commits

Author SHA1 Message Date
Henrik Rydgård 4e25f44eef Rename some module-related functions to include HLE where appropriate 2025-03-31 11:17:50 +02:00
Henrik Rydgård 0f840e6240 Move JPEG error codes to the big enum, some include cleanup 2025-03-21 20:44:46 +01:00
Henrik Rydgård 01d96fd949 Linux warning fixes 2025-03-05 17:02:46 +01:00
Henrik Rydgård 28b2c7f540 HLE log rename part 1: Remove duplicate log functions. Return type should be determined by metadata. 2025-01-29 09:45:39 +01:00
Henrik Rydgård 2523690584 Flip around so sceDelayResult is always outermost. Start using HLECall. 2025-01-20 12:20:18 +01:00
Henrik Rydgård e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Unknown W. Brackets 55d5dc3834 GPU: Rename readback and buffer write operations.
Avoid download/upload and pack, which don't have clear directions.
2022-10-09 13:49:41 -07:00
Unknown W. Brackets 33993b8574 Jpeg: Cleanup debug dump file access. 2022-10-08 20:31:39 -07:00
Unknown W. Brackets 9c026927bd Jpeg: Encode and decode YCbCr as 2x2.
Verified this is what's output from a PSP's DecodeMJpegYCbCr, and games
directly use its output in MJpegCsc - so change to match.

This makes the colors in Gods Eater Burst character portraits look better.
2022-10-08 20:24:54 -07:00
Unknown W. Brackets 1c18d9b49b Jpeg: Correct some logging of return types. 2022-10-08 18:12:37 -07:00
Unknown W. Brackets af28a3d497 Jpeg: Correct colorspace conversion funcs.
For non-mjpeg, the height and width are halved, and more sampling modes
are supported.  This also checks for invalid pointers and notifies the
debugger.

The exact YCbCr->RGBA conversion is not accurate, but it writes in the
correct places now.  MJpeg is still a bit off.
2022-10-08 12:20:41 -07:00
Unknown W. Brackets 159d4ed4a3 Jpeg: Decode buffers using configured stride.
Previously, it was assumed that the stride was the nearest power of two,
but it's actually the Create width.
2022-10-08 12:20:41 -07:00
Unknown W. Brackets dc18b6cf80 Jpeg: Improve error handling for YCbCr decode.
This also fixes a crash on invalid output pointer.
2022-10-08 12:20:41 -07:00
Unknown W. Brackets 95d40cc09f Jpeg: Retain previous width/height.
Seems to be reused even after Delete, strangely.
2022-10-08 12:20:41 -07:00
Unknown W. Brackets bcee6c0310 Jpeg: Improve timing/errors for GetOutputInfo. 2022-10-07 23:22:54 -07:00
Unknown W. Brackets 7f87cd077a Jpeg: Play it safe with load/unload handling. 2022-10-07 00:24:19 -07:00
Unknown W. Brackets 0931b343c2 Jpeg: Validate CreateMJpeg() parameters. 2022-10-07 00:16:30 -07:00
Unknown W. Brackets 62fe178608 Jpeg: Cleanup Init/Finish error checks. 2022-10-06 22:45:18 -07:00
Henrik Rydgård e6403d7157 Split GetPointer into two versions, to help with const correctness 2022-07-24 13:26:19 +02: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
aliaspider 9a3e5879bb Global: Correct many endian types and casts. 2021-02-18 22:25:24 -08:00
Henrik Rydgård 9e41fafd0d Move math and some file and data conversion files out from native to Common.
Buildfixing

Move some file util files

Buildfix

Move KeyMap.cpp/h to Core where they belong better.

libretro buildfix attempt

Move ini_file

More buildfixes
2020-10-04 09:12:46 +02:00
Unknown W. Brackets b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets 4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
Henrik Rydgård a17fe334a1 MJPEG in sceJpeg: Notify the framebuffer manager that there's been a picture written to memory. Fixes part of #8521 2019-08-26 18:26:52 +02:00
Henrik Rydgård 402b6b2457 Improve some logging (%08x for addresses) 2019-08-26 18:26:52 +02:00
LunaMoo f10c9dfd8c Initialize pspWidth and increase the max size. 2017-06-01 16:52:36 +02:00
LunaMoo 7cee37c4e8 Needs to be square! O.o 2017-06-01 13:46:33 +02:00
LunaMoo 17d8eb19c5 Fix jpeg's with width not matching psp buffer size. 2017-06-01 13:31:25 +02:00
LunaMoo 0cdd55f450 Implement sceJpegDecodeMJpeg & sceJpegDecodeMJpegSuccessively 2017-05-31 18:46:19 +02:00
Unknown W. Brackets e0f85a9c6b Native merge part 1: skip native/ in includes. 2015-09-06 12:19:33 -07:00
Unknown W. Brackets fcf0518223 Update all the HLE tables with arg and ret info. 2015-03-22 20:51:55 -07:00
Henrik Rydgard 240ebcb085 Fix memory leaks in sceJpeg 2014-12-31 15:34:50 +01:00
Lioncash 4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
Unknown W. Brackets 05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
Henrik Rydgard 006d28161d Restore some log levels of actually unimpl functions 2014-02-10 09:55:18 +01:00
raven02 64e36bbf10 Change log level to DEBUG_LOG 2014-02-10 11:29:43 +08:00
raven02 5557571c86 sceJpeg(): code cleanup and some additions 2014-02-09 00:09:25 +08:00
sum2012 a2521ad01f Fix MHP3 Chinese version crash in scempeg and scejpeg 2014-02-04 08:00:29 +08:00
Henrik Rydgård 79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Unknown W. Brackets 21c617a7be Correct some syscall names. 2013-12-02 23:40:16 -08:00
Henrik Rydgård ba0b9707ad Merge pull request #4218 from shenweip/Log
Change some log level.
2013-11-01 10:56:55 -07:00
Sacha ecfe43c149 CityHash is not used anymore, so we won't compile it. 2013-10-28 03:26:00 +10:00
shenweip e7601b4399 Change some log level. 2013-10-17 11:57:55 +08:00
shenweip 4ac4ea38dd Rename __JpegDecodeMJpegYCbCr to __JpegConvertRGBToYCbCr. 2013-10-05 08:40:55 +08:00
shenweip 54492732b5 Rename u24 to u24_be. 2013-10-05 02:52:33 +08:00
shenweip d8f1ddd6fa Implemented sceJpegMJpegCsc. 2013-10-05 01:18:13 +08:00
shenweip a7f7d64f31 More work in sceJpegDecodeMJpegYCbCr. 2013-10-05 01:04:41 +08:00
shenweip b1f81999fa Fix someting wrong. 2013-10-05 00:04:51 +08:00
The Dax 1788a56964 Fix Visual Studio 2013 build. 2013-09-18 12:02:49 -04:00