mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-01 20:18:15 +01:00
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>
133 lines
5.8 KiB
C
133 lines
5.8 KiB
C
/*
|
|
*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include "avcodec.h"
|
|
#include "profiles.h"
|
|
|
|
#if !CONFIG_SMALL
|
|
|
|
const AVProfile ff_aac_profiles[] = {
|
|
{ FF_PROFILE_AAC_LOW, "LC" },
|
|
{ FF_PROFILE_AAC_HE, "HE-AAC" },
|
|
{ FF_PROFILE_AAC_HE_V2, "HE-AACv2" },
|
|
{ FF_PROFILE_AAC_LD, "LD" },
|
|
{ FF_PROFILE_AAC_ELD, "ELD" },
|
|
{ FF_PROFILE_AAC_MAIN, "Main" },
|
|
{ FF_PROFILE_AAC_LOW, "LC" },
|
|
{ FF_PROFILE_AAC_SSR, "SSR" },
|
|
{ FF_PROFILE_AAC_LTP, "LTP" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
const AVProfile ff_dca_profiles[] = {
|
|
{ FF_PROFILE_DTS, "DTS" },
|
|
{ FF_PROFILE_DTS_ES, "DTS-ES" },
|
|
{ FF_PROFILE_DTS_96_24, "DTS 96/24" },
|
|
{ FF_PROFILE_DTS_HD_HRA, "DTS-HD HRA" },
|
|
{ FF_PROFILE_DTS_HD_MA, "DTS-HD MA" },
|
|
{ FF_PROFILE_DTS_EXPRESS, "DTS Express" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
const AVProfile ff_h264_profiles[] = {
|
|
{ FF_PROFILE_H264_BASELINE, "Baseline" },
|
|
{ FF_PROFILE_H264_CONSTRAINED_BASELINE, "Constrained Baseline" },
|
|
{ FF_PROFILE_H264_MAIN, "Main" },
|
|
{ FF_PROFILE_H264_EXTENDED, "Extended" },
|
|
{ FF_PROFILE_H264_HIGH, "High" },
|
|
{ FF_PROFILE_H264_HIGH_10, "High 10" },
|
|
{ FF_PROFILE_H264_HIGH_10_INTRA, "High 10 Intra" },
|
|
{ FF_PROFILE_H264_HIGH_422, "High 4:2:2" },
|
|
{ FF_PROFILE_H264_HIGH_422_INTRA, "High 4:2:2 Intra" },
|
|
{ FF_PROFILE_H264_HIGH_444, "High 4:4:4" },
|
|
{ FF_PROFILE_H264_HIGH_444_PREDICTIVE, "High 4:4:4 Predictive" },
|
|
{ FF_PROFILE_H264_HIGH_444_INTRA, "High 4:4:4 Intra" },
|
|
{ FF_PROFILE_H264_CAVLC_444, "CAVLC 4:4:4" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
const AVProfile ff_hevc_profiles[] = {
|
|
{ FF_PROFILE_HEVC_MAIN, "Main" },
|
|
{ FF_PROFILE_HEVC_MAIN_10, "Main 10" },
|
|
{ FF_PROFILE_HEVC_MAIN_STILL_PICTURE, "Main Still Picture" },
|
|
{ FF_PROFILE_HEVC_REXT, "Rext" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
const AVProfile ff_jpeg2000_profiles[] = {
|
|
{ FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0, "JPEG 2000 codestream restriction 0" },
|
|
{ FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1, "JPEG 2000 codestream restriction 1" },
|
|
{ FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION, "JPEG 2000 no codestream restrictions" },
|
|
{ FF_PROFILE_JPEG2000_DCINEMA_2K, "JPEG 2000 digital cinema 2K" },
|
|
{ FF_PROFILE_JPEG2000_DCINEMA_4K, "JPEG 2000 digital cinema 4K" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
const AVProfile ff_mpeg2_video_profiles[] = {
|
|
{ FF_PROFILE_MPEG2_422, "4:2:2" },
|
|
{ FF_PROFILE_MPEG2_HIGH, "High" },
|
|
{ FF_PROFILE_MPEG2_SS, "Spatially Scalable" },
|
|
{ FF_PROFILE_MPEG2_SNR_SCALABLE, "SNR Scalable" },
|
|
{ FF_PROFILE_MPEG2_MAIN, "Main" },
|
|
{ FF_PROFILE_MPEG2_SIMPLE, "Simple" },
|
|
{ FF_PROFILE_RESERVED, "Reserved" },
|
|
{ FF_PROFILE_RESERVED, "Reserved" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
const AVProfile ff_mpeg4_video_profiles[] = {
|
|
{ FF_PROFILE_MPEG4_SIMPLE, "Simple Profile" },
|
|
{ FF_PROFILE_MPEG4_SIMPLE_SCALABLE, "Simple Scalable Profile" },
|
|
{ FF_PROFILE_MPEG4_CORE, "Core Profile" },
|
|
{ FF_PROFILE_MPEG4_MAIN, "Main Profile" },
|
|
{ FF_PROFILE_MPEG4_N_BIT, "N-bit Profile" },
|
|
{ FF_PROFILE_MPEG4_SCALABLE_TEXTURE, "Scalable Texture Profile" },
|
|
{ FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION, "Simple Face Animation Profile" },
|
|
{ FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE, "Basic Animated Texture Profile" },
|
|
{ FF_PROFILE_MPEG4_HYBRID, "Hybrid Profile" },
|
|
{ FF_PROFILE_MPEG4_ADVANCED_REAL_TIME, "Advanced Real Time Simple Profile" },
|
|
{ FF_PROFILE_MPEG4_CORE_SCALABLE, "Code Scalable Profile" },
|
|
{ FF_PROFILE_MPEG4_ADVANCED_CODING, "Advanced Coding Profile" },
|
|
{ FF_PROFILE_MPEG4_ADVANCED_CORE, "Advanced Core Profile" },
|
|
{ FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE, "Advanced Scalable Texture Profile" },
|
|
{ FF_PROFILE_MPEG4_SIMPLE_STUDIO, "Simple Studio Profile" },
|
|
{ FF_PROFILE_MPEG4_ADVANCED_SIMPLE, "Advanced Simple Profile" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
const AVProfile ff_vc1_profiles[] = {
|
|
{ FF_PROFILE_VC1_SIMPLE, "Simple" },
|
|
{ FF_PROFILE_VC1_MAIN, "Main" },
|
|
{ FF_PROFILE_VC1_COMPLEX, "Complex" },
|
|
{ FF_PROFILE_VC1_ADVANCED, "Advanced" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
const AVProfile ff_vp9_profiles[] = {
|
|
{ FF_PROFILE_VP9_0, "Profile 0" },
|
|
{ FF_PROFILE_VP9_1, "Profile 1" },
|
|
{ FF_PROFILE_VP9_2, "Profile 2" },
|
|
{ FF_PROFILE_VP9_3, "Profile 3" },
|
|
{ FF_PROFILE_UNKNOWN },
|
|
};
|
|
|
|
#endif /* !CONFIG_SMALL */
|