FFmpeg
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 
23 extern const AVCodecParser ff_aac_parser;
25 extern const AVCodecParser ff_ac3_parser;
26 extern const AVCodecParser ff_adx_parser;
27 extern const AVCodecParser ff_amr_parser;
28 extern const AVCodecParser ff_av1_parser;
29 extern const AVCodecParser ff_avs2_parser;
30 extern const AVCodecParser ff_avs3_parser;
31 extern const AVCodecParser ff_bmp_parser;
33 extern const AVCodecParser ff_cook_parser;
34 extern const AVCodecParser ff_cri_parser;
35 extern const AVCodecParser ff_dca_parser;
36 extern const AVCodecParser ff_dirac_parser;
37 extern const AVCodecParser ff_dnxhd_parser;
38 extern const AVCodecParser ff_dnxuc_parser;
39 extern const AVCodecParser ff_dolby_e_parser;
40 extern const AVCodecParser ff_dpx_parser;
41 extern const AVCodecParser ff_dvaudio_parser;
42 extern const AVCodecParser ff_dvbsub_parser;
43 extern const AVCodecParser ff_dvdsub_parser;
44 extern const AVCodecParser ff_dvd_nav_parser;
45 extern const AVCodecParser ff_evc_parser;
46 extern const AVCodecParser ff_flac_parser;
47 extern const AVCodecParser ff_ftr_parser;
48 extern const AVCodecParser ff_g723_1_parser;
49 extern const AVCodecParser ff_g729_parser;
50 extern const AVCodecParser ff_gif_parser;
51 extern const AVCodecParser ff_gsm_parser;
52 extern const AVCodecParser ff_h261_parser;
53 extern const AVCodecParser ff_h263_parser;
54 extern const AVCodecParser ff_h264_parser;
55 extern const AVCodecParser ff_hevc_parser;
56 extern const AVCodecParser ff_hdr_parser;
57 extern const AVCodecParser ff_ipu_parser;
59 extern const AVCodecParser ff_jpegxl_parser;
60 extern const AVCodecParser ff_misc4_parser;
61 extern const AVCodecParser ff_mjpeg_parser;
62 extern const AVCodecParser ff_mlp_parser;
66 extern const AVCodecParser ff_opus_parser;
67 extern const AVCodecParser ff_png_parser;
68 extern const AVCodecParser ff_pnm_parser;
69 extern const AVCodecParser ff_qoi_parser;
70 extern const AVCodecParser ff_rv34_parser;
71 extern const AVCodecParser ff_sbc_parser;
72 extern const AVCodecParser ff_sipr_parser;
73 extern const AVCodecParser ff_tak_parser;
74 extern const AVCodecParser ff_vc1_parser;
75 extern const AVCodecParser ff_vorbis_parser;
76 extern const AVCodecParser ff_vp3_parser;
77 extern const AVCodecParser ff_vp8_parser;
78 extern const AVCodecParser ff_vp9_parser;
79 extern const AVCodecParser ff_vvc_parser;
80 extern const AVCodecParser ff_webp_parser;
81 extern const AVCodecParser ff_xbm_parser;
82 extern const AVCodecParser ff_xma_parser;
83 extern const AVCodecParser ff_xwd_parser;
84 
85 #include "libavcodec/parser_list.c"
86 
87 const AVCodecParser *av_parser_iterate(void **opaque)
88 {
89  uintptr_t i = (uintptr_t)*opaque;
90  const AVCodecParser *p = parser_list[i];
91 
92  if (p)
93  *opaque = (void*)(i + 1);
94 
95  return p;
96 }
ff_jpeg2000_parser
const AVCodecParser ff_jpeg2000_parser
Definition: jpeg2000_parser.c:214
ff_ipu_parser
const AVCodecParser ff_ipu_parser
Definition: ipu_parser.c:72
ff_vp3_parser
const AVCodecParser ff_vp3_parser
Definition: vp3_parser.c:38
ff_hevc_parser
const AVCodecParser ff_hevc_parser
Definition: parser.c:355
ff_dpx_parser
const AVCodecParser ff_dpx_parser
Definition: dpx_parser.c:111
ff_sbc_parser
const AVCodecParser ff_sbc_parser
Definition: sbc_parser.c:119
av_parser_iterate
const AVCodecParser * av_parser_iterate(void **opaque)
Iterate over all registered codec parsers.
Definition: parsers.c:87
ff_gif_parser
const AVCodecParser ff_gif_parser
Definition: gif_parser.c:203
ff_xma_parser
const AVCodecParser ff_xma_parser
Definition: xma_parser.c:58
ff_g729_parser
const AVCodecParser ff_g729_parser
Definition: g729_parser.c:87
ff_tak_parser
const AVCodecParser ff_tak_parser
Definition: tak_parser.c:126
ff_amr_parser
const AVCodecParser ff_amr_parser
Definition: amr_parser.c:125
ff_cri_parser
const AVCodecParser ff_cri_parser
Definition: cri_parser.c:100
ff_dolby_e_parser
const AVCodecParser ff_dolby_e_parser
Definition: dolby_e_parser.c:68
ff_hdr_parser
const AVCodecParser ff_hdr_parser
Definition: hdr_parser.c:74
ff_cavsvideo_parser
const AVCodecParser ff_cavsvideo_parser
Definition: cavs_parser.c:99
ff_g723_1_parser
const AVCodecParser ff_g723_1_parser
Definition: g723_1_parser.c:55
ff_png_parser
const AVCodecParser ff_png_parser
Definition: png_parser.c:113
ff_av1_parser
const AVCodecParser ff_av1_parser
Definition: av1_parser.c:211
ff_dnxhd_parser
const AVCodecParser ff_dnxhd_parser
Definition: dnxhd_parser.c:141
ff_vc1_parser
const AVCodecParser ff_vc1_parser
Definition: vc1_parser.c:272
ff_h263_parser
const AVCodecParser ff_h263_parser
Definition: h263_parser.c:90
ff_ac3_parser
const AVCodecParser ff_ac3_parser
ff_dca_parser
const AVCodecParser ff_dca_parser
Definition: dca_parser.c:346
ff_qoi_parser
const AVCodecParser ff_qoi_parser
Definition: qoi_parser.c:72
ff_misc4_parser
const AVCodecParser ff_misc4_parser
Definition: misc4_parser.c:76
ff_dvd_nav_parser
const AVCodecParser ff_dvd_nav_parser
Definition: dvd_nav_parser.c:110
ff_bmp_parser
const AVCodecParser ff_bmp_parser
Definition: bmp_parser.c:108
ff_gsm_parser
const AVCodecParser ff_gsm_parser
Definition: gsm_parser.c:86
ff_evc_parser
const AVCodecParser ff_evc_parser
Definition: evc_parser.c:372
ff_xwd_parser
const AVCodecParser ff_xwd_parser
Definition: xwd_parser.c:98
ff_pnm_parser
const AVCodecParser ff_pnm_parser
Definition: pnm_parser.c:136
ff_dirac_parser
const AVCodecParser ff_dirac_parser
Definition: dirac_parser.c:276
ff_vp8_parser
const AVCodecParser ff_vp8_parser
Definition: vp8_parser.c:76
ff_vvc_parser
const AVCodecParser ff_vvc_parser
Definition: vvc_parser.c:508
ff_flac_parser
const AVCodecParser ff_flac_parser
Definition: flac_parser.c:905
ff_dnxuc_parser
const AVCodecParser ff_dnxuc_parser
Definition: dnxuc_parser.c:118
ff_h261_parser
const AVCodecParser ff_h261_parser
Definition: h261_parser.c:89
ff_vp9_parser
const AVCodecParser ff_vp9_parser
Definition: vp9_parser.c:67
ff_h264_parser
const AVCodecParser ff_h264_parser
Definition: h264_parser.c:684
ff_opus_parser
const AVCodecParser ff_opus_parser
Definition: parser.c:195
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
ff_jpegxl_parser
const AVCodecParser ff_jpegxl_parser
Definition: jpegxl_parser.c:1533
ff_rv34_parser
const AVCodecParser ff_rv34_parser
Definition: rv34_parser.c:78
ff_avs2_parser
const AVCodecParser ff_avs2_parser
Definition: avs2_parser.c:192
ff_avs3_parser
const AVCodecParser ff_avs3_parser
Definition: avs3_parser.c:175
avcodec.h
ff_dvaudio_parser
const AVCodecParser ff_dvaudio_parser
Definition: dvaudio_parser.c:43
ff_mjpeg_parser
const AVCodecParser ff_mjpeg_parser
Definition: mjpeg_parser.c:131
ff_mpegvideo_parser
const AVCodecParser ff_mpegvideo_parser
Definition: mpegvideo_parser.c:312
ff_cook_parser
const AVCodecParser ff_cook_parser
Definition: cook_parser.c:56
ff_xbm_parser
const AVCodecParser ff_xbm_parser
Definition: xbm_parser.c:100
ff_vorbis_parser
const AVCodecParser ff_vorbis_parser
ff_mpeg4video_parser
const AVCodecParser ff_mpeg4video_parser
Definition: mpeg4video_parser.c:157
AVCodecParser
Definition: avcodec.h:2907
ff_dvdsub_parser
const AVCodecParser ff_dvdsub_parser
Definition: dvdsub_parser.c:87
ff_mpegaudio_parser
const AVCodecParser ff_mpegaudio_parser
Definition: mpegaudio_parser.c:139
ff_dvbsub_parser
const AVCodecParser ff_dvbsub_parser
Definition: dvbsub_parser.c:166
ff_ftr_parser
const AVCodecParser ff_ftr_parser
Definition: ftr_parser.c:99
ff_aac_parser
const AVCodecParser ff_aac_parser
Definition: aac_parser.c:54
ff_mlp_parser
const AVCodecParser ff_mlp_parser
Definition: mlp_parser.c:207
ff_aac_latm_parser
const AVCodecParser ff_aac_latm_parser
Definition: latm_parser.c:107
ff_sipr_parser
const AVCodecParser ff_sipr_parser
Definition: sipr_parser.c:69
ff_adx_parser
const AVCodecParser ff_adx_parser
Definition: adx_parser.c:101
ff_webp_parser
const AVCodecParser ff_webp_parser
Definition: webp_parser.c:107