[cmake]: add codec option

Use mpp/codecs.cmake to enable/disable codecs in order to reduce library
size.
All decoder and encoder can be disbaled now. Default all open.

Change-Id: I3307460df12f2f3fc82898d823ab2da12002d6c6
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen 2016-09-10 15:22:40 +08:00
parent 2ee1843c54
commit 30c6bd08c1
28 changed files with 479 additions and 287 deletions

View file

@ -43,14 +43,30 @@ static const ParserApi *parsers[] = {
#if HAVE_AVSD
&api_avsd_parser,
#endif
#if HAVE_H263D
&api_h263d_parser,
#endif
#if HAVE_H264D
&api_h264d_parser,
#endif
#if HAVE_H265D
&api_h265d_parser,
#endif
#if HAVE_MPEG2D
&api_m2vd_parser,
#endif
#if HAVE_MPEG4D
&api_mpg4d_parser,
#endif
#if HAVE_VP8D
&api_vp8d_parser,
#endif
#if HAVE_VP9D
&api_vp9d_parser,
#endif
#if HAVE_JPEGD
&api_jpegd_parser,
#endif
&dummy_dec_parser,
};