Commit Graph
15 Commits
Author SHA1 Message Date
Henrik RydgårdandClaude Opus 5.5 d0e3141f43 FFmpeg: Vendor what PPSSPP uses into ext/ffmpeg, drop the submodule
The ffmpeg submodule held prebuilt libraries for every platform next to the
sources (about 1.5 GB checked out), and nothing uses those any more. Only the
needed sources are copied in, from the submodule's commit, along with every
header and template they include. The path is new, so checking out commits on
either side of this works.

It's also cut down to what PPSSPP uses: the H.264, AAC, MP3, ATRAC3 and ATRAC3+
decoders, the H.264 parser, the demuxers as before, and the FFV1 encoder, AVI
muxer and file protocol for AVI dumping. config.h takes its CONFIG_ values from
FFmpeg 3.0.2's own configure run with just those enabled. The raw H.264 demuxer
stays even though nothing opens raw H.264: probing PSMF data uses it to identify
the video stream's codec, which otherwise comes out as none.

On top of that:
- The files nothing links (configure would build them, but they're never pulled
  out of the static library, going by the GCC link map) are left out: mostly
  libavutil's crypto and hashing and the alternative DCT/IDCT/FFT versions.
- libswresample isn't built, now that nothing uses it.
- The H.264 decoder only does 8-bit video, which is all the PSP has. The SPS
  parser rejects any other bit depth, and the DSP files no longer build their 9-
  to 16-bit variants, which the linker kept because the init functions pick one
  by bit depth at run time.

That's 160 files to compile instead of 277, and 391 of FFmpeg's vendored, about
5.8 MB. The README in ext/ffmpeg has what was done, the PPSSPP patches in the
copy, how to add a component, and the tradeoffs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 22:27:54 +01:00
Henrik RydgårdandClaude Opus 5.5 70a0a9dd00 Android, libretro: Build FFmpeg from source
The ndk-build builds (android/jni and libretro/jni) get a static library module
with the files in ext/ffmpeg-build/sources.mk, in place of the prebuilt
libraries. The libretro Makefile compiles them itself, with FFmpeg's include
directories first so its config.h wins over the others on the include path, and
puts the objects in obj-ffmpeg/ rather than next to the sources, where a
configure build may have left its own.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 22:27:53 +01:00
刘皓 cb3a89542c Enable the libretro VFS in libretro builds that use Make 2026-01-02 12:44:50 -05:00
xielei 15b6111e8a fix libretro compile error 2024-03-07 22:35:33 +08:00
xielei 8ff78cb921 aioemu 2023-02-15 17:21:45 +08:00
Unknown W. Brackets 3fcdf0e4df libretro: Add cpu_features flags to Android.mk. 2023-02-05 23:52:28 -08:00
hsoftxl 97b65156b0 use std c++17 2023-01-21 20:56:45 +08:00
hsoftxl 983336b88c std use c++14 2022-12-19 14:01:31 +08:00
Henrik Rydgård dc873bbd42 Add missing -DWITH_UPNP in a couple more places. 2021-03-20 13:46:45 +01:00
Unknown W. Brackets d9aecffd72 Build: Remove old ARM define. 2021-03-02 21:26:03 -08:00
Filippo Scognamiglio 9f7839c96a Fix Android Libretro build issues. 2020-08-03 19:06:08 +02:00
twinaphex 20d10187cd (Libretro Windows) Buildfix 2020-07-24 08:54:51 +02:00
Henrik Rydgård 536d61796a Android (and libretro): Turn off -ffast-math. Fixes #11880. 2019-03-13 14:15:52 +01:00
AreaScout 95556e8d03 Add: some helpers to compile on ODROID-XU4/XU3 2018-09-17 20:01:12 +00:00
aliaspider c4f7790618 Libretro port. 2018-03-24 12:44:53 +01:00