You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
3.2KB

  1. /*
  2. * Register all the formats and protocols
  3. * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. */
  19. #include "avformat.h"
  20. /* If you do not call this function, then you can select exactly which
  21. formats you want to support */
  22. /**
  23. * Initialize libavcodec and register all the codecs and formats.
  24. */
  25. void av_register_all(void)
  26. {
  27. avcodec_init();
  28. avcodec_register_all();
  29. mpegps_init();
  30. mpegts_init();
  31. #ifdef CONFIG_ENCODERS
  32. crc_init();
  33. img_init();
  34. img2_init();
  35. #endif //CONFIG_ENCODERS
  36. raw_init();
  37. mp3_init();
  38. rm_init();
  39. #ifdef CONFIG_RISKY
  40. asf_init();
  41. #endif
  42. #ifdef CONFIG_ENCODERS
  43. avienc_init();
  44. #endif //CONFIG_ENCODERS
  45. avidec_init();
  46. ff_wav_init();
  47. swf_init();
  48. au_init();
  49. #ifdef CONFIG_ENCODERS
  50. gif_init();
  51. #endif //CONFIG_ENCODERS
  52. mov_init();
  53. #ifdef CONFIG_ENCODERS
  54. movenc_init();
  55. jpeg_init();
  56. #endif //CONFIG_ENCODERS
  57. ff_dv_init();
  58. fourxm_init();
  59. #ifdef CONFIG_ENCODERS
  60. flvenc_init();
  61. #endif //CONFIG_ENCODERS
  62. flvdec_init();
  63. str_init();
  64. roq_init();
  65. ipmovie_init();
  66. wc3_init();
  67. westwood_init();
  68. film_init();
  69. idcin_init();
  70. flic_init();
  71. vmd_init();
  72. #if defined(AMR_NB) || defined(AMR_NB_FIXED) || defined(AMR_WB)
  73. amr_init();
  74. #endif
  75. yuv4mpeg_init();
  76. #ifdef CONFIG_VORBIS
  77. ogg_init();
  78. #endif
  79. #ifndef CONFIG_WIN32
  80. ffm_init();
  81. #endif
  82. #ifdef CONFIG_VIDEO4LINUX
  83. video_grab_init();
  84. #endif
  85. #if defined(CONFIG_AUDIO_OSS) || defined(CONFIG_AUDIO_BEOS)
  86. audio_init();
  87. #endif
  88. #ifdef CONFIG_DV1394
  89. dv1394_init();
  90. #endif
  91. nut_init();
  92. matroska_init();
  93. #ifdef CONFIG_ENCODERS
  94. /* image formats */
  95. av_register_image_format(&pnm_image_format);
  96. av_register_image_format(&pbm_image_format);
  97. av_register_image_format(&pgm_image_format);
  98. av_register_image_format(&ppm_image_format);
  99. av_register_image_format(&pam_image_format);
  100. av_register_image_format(&pgmyuv_image_format);
  101. av_register_image_format(&yuv_image_format);
  102. #ifdef CONFIG_ZLIB
  103. av_register_image_format(&png_image_format);
  104. #endif
  105. av_register_image_format(&jpeg_image_format);
  106. av_register_image_format(&gif_image_format);
  107. av_register_image_format(&sgi_image_format);
  108. #endif //CONFIG_ENCODERS
  109. /* file protocols */
  110. register_protocol(&file_protocol);
  111. register_protocol(&pipe_protocol);
  112. #ifdef CONFIG_NETWORK
  113. rtsp_init();
  114. rtp_init();
  115. register_protocol(&udp_protocol);
  116. register_protocol(&rtp_protocol);
  117. register_protocol(&tcp_protocol);
  118. register_protocol(&http_protocol);
  119. #endif
  120. }