mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[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:
22
mpp/mpi.cpp
22
mpp/mpi.cpp
@@ -35,17 +35,39 @@ typedef struct {
|
||||
} MppCodingTypeInfo;
|
||||
|
||||
static MppCodingTypeInfo support_list[] = {
|
||||
#if HAVE_MPEG2D
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingMPEG2, "dec", "mpeg2", },
|
||||
#endif
|
||||
#if HAVE_MPEG4D
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingMPEG4, "dec", "mpeg4", },
|
||||
#endif
|
||||
#if HAVE_H263D
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingH263, "dec", "h.263", },
|
||||
#endif
|
||||
#if HAVE_H264D
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingAVC, "dec", "h.264/AVC", },
|
||||
#endif
|
||||
#if HAVE_H265D
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingHEVC, "dec", "h.265/HEVC", },
|
||||
#endif
|
||||
#if HAVE_VP8D
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingVP8, "dec", "vp8", },
|
||||
#endif
|
||||
#if HAVE_VP9D
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingVP9, "dec", "VP9", },
|
||||
#endif
|
||||
#if HAVE_AVSD
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingAVS, "dec", "avs+", },
|
||||
#endif
|
||||
#if HAVE_JPEGD
|
||||
{ MPP_CTX_DEC, MPP_VIDEO_CodingMJPEG, "dec", "jpeg", },
|
||||
#endif
|
||||
#if HAVE_H264E
|
||||
{ MPP_CTX_ENC, MPP_VIDEO_CodingAVC, "enc", "h.264/AVC", },
|
||||
#endif
|
||||
#if HAVE_JPEGE
|
||||
{ MPP_CTX_ENC, MPP_VIDEO_CodingMJPEG, "enc", "jpeg", },
|
||||
#endif
|
||||
};
|
||||
|
||||
#define check_mpp_ctx(ctx) _check_mpp_ctx(ctx, __FUNCTION__)
|
||||
|
Reference in New Issue
Block a user