formats you want to support */
/**
- * simple call to register all the codecs.
+ * simple call to register all the codecs.
*/
void avcodec_register_all(void)
{
static int inited = 0;
-
+
if (inited != 0)
- return;
+ return;
inited = 1;
/* encoders */
#ifdef CONFIG_LJPEG_ENCODER
register_avcodec(&ljpeg_encoder);
#endif //CONFIG_LJPEG_ENCODER
+#ifdef CONFIG_JPEGLS_ENCODER
+ register_avcodec(&jpegls_encoder);
+#endif //CONFIG_JPEGLS_ENCODER
#ifdef CONFIG_ZLIB
#ifdef CONFIG_PNG_ENCODER
register_avcodec(&png_encoder);
#ifdef CONFIG_QDM2_DECODER
register_avcodec(&qdm2_decoder);
#endif //CONFIG_QDM2_DECODER
+#ifdef CONFIG_COOK_DECODER
+ register_avcodec(&cook_decoder);
+#endif //CONFIG_COOK_DECODER
#ifdef CONFIG_RAWVIDEO_DECODER
register_avcodec(&rawvideo_decoder);
#endif //CONFIG_RAWVIDEO_DECODER
#endif //CONFIG_ENCODERS
#endif /* AMR_WB */
+#ifdef CONFIG_BMP_DECODER
+ register_avcodec(&bmp_decoder);
+#endif
+
/* pcm codecs */
#if defined (CONFIG_ENCODERS) && defined (CONFIG_DECODERS)
#define PCM_CODEC(id, name) \
#undef PCM_CODEC
/* subtitles */
-#ifdef CONFIG_ENCODERS
- register_avcodec(&dvbsub_encoder);
+#ifdef CONFIG_DVDSUB_DECODER
+ register_avcodec(&dvdsub_decoder);
+#endif
+#ifdef CONFIG_DVDSUB_ENCODER
+ register_avcodec(&dvdsub_encoder);
#endif
-#ifdef CONFIG_DECODERS
- register_avcodec(&dvdsub_decoder);
+#ifdef CONFIG_DVBSUB_DECODER
register_avcodec(&dvbsub_decoder);
#endif
+#ifdef CONFIG_DVBSUB_ENCODER
+ register_avcodec(&dvbsub_encoder);
+#endif
- /* parsers */
+ /* parsers */
av_register_codec_parser(&mpegvideo_parser);
av_register_codec_parser(&mpeg4video_parser);
#if defined(CONFIG_H261_DECODER) || defined(CONFIG_H261_ENCODER)
#ifdef CONFIG_AC3
av_register_codec_parser(&ac3_parser);
#endif
+
+#ifdef CONFIG_DVDSUB_DECODER
av_register_codec_parser(&dvdsub_parser);
+#endif
+#ifdef CONFIG_DVBSUB_DECODER
av_register_codec_parser(&dvbsub_parser);
+#endif
}