2014-12-31 08:57:59 +02:00
|
|
|
/*
|
2016-01-01 17:16:57 +02:00
|
|
|
* This file is part of FFmpeg.
|
2014-12-31 08:57:59 +02:00
|
|
|
*
|
2016-01-01 17:16:57 +02:00
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2014-12-31 08:57:59 +02:00
|
|
|
* 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.
|
|
|
|
*
|
2016-01-01 17:16:57 +02:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2014-12-31 08:57:59 +02:00
|
|
|
* 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
|
2016-01-01 17:16:57 +02:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2014-12-31 08:57:59 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AVCODEC_PROFILES_H
|
|
|
|
#define AVCODEC_PROFILES_H
|
|
|
|
|
|
|
|
#include "avcodec.h"
|
2020-05-10 20:38:11 +02:00
|
|
|
#include "libavutil/opt.h"
|
|
|
|
|
|
|
|
#define FF_AVCTX_PROFILE_OPTION(name, description, type, value) \
|
2024-02-11 16:41:05 +02:00
|
|
|
{name, description, 0, AV_OPT_TYPE_CONST, {.i64 = value }, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_## type ##_PARAM, .unit = "avctx.profile"},
|
2020-05-10 20:38:11 +02:00
|
|
|
|
|
|
|
#define FF_AAC_PROFILE_OPTS \
|
2023-09-02 14:57:41 +02:00
|
|
|
FF_AVCTX_PROFILE_OPTION("aac_main", NULL, AUDIO, AV_PROFILE_AAC_MAIN)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("aac_low", NULL, AUDIO, AV_PROFILE_AAC_LOW)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("aac_ssr", NULL, AUDIO, AV_PROFILE_AAC_SSR)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("aac_ltp", NULL, AUDIO, AV_PROFILE_AAC_LTP)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("aac_he", NULL, AUDIO, AV_PROFILE_AAC_HE)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("aac_he_v2", NULL, AUDIO, AV_PROFILE_AAC_HE_V2)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("aac_ld", NULL, AUDIO, AV_PROFILE_AAC_LD)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("aac_eld", NULL, AUDIO, AV_PROFILE_AAC_ELD)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("mpeg2_aac_low", NULL, AUDIO, AV_PROFILE_MPEG2_AAC_LOW)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("mpeg2_aac_he", NULL, AUDIO, AV_PROFILE_MPEG2_AAC_HE)\
|
2014-12-31 08:57:59 +02:00
|
|
|
|
2020-05-10 21:58:35 +02:00
|
|
|
#define FF_MPEG4_PROFILE_OPTS \
|
2023-09-02 14:57:41 +02:00
|
|
|
FF_AVCTX_PROFILE_OPTION("mpeg4_sp", NULL, VIDEO, AV_PROFILE_MPEG4_SIMPLE)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("mpeg4_core", NULL, VIDEO, AV_PROFILE_MPEG4_CORE)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("mpeg4_main", NULL, VIDEO, AV_PROFILE_MPEG4_MAIN)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("mpeg4_asp", NULL, VIDEO, AV_PROFILE_MPEG4_ADVANCED_SIMPLE)\
|
2020-05-10 21:58:35 +02:00
|
|
|
|
2020-05-30 15:25:32 +02:00
|
|
|
#define FF_MPEG2_PROFILE_OPTS \
|
2023-09-02 14:57:41 +02:00
|
|
|
FF_AVCTX_PROFILE_OPTION("422", NULL, VIDEO, AV_PROFILE_MPEG2_422)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("high", NULL, VIDEO, AV_PROFILE_MPEG2_HIGH)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("ss", NULL, VIDEO, AV_PROFILE_MPEG2_SS)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("snr", NULL, VIDEO, AV_PROFILE_MPEG2_SNR_SCALABLE)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("main", NULL, VIDEO, AV_PROFILE_MPEG2_MAIN)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("simple", NULL, VIDEO, AV_PROFILE_MPEG2_SIMPLE)\
|
2020-05-30 15:25:32 +02:00
|
|
|
|
2020-06-26 04:28:57 +02:00
|
|
|
#define FF_AV1_PROFILE_OPTS \
|
2023-09-02 14:57:41 +02:00
|
|
|
FF_AVCTX_PROFILE_OPTION("main", NULL, VIDEO, AV_PROFILE_AV1_MAIN)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("high", NULL, VIDEO, AV_PROFILE_AV1_HIGH)\
|
|
|
|
FF_AVCTX_PROFILE_OPTION("professional", NULL, VIDEO, AV_PROFILE_AV1_PROFESSIONAL)\
|
2020-06-26 04:28:57 +02:00
|
|
|
|
2014-12-31 08:57:59 +02:00
|
|
|
extern const AVProfile ff_aac_profiles[];
|
|
|
|
extern const AVProfile ff_dca_profiles[];
|
2023-02-18 21:43:00 +02:00
|
|
|
extern const AVProfile ff_eac3_profiles[];
|
2023-02-18 19:24:38 +02:00
|
|
|
extern const AVProfile ff_truehd_profiles[];
|
2016-07-17 04:37:37 +02:00
|
|
|
extern const AVProfile ff_dnxhd_profiles[];
|
2014-12-31 08:57:59 +02:00
|
|
|
extern const AVProfile ff_h264_profiles[];
|
|
|
|
extern const AVProfile ff_hevc_profiles[];
|
2021-01-11 18:33:10 +02:00
|
|
|
extern const AVProfile ff_vvc_profiles[];
|
2014-12-31 08:57:59 +02:00
|
|
|
extern const AVProfile ff_jpeg2000_profiles[];
|
|
|
|
extern const AVProfile ff_mpeg2_video_profiles[];
|
|
|
|
extern const AVProfile ff_mpeg4_video_profiles[];
|
|
|
|
extern const AVProfile ff_vc1_profiles[];
|
2016-01-01 17:25:01 +02:00
|
|
|
extern const AVProfile ff_vp9_profiles[];
|
2018-03-29 04:28:34 +02:00
|
|
|
extern const AVProfile ff_av1_profiles[];
|
2017-12-17 20:59:30 +02:00
|
|
|
extern const AVProfile ff_sbc_profiles[];
|
2018-11-02 21:23:16 +02:00
|
|
|
extern const AVProfile ff_prores_profiles[];
|
2018-11-02 21:33:20 +02:00
|
|
|
extern const AVProfile ff_mjpeg_profiles[];
|
2019-01-14 21:52:23 +02:00
|
|
|
extern const AVProfile ff_arib_caption_profiles[];
|
2023-05-26 12:30:33 +02:00
|
|
|
extern const AVProfile ff_evc_profiles[];
|
2014-12-31 08:57:59 +02:00
|
|
|
|
2016-02-16 19:04:16 +02:00
|
|
|
#endif /* AVCODEC_PROFILES_H */
|