1cabdff1aSopenharmony_ci/* 2cabdff1aSopenharmony_ci * This file is part of FFmpeg. 3cabdff1aSopenharmony_ci * 4cabdff1aSopenharmony_ci * FFmpeg is free software; you can redistribute it and/or 5cabdff1aSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 6cabdff1aSopenharmony_ci * License as published by the Free Software Foundation; either 7cabdff1aSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 8cabdff1aSopenharmony_ci * 9cabdff1aSopenharmony_ci * FFmpeg is distributed in the hope that it will be useful, 10cabdff1aSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 11cabdff1aSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12cabdff1aSopenharmony_ci * Lesser General Public License for more details. 13cabdff1aSopenharmony_ci * 14cabdff1aSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 15cabdff1aSopenharmony_ci * License along with FFmpeg; if not, write to the Free Software 16cabdff1aSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17cabdff1aSopenharmony_ci */ 18cabdff1aSopenharmony_ci 19cabdff1aSopenharmony_ci#include <stdint.h> 20cabdff1aSopenharmony_ci 21cabdff1aSopenharmony_ci#include "avcodec.h" 22cabdff1aSopenharmony_ci 23cabdff1aSopenharmony_ciextern const AVCodecParser ff_aac_parser; 24cabdff1aSopenharmony_ciextern const AVCodecParser ff_aac_latm_parser; 25cabdff1aSopenharmony_ciextern const AVCodecParser ff_ac3_parser; 26cabdff1aSopenharmony_ciextern const AVCodecParser ff_adx_parser; 27cabdff1aSopenharmony_ciextern const AVCodecParser ff_amr_parser; 28cabdff1aSopenharmony_ciextern const AVCodecParser ff_av1_parser; 29cabdff1aSopenharmony_ciextern const AVCodecParser ff_avs2_parser; 30cabdff1aSopenharmony_ciextern const AVCodecParser ff_avs3_parser; 31cabdff1aSopenharmony_ciextern const AVCodecParser ff_av3a_parser; 32cabdff1aSopenharmony_ciextern const AVCodecParser ff_bmp_parser; 33cabdff1aSopenharmony_ciextern const AVCodecParser ff_cavsvideo_parser; 34cabdff1aSopenharmony_ciextern const AVCodecParser ff_cook_parser; 35cabdff1aSopenharmony_ciextern const AVCodecParser ff_cri_parser; 36cabdff1aSopenharmony_ciextern const AVCodecParser ff_dca_parser; 37cabdff1aSopenharmony_ciextern const AVCodecParser ff_dirac_parser; 38cabdff1aSopenharmony_ciextern const AVCodecParser ff_dnxhd_parser; 39cabdff1aSopenharmony_ciextern const AVCodecParser ff_dolby_e_parser; 40cabdff1aSopenharmony_ciextern const AVCodecParser ff_dpx_parser; 41cabdff1aSopenharmony_ciextern const AVCodecParser ff_dvaudio_parser; 42cabdff1aSopenharmony_ciextern const AVCodecParser ff_dvbsub_parser; 43cabdff1aSopenharmony_ciextern const AVCodecParser ff_dvdsub_parser; 44cabdff1aSopenharmony_ciextern const AVCodecParser ff_dvd_nav_parser; 45cabdff1aSopenharmony_ciextern const AVCodecParser ff_flac_parser; 46cabdff1aSopenharmony_ciextern const AVCodecParser ff_g723_1_parser; 47cabdff1aSopenharmony_ciextern const AVCodecParser ff_g729_parser; 48cabdff1aSopenharmony_ciextern const AVCodecParser ff_gif_parser; 49cabdff1aSopenharmony_ciextern const AVCodecParser ff_gsm_parser; 50cabdff1aSopenharmony_ciextern const AVCodecParser ff_h261_parser; 51cabdff1aSopenharmony_ciextern const AVCodecParser ff_h263_parser; 52cabdff1aSopenharmony_ciextern const AVCodecParser ff_h264_parser; 53cabdff1aSopenharmony_ciextern const AVCodecParser ff_hevc_parser; 54cabdff1aSopenharmony_ciextern const AVCodecParser ff_ipu_parser; 55cabdff1aSopenharmony_ciextern const AVCodecParser ff_jpeg2000_parser; 56cabdff1aSopenharmony_ciextern const AVCodecParser ff_mjpeg_parser; 57cabdff1aSopenharmony_ciextern const AVCodecParser ff_mlp_parser; 58cabdff1aSopenharmony_ciextern const AVCodecParser ff_mpeg4video_parser; 59cabdff1aSopenharmony_ciextern const AVCodecParser ff_mpegaudio_parser; 60cabdff1aSopenharmony_ciextern const AVCodecParser ff_mpegvideo_parser; 61cabdff1aSopenharmony_ciextern const AVCodecParser ff_opus_parser; 62cabdff1aSopenharmony_ciextern const AVCodecParser ff_png_parser; 63cabdff1aSopenharmony_ciextern const AVCodecParser ff_pnm_parser; 64cabdff1aSopenharmony_ciextern const AVCodecParser ff_qoi_parser; 65cabdff1aSopenharmony_ciextern const AVCodecParser ff_rv30_parser; 66cabdff1aSopenharmony_ciextern const AVCodecParser ff_rv40_parser; 67cabdff1aSopenharmony_ciextern const AVCodecParser ff_sbc_parser; 68cabdff1aSopenharmony_ciextern const AVCodecParser ff_sipr_parser; 69cabdff1aSopenharmony_ciextern const AVCodecParser ff_tak_parser; 70cabdff1aSopenharmony_ciextern const AVCodecParser ff_vc1_parser; 71cabdff1aSopenharmony_ciextern const AVCodecParser ff_vorbis_parser; 72cabdff1aSopenharmony_ciextern const AVCodecParser ff_vp3_parser; 73cabdff1aSopenharmony_ciextern const AVCodecParser ff_vp8_parser; 74cabdff1aSopenharmony_ciextern const AVCodecParser ff_vp9_parser; 75cabdff1aSopenharmony_ciextern const AVCodecParser ff_webp_parser; 76cabdff1aSopenharmony_ciextern const AVCodecParser ff_xbm_parser; 77cabdff1aSopenharmony_ciextern const AVCodecParser ff_xma_parser; 78cabdff1aSopenharmony_ci 79cabdff1aSopenharmony_ci#include "libavcodec/parser_list.c" 80cabdff1aSopenharmony_ci 81cabdff1aSopenharmony_ciconst AVCodecParser *av_parser_iterate(void **opaque) 82cabdff1aSopenharmony_ci{ 83cabdff1aSopenharmony_ci uintptr_t i = (uintptr_t)*opaque; 84cabdff1aSopenharmony_ci const AVCodecParser *p = parser_list[i]; 85cabdff1aSopenharmony_ci 86cabdff1aSopenharmony_ci if (p) 87cabdff1aSopenharmony_ci *opaque = (void*)(i + 1); 88cabdff1aSopenharmony_ci 89cabdff1aSopenharmony_ci return p; 90cabdff1aSopenharmony_ci} 91