FFmpeg
Loading...
Searching...
No Matches
profiles.h
Go to the documentation of this file.
1/*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef AVCODEC_PROFILES_H
20#define AVCODEC_PROFILES_H
21
22#include "codec.h"
23#include "defs.h"
24#include "libavutil/opt.h"
25
26#define FF_AVCTX_PROFILE_OPTION(name, description, type, value) \
27 {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"},
28
29#define FF_AAC_PROFILE_OPTS \
30 FF_AVCTX_PROFILE_OPTION("aac_main", NULL, AUDIO, AV_PROFILE_AAC_MAIN)\
31 FF_AVCTX_PROFILE_OPTION("aac_low", NULL, AUDIO, AV_PROFILE_AAC_LOW)\
32 FF_AVCTX_PROFILE_OPTION("aac_ssr", NULL, AUDIO, AV_PROFILE_AAC_SSR)\
33 FF_AVCTX_PROFILE_OPTION("aac_ltp", NULL, AUDIO, AV_PROFILE_AAC_LTP)\
34 FF_AVCTX_PROFILE_OPTION("aac_he", NULL, AUDIO, AV_PROFILE_AAC_HE)\
35 FF_AVCTX_PROFILE_OPTION("aac_he_v2", NULL, AUDIO, AV_PROFILE_AAC_HE_V2)\
36 FF_AVCTX_PROFILE_OPTION("aac_ld", NULL, AUDIO, AV_PROFILE_AAC_LD)\
37 FF_AVCTX_PROFILE_OPTION("aac_eld", NULL, AUDIO, AV_PROFILE_AAC_ELD)\
38 FF_AVCTX_PROFILE_OPTION("aac_xhe", NULL, AUDIO, AV_PROFILE_AAC_USAC)\
39 FF_AVCTX_PROFILE_OPTION("mpeg2_aac_low", NULL, AUDIO, AV_PROFILE_MPEG2_AAC_LOW)\
40 FF_AVCTX_PROFILE_OPTION("mpeg2_aac_he", NULL, AUDIO, AV_PROFILE_MPEG2_AAC_HE)\
41
42#define FF_MPEG4_PROFILE_OPTS \
43 FF_AVCTX_PROFILE_OPTION("mpeg4_sp", NULL, VIDEO, AV_PROFILE_MPEG4_SIMPLE)\
44 FF_AVCTX_PROFILE_OPTION("mpeg4_core", NULL, VIDEO, AV_PROFILE_MPEG4_CORE)\
45 FF_AVCTX_PROFILE_OPTION("mpeg4_main", NULL, VIDEO, AV_PROFILE_MPEG4_MAIN)\
46 FF_AVCTX_PROFILE_OPTION("mpeg4_asp", NULL, VIDEO, AV_PROFILE_MPEG4_ADVANCED_SIMPLE)\
47
48#define FF_MPEG2_PROFILE_OPTS \
49 FF_AVCTX_PROFILE_OPTION("422", NULL, VIDEO, AV_PROFILE_MPEG2_422)\
50 FF_AVCTX_PROFILE_OPTION("high", NULL, VIDEO, AV_PROFILE_MPEG2_HIGH)\
51 FF_AVCTX_PROFILE_OPTION("ss", NULL, VIDEO, AV_PROFILE_MPEG2_SS)\
52 FF_AVCTX_PROFILE_OPTION("snr", NULL, VIDEO, AV_PROFILE_MPEG2_SNR_SCALABLE)\
53 FF_AVCTX_PROFILE_OPTION("main", NULL, VIDEO, AV_PROFILE_MPEG2_MAIN)\
54 FF_AVCTX_PROFILE_OPTION("simple", NULL, VIDEO, AV_PROFILE_MPEG2_SIMPLE)\
55
56#define FF_AV1_PROFILE_OPTS \
57 FF_AVCTX_PROFILE_OPTION("main", NULL, VIDEO, AV_PROFILE_AV1_MAIN)\
58 FF_AVCTX_PROFILE_OPTION("high", NULL, VIDEO, AV_PROFILE_AV1_HIGH)\
59 FF_AVCTX_PROFILE_OPTION("professional", NULL, VIDEO, AV_PROFILE_AV1_PROFESSIONAL)\
60
61extern const AVProfile ff_aac_profiles[];
62extern const AVProfile ff_dca_profiles[];
63extern const AVProfile ff_eac3_profiles[];
64extern const AVProfile ff_truehd_profiles[];
65extern const AVProfile ff_dnxhd_profiles[];
66extern const AVProfile ff_h264_profiles[];
67extern const AVProfile ff_hevc_profiles[];
68extern const AVProfile ff_vvc_profiles[];
69extern const AVProfile ff_jpeg2000_profiles[];
72extern const AVProfile ff_vc1_profiles[];
73extern const AVProfile ff_vp9_profiles[];
74extern const AVProfile ff_av1_profiles[];
75extern const AVProfile ff_sbc_profiles[];
76extern const AVProfile ff_prores_profiles[];
78extern const AVProfile ff_mjpeg_profiles[];
80extern const AVProfile ff_evc_profiles[];
81extern const AVProfile ff_apv_profiles[];
82
83#endif /* AVCODEC_PROFILES_H */
Misc types and constants that do not belong anywhere else.
AVOptions.
const AVProfile ff_eac3_profiles[]
Definition profiles.c:52
const AVProfile ff_vp9_profiles[]
Definition profiles.c:155
const AVProfile ff_mpeg2_video_profiles[]
Definition profiles.c:116
const AVProfile ff_mjpeg_profiles[]
Definition profiles.c:191
const AVProfile ff_evc_profiles[]
Definition profiles.c:206
const AVProfile ff_sbc_profiles[]
Definition profiles.c:170
const AVProfile ff_arib_caption_profiles[]
Definition profiles.c:200
const AVProfile ff_vc1_profiles[]
Definition profiles.c:147
const AVProfile ff_jpeg2000_profiles[]
Definition profiles.c:107
const AVProfile ff_prores_profiles[]
Definition profiles.c:175
const AVProfile ff_aac_profiles[]
Definition profiles.c:27
const AVProfile ff_apv_profiles[]
Definition profiles.c:212
const AVProfile ff_truehd_profiles[]
Definition profiles.c:57
const AVProfile ff_dca_profiles[]
Definition profiles.c:40
const AVProfile ff_vvc_profiles[]
Definition profiles.c:91
const AVProfile ff_mpeg4_video_profiles[]
Definition profiles.c:127
const AVProfile ff_av1_profiles[]
Definition profiles.c:163
const AVProfile ff_h264_profiles[]
Definition profiles.c:72
const AVProfile ff_prores_raw_profiles[]
Definition profiles.c:185
const AVProfile ff_dnxhd_profiles[]
Definition profiles.c:62
const AVProfile ff_hevc_profiles[]
Definition profiles.c:97
AVProfile.
Definition codec.h:167