Commit graph

33 commits

Author SHA1 Message Date
Pedro Montes Alcalde
4a14d546ba
Tick Tick Tick, thats the sound of 2024 flying by (#3503) 2025-01-19 18:51:43 -03:00
bookmist
1fda880a94 vita3k: big code cleanup
Improvements
* lang: a bit more verbose error on wrong lang xml

Bugfixes
* kernel/sync_primitives: fix theoretically possible AV
* modules/SceAudio: a bit more correct sceAudioOutSetConfig
* fix wrong objects initialisation ({0} -> {})

Warning fixes
* clang warning: Macro argument should be enclosed in parentheses
[bugprone-macro-parentheses]
* modules: set unsigned type for Sce*ErrorCode enums
* clang warning: variable might be not be initialized
* clang warning: Function returns by const value. Consider returning by non-const value instead.
* clang warning: Prefer transparent functors [modernize-use-transparent-functors]

Refactoring
* io/device: move functions implementation from .h to .cpp file
* vita3k: fix fs::path usage
* clang warning: 'if' statement is unnecessary; deleting null pointer has no effect
* vita3k: use structured bindings and references in for-each-loops
* vita3k: simplify container operations, extract frequent operations to utility functions
* clang⚠️ 'contains' member function can be used
* kernel/sync_primitives: refactoring. drop unused parameter of handle_timeout
* vita3k: drop unused function parameters

* vita3k: fix typecasts
use static_cast instead of reinterpret casts if possible
use correct constants (1/1.0/1.0f)
correct variable types to minimise typecasts
use explicit typecasts (not everywhere)
replace c-style typecasts to c++ style typecasts (not everywhere)
* clang warning: remove redundant typecasts
* clang warning: Cast drops const qualifier

Optimisation
* vita3k: remove unused includes
* clang warning: Constness of returning variable prevents automatic move
[performance-no-automatic-move]
* clang warning: String concatenation results in allocation of unnecessary temporary strings
[performance-inefficient-string-concatenation]
* vita3k: use std::move
* vita3k: optimization. push_back -> emplace_back
* vita3k: fix datatypes to avoid unnesessary conversions
* clang warning: remove unneeded string->c_str->string conversion
* clang warning: The parameter is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
* clang warning: 'find' called with a string literal consisting of a single character
[performance-faster-string-find]
* clang warning: Result of a postfix operator is discarded, consider replacing it with a prefix operator
* clang warning: Pass value parameters by const reference

Code cleanup
* io/io: remove once used variables
* net/posixsocket: remove struct keyword
* vita3k: use raw string literals to avoid excessive escaping
* vita3k: refactoring. replace Ptr<> to pointer in Sce functions
* vita3k: drop unused variables and incorrect comments
* clang warning: readability-inconsistent-declaration-parameter-name
* clang warning: Extra ';' after member function definition
* clang warning: Possible misuse of comma operator (, is used instead of ;)
* clang warning: Algorithm accepting an iterator and a count can be used
* clang warning: Declaration and assignment can be joined
* clang warning: Type trait can be simplified using a template alias or a variable template

* vita3k: cleanup class methods
remove unimplemented (and obviously not used) methods
move deleted methods to public
change empty body to =default
remove auto constructors
set member default values
2024-03-18 15:44:56 +03:00
Pedro Montes Alcalde
34565e3ef4
Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
Macdu
5ed4c52449
codec, renderer: Improve YUV format implementation (#3114) 2023-12-15 00:12:17 +01:00
Macdu
e64fa370c7 modules: cleanup 2023-09-10 23:35:12 +02:00
Zangetsu38
2e94f73d51 SceVideodec: set res of sceAvcdecDecode.
- should fix video resolution in lego game
- remove memset to 0 on last frame in sceAvcdecDecodeStop, should fix green screen regression.
2023-06-22 15:19:42 +02:00
bookmist
b011ee0fac modules/SceVideodec: describe enums 2023-05-27 20:45:58 +03:00
bookmist
4ba2e086cc Vita3K: code cleanup and optimisations 2023-05-10 15:31:55 +03:00
lybxlpsv
e79a7d5949 modules/SceVideodecUser: set frame horizontalSize and verticalSize
these values is consumed by some games.
2023-02-16 13:55:20 +01:00
EXtremeExploit
41a17e79c7 Planet Earth Season 2023 2023-01-02 10:46:20 +01:00
bookmist
f03c257a33 modules: Add Tracy to all implemented functions in implemented modules.
modules/tracy: module name macro
Remove unused hack from SceMp4, mark ScePgf/sceFontNewLib unimplemented
2022-10-29 20:35:17 +03:00
Macdu
2eefc9751e vita3k: Remove unnecessary dependencies between librairies and files 2022-07-28 12:24:06 +02:00
hobyst
1169da50bc host: Rename host to emuenv
This commit renames the host library as emuenv (emulated PS Vita
environment) to avoid confusion with the future host OS abstraction
layer
2022-07-03 14:31:24 +02:00
Macdu
d63db64fd3 modules/SceVideodec: Return one last frame when calling DecodeStop 2022-06-02 13:48:45 +02:00
Macdu
7fa2f78360 modules/SceVideodec: Return error if decoder is invalid 2022-06-01 21:50:07 +02:00
Zangetsu38
981910543d modules/SceVideodec: Increment numOfOutput only when success play frame.
- fix black screen of video when first frame failed with eagain error.
2022-05-07 15:14:11 +02:00
bookmist
510e2ba86c codec/codec: refactoring 2022-05-06 23:40:12 +02:00
Zangetsu38
8f5b523da3 modules/SceVideodecUser: Add support to back res value of AvcdecDecode.
- should fix wrong resolution of video in few game (Street fighter, omega labyrinth, etc...)
2022-05-06 23:40:12 +02:00
Zangetsu38
b27f8b369f modules/SceVideoDecUser: Add pts/dts support.
- should fix video speed on some game when using lle.
2022-05-06 13:26:05 +02:00
hobyst
168dfb19ca Add license notice on source files which didn't have one
- Also updated the copyright notice year on all files to 2021
2021-08-19 23:14:27 +02:00
sunho
e76738733c videodec: Implement more init functions 2021-05-11 07:03:12 +02:00
sunho
1e96724d45 kernel: Pull out avplayer,auidodev,videodec,fiber state
kernel: Add ObjectStore
modules: Support library init function
modules: Pull out cpu_protocol
vita3k: Rename .h -> .inc
io: Remove unneccesary base_tick argument
cmake: Folderify modules and kernel
2021-05-09 19:47:59 +02:00
sunho
c2d36f818c avcdec: stub codec engine and memsize functions 2020-07-25 04:10:28 +09:00
1whatleytay
0beecf723d ngs: run clang-format 2020-07-08 14:33:08 -04:00
1whatleytay
20125cb5be audiodec much better 2020-07-08 14:11:51 -04:00
1whatleytay
77430da4e6 codec: add h264, mjpeg, player 2020-07-08 14:11:51 -04:00
totlmstr
4e20885f89 Vita3K: run clang-format 2020-04-07 16:48:08 -04:00
1whatleytay
34a02553c4
vita3k: remove vita-headers (#649) 2020-02-06 09:44:49 -05:00
Zangetsu38
8f0b0fd7e0 gui: Add Live Area game screen.
gui: Add Manual dialog on live area screen.
fix some warning.
2020-01-12 22:35:27 -05:00
Zangetsu38
ba41e627c2 all: Format project 2020-01-12 22:35:27 -05:00
Taylor Whatley
89e5419ad9 modules: implement basic avplayer 2019-12-22 00:15:36 -05:00
Taylor Whatley
6463b34cc1 modules: implement avcdec and yuv format 2019-12-22 00:15:36 -05:00
Nicolas Jallamion
06299de242 emulator: Refactor file structure (#557)
Also:
- external: update some submodules.
2019-08-28 16:52:07 +03:00