[PR #1607] [MERGED] libraries: Add initial HLE JPEG encoder skeleton #2195

Closed
opened 2026-02-27 21:15:32 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1607
Author: @squidbus
Created: 11/27/2024
Status: Merged
Merged: 11/30/2024
Merged by: @raphaelthegreat

Base: mainHead: jpeg_enc


📝 Commits (6)

  • 27159ad libraries: Add initial HLE JPEG encoder skeleton
  • 1d53916 jpegenc: Finish adding parameter validation.
  • d3128d3 updated enums , added logging
  • e87f17f jpegenc: Clean up parameter validations.
  • 1646382 jpegenc: Fix missing log.
  • 1d81dcb externals: Update ffmpeg-core

📊 Changes

9 files changed (+317 additions, -2 deletions)

View changed files

📝 CMakeLists.txt (+6 -0)
📝 externals/ffmpeg-core (+1 -1)
📝 src/common/alignment.h (+6 -0)
📝 src/common/logging/filter.cpp (+1 -0)
📝 src/common/logging/types.h (+1 -0)
src/core/libraries/jpeg/jpeg_error.h (+9 -0)
src/core/libraries/jpeg/jpegenc.cpp (+207 -0)
src/core/libraries/jpeg/jpegenc.h (+84 -0)
📝 src/emulator.cpp (+2 -1)

📄 Description

Adds the initial skeleton of HLE libSceJpegEnc. Functions except encode are fully implemented, encode has some of the validity checks but is otherwise stubbed.

Tested in CUSA06093 with the PV screenshot functionality. Obviously no actual JPEG is encoded but the encoder is set up correctly and passes the validation checks.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1607 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 11/27/2024 **Status:** ✅ Merged **Merged:** 11/30/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `jpeg_enc` --- ### 📝 Commits (6) - [`27159ad`](https://github.com/shadps4-emu/shadPS4/commit/27159adb6d5f3f3768d77f1189f18906989c3975) libraries: Add initial HLE JPEG encoder skeleton - [`1d53916`](https://github.com/shadps4-emu/shadPS4/commit/1d539166e7cf2e7e061e530fa4bb265544b806ad) jpegenc: Finish adding parameter validation. - [`d3128d3`](https://github.com/shadps4-emu/shadPS4/commit/d3128d3068814cb43286b93e29c2aabbd8cbfacb) updated enums , added logging - [`e87f17f`](https://github.com/shadps4-emu/shadPS4/commit/e87f17fe8cad02a89f1e30d6034ed063729abada) jpegenc: Clean up parameter validations. - [`1646382`](https://github.com/shadps4-emu/shadPS4/commit/1646382f396a079f7f7ff03ab0ca202d64661b9b) jpegenc: Fix missing log. - [`1d81dcb`](https://github.com/shadps4-emu/shadPS4/commit/1d81dcb8b1ec9b340d4f3bcb90398a221a876ed4) externals: Update ffmpeg-core ### 📊 Changes **9 files changed** (+317 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+6 -0) 📝 `externals/ffmpeg-core` (+1 -1) 📝 `src/common/alignment.h` (+6 -0) 📝 `src/common/logging/filter.cpp` (+1 -0) 📝 `src/common/logging/types.h` (+1 -0) ➕ `src/core/libraries/jpeg/jpeg_error.h` (+9 -0) ➕ `src/core/libraries/jpeg/jpegenc.cpp` (+207 -0) ➕ `src/core/libraries/jpeg/jpegenc.h` (+84 -0) 📝 `src/emulator.cpp` (+2 -1) </details> ### 📄 Description Adds the initial skeleton of HLE `libSceJpegEnc`. Functions except encode are fully implemented, encode has some of the validity checks but is otherwise stubbed. Tested in CUSA06093 with the PV screenshot functionality. Obviously no actual JPEG is encoded but the encoder is set up correctly and passes the validation checks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:32 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2195
No description provided.