FFmpeg
Loading...
Searching...
No Matches
parsers.c
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#include <stdint.h>
20
21#include "avcodec.h"
22#include "parser_internal.h"
23
24extern const FFCodecParser ff_aac_parser;
26extern const FFCodecParser ff_ac3_parser;
27extern const FFCodecParser ff_adx_parser;
28extern const FFCodecParser ff_ahx_parser;
29extern const FFCodecParser ff_amr_parser;
30extern const FFCodecParser ff_apv_parser;
31extern const FFCodecParser ff_av1_parser;
32extern const FFCodecParser ff_avs2_parser;
33extern const FFCodecParser ff_avs3_parser;
34extern const FFCodecParser ff_bmp_parser;
36extern const FFCodecParser ff_cook_parser;
37extern const FFCodecParser ff_cri_parser;
38extern const FFCodecParser ff_dca_parser;
43extern const FFCodecParser ff_dpx_parser;
48extern const FFCodecParser ff_evc_parser;
49extern const FFCodecParser ff_flac_parser;
50extern const FFCodecParser ff_ftr_parser;
51extern const FFCodecParser ff_ffv1_parser;
53extern const FFCodecParser ff_g729_parser;
54extern const FFCodecParser ff_gif_parser;
55extern const FFCodecParser ff_gsm_parser;
56extern const FFCodecParser ff_h261_parser;
57extern const FFCodecParser ff_h263_parser;
58extern const FFCodecParser ff_h264_parser;
59extern const FFCodecParser ff_hevc_parser;
60extern const FFCodecParser ff_hdr_parser;
61extern const FFCodecParser ff_ipu_parser;
68extern const FFCodecParser ff_mlp_parser;
72extern const FFCodecParser ff_opus_parser;
74extern const FFCodecParser ff_png_parser;
75extern const FFCodecParser ff_pnm_parser;
77extern const FFCodecParser ff_qoi_parser;
78extern const FFCodecParser ff_rv34_parser;
79extern const FFCodecParser ff_sbc_parser;
80extern const FFCodecParser ff_sipr_parser;
81extern const FFCodecParser ff_tak_parser;
82extern const FFCodecParser ff_vc1_parser;
84extern const FFCodecParser ff_vp3_parser;
85extern const FFCodecParser ff_vp8_parser;
86extern const FFCodecParser ff_vp9_parser;
87extern const FFCodecParser ff_vvc_parser;
88extern const FFCodecParser ff_webp_parser;
89extern const FFCodecParser ff_xbm_parser;
90extern const FFCodecParser ff_xma_parser;
91extern const FFCodecParser ff_xwd_parser;
92
93#include "libavcodec/parser_list.c"
94
95const AVCodecParser *av_parser_iterate(void **opaque)
96{
97 uintptr_t i = (uintptr_t)*opaque;
98 const FFCodecParser *p = parser_list[i];
99
100 if (p) {
101 *opaque = (void*)(i + 1);
102 return &p->p;
103 }
104
105 return NULL;
106}
const FFCodecParser ff_aac_parser
Definition aac_parser.c:55
const FFCodecParser ff_adx_parser
Definition adx_parser.c:101
const FFCodecParser ff_ahx_parser
Definition ahx_parser.c:74
const FFCodecParser ff_amr_parser
Definition amr_parser.c:126
const FFCodecParser ff_apv_parser
Definition apv_parser.c:207
const FFCodecParser ff_av1_parser
Definition av1_parser.c:221
Libavcodec external API header.
const FFCodecParser ff_avs2_parser
const FFCodecParser ff_avs3_parser
const FFCodecParser ff_bmp_parser
Definition bmp_parser.c:109
const FFCodecParser ff_cavsvideo_parser
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
const FFCodecParser ff_cook_parser
Definition cook_parser.c:57
#define NULL
Definition coverity.c:32
const FFCodecParser ff_cri_parser
Definition cri_parser.c:101
const FFCodecParser ff_dca_parser
Definition dca_parser.c:348
const FFCodecParser ff_dirac_parser
const FFCodecParser ff_dnxhd_parser
const FFCodecParser ff_dnxuc_parser
const FFCodecParser ff_dolby_e_parser
const FFCodecParser ff_dpx_parser
Definition dpx_parser.c:112
const FFCodecParser ff_dvaudio_parser
const FFCodecParser ff_dvbsub_parser
const FFCodecParser ff_dvd_nav_parser
const FFCodecParser ff_dvdsub_parser
const FFCodecParser ff_evc_parser
Definition evc_parser.c:375
const FFCodecParser ff_ffv1_parser
Definition ffv1_parser.c:84
const FFCodecParser ff_flac_parser
const FFCodecParser ff_ftr_parser
Definition ftr_parser.c:100
const FFCodecParser ff_g723_1_parser
const FFCodecParser ff_g729_parser
Definition g729_parser.c:88
const FFCodecParser ff_gif_parser
Definition gif_parser.c:204
const AVCodecParser * av_parser_iterate(void **opaque)
Iterate over all registered codec parsers.
Definition parsers.c:95
const FFCodecParser ff_gsm_parser
Definition gsm_parser.c:87
const FFCodecParser ff_h261_parser
Definition h261_parser.c:90
const FFCodecParser ff_h263_parser
Definition h263_parser.c:91
const FFCodecParser ff_h264_parser
const FFCodecParser ff_hdr_parser
Definition hdr_parser.c:75
const FFCodecParser ff_hevc_parser
Definition parser.c:357
const FFCodecParser ff_ipu_parser
Definition ipu_parser.c:73
const FFCodecParser ff_jpeg2000_parser
const FFCodecParser ff_jpegxl_parser
const FFCodecParser ff_jpegxs_parser
const FFCodecParser ff_aac_latm_parser
const FFCodecParser ff_lcevc_parser
const FFCodecParser ff_misc4_parser
const FFCodecParser ff_mjpeg_parser
const FFCodecParser ff_mlp_parser
Definition mlp_parser.c:208
const FFCodecParser ff_mpeg4video_parser
const FFCodecParser ff_mpegaudio_parser
const FFCodecParser ff_mpegvideo_parser
const FFCodecParser ff_opus_parser
Definition parser.c:219
const FFCodecParser ff_prores_parser
const FFCodecParser ff_vp3_parser
Definition vp3_parser.c:39
const FFCodecParser ff_webp_parser
const FFCodecParser ff_qoi_parser
Definition qoi_parser.c:73
const FFCodecParser ff_pnm_parser
Definition pnm_parser.c:137
const FFCodecParser ff_xbm_parser
Definition xbm_parser.c:104
const FFCodecParser ff_vp8_parser
Definition vp8_parser.c:77
const FFCodecParser ff_sbc_parser
Definition sbc_parser.c:120
const FFCodecParser ff_xma_parser
Definition xma_parser.c:59
const FFCodecParser ff_tak_parser
Definition tak_parser.c:127
const FFCodecParser ff_ac3_parser
const FFCodecParser ff_vvc_parser
Definition vvc_parser.c:509
const FFCodecParser ff_png_parser
Definition png_parser.c:114
const FFCodecParser ff_prores_raw_parser
const FFCodecParser ff_xwd_parser
Definition xwd_parser.c:99
const FFCodecParser ff_sipr_parser
Definition sipr_parser.c:70
const FFCodecParser ff_vorbis_parser
const FFCodecParser ff_rv34_parser
Definition rv34_parser.c:79
const FFCodecParser ff_vc1_parser
Definition vc1_parser.c:275
const FFCodecParser ff_vp9_parser
Definition vp9_parser.c:67