[mpi]: enable H.263 decoder and rename libvpu to worker_vpu

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1001 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-07-11 09:58:43 +00:00
parent 04056315a1
commit ede81ae620
9 changed files with 36 additions and 26 deletions

View File

@@ -16,13 +16,14 @@ add_subdirectory(enc)
target_link_libraries(mpp_codec target_link_libraries(mpp_codec
codec_h264d
codec_vp9d
codec_h265d
codec_avsd codec_avsd
codec_h263d
codec_h264d
codec_h265d
codec_m2vd codec_m2vd
codec_mpg4d codec_mpg4d
codec_vp8d codec_vp8d
codec_vp9d
codec_dummy_enc codec_dummy_enc
codec_dummy_dec codec_dummy_dec
mpp_base) mpp_base)

View File

@@ -2,16 +2,19 @@
add_subdirectory(dummy) add_subdirectory(dummy)
add_subdirectory(avs)
add_subdirectory(h263)
add_subdirectory(h264) add_subdirectory(h264)
add_subdirectory(h265) add_subdirectory(h265)
add_subdirectory(vp9)
add_subdirectory(avs)
add_subdirectory(m2v) add_subdirectory(m2v)
add_subdirectory(mpg4) add_subdirectory(mpg4)
add_subdirectory(vp8) add_subdirectory(vp8)
add_subdirectory(vp9)

View File

@@ -24,6 +24,7 @@
#include "mpp_parser.h" #include "mpp_parser.h"
#include "h263d_api.h"
#include "h264d_api.h" #include "h264d_api.h"
#include "h265d_api.h" #include "h265d_api.h"
#include "vp9d_api.h" #include "vp9d_api.h"
@@ -38,13 +39,14 @@
* all decoder static register here * all decoder static register here
*/ */
static const ParserApi *parsers[] = { static const ParserApi *parsers[] = {
&api_h264d_parser,
&api_vp9d_parser,
&api_h265d_parser,
&api_avsd_parser, &api_avsd_parser,
&api_h263d_parser,
&api_h264d_parser,
&api_h265d_parser,
&api_m2vd_parser, &api_m2vd_parser,
&api_mpg4d_parser, &api_mpg4d_parser,
&api_vp8d_parser, &api_vp8d_parser,
&api_vp9d_parser,
&dummy_dec_parser, &dummy_dec_parser,
}; };

View File

@@ -22,6 +22,8 @@ add_subdirectory(rkdec/vp9d)
add_subdirectory(rkdec/avsd) add_subdirectory(rkdec/avsd)
add_subdirectory(vpu/h263d)
add_subdirectory(vpu/m2vd) add_subdirectory(vpu/m2vd)
add_subdirectory(vpu/mpg4d) add_subdirectory(vpu/mpg4d)
@@ -35,18 +37,19 @@ add_subdirectory(worker/libvpu)
add_subdirectory(worker/libv4l2) add_subdirectory(worker/libv4l2)
if(RKPLATFORM) if(RKPLATFORM)
set(RKPLAT_VPU vpu) set(RKPLAT_VPU worker_vpu)
endif(RKPLATFORM) endif(RKPLATFORM)
target_link_libraries(mpp_hal target_link_libraries(mpp_hal
hal_avsd
hal_h263d
hal_h264d hal_h264d
hal_h265d hal_h265d
hal_vp9d
hal_avsd
hal_m2vd hal_m2vd
hal_mpg4d hal_mpg4d
hal_vp8d hal_vp8d
hal_vp9d
hal_dummy hal_dummy
${RKPLAT_VPU} ${RKPLAT_VPU}
) )

View File

@@ -25,6 +25,7 @@
#include "mpp_hal.h" #include "mpp_hal.h"
#include "mpp_frame_impl.h" #include "mpp_frame_impl.h"
#include "hal_h263d_api.h"
#include "hal_h264d_api.h" #include "hal_h264d_api.h"
#include "hal_h265d_api.h" #include "hal_h265d_api.h"
#include "hal_vp9d_api.h" #include "hal_vp9d_api.h"
@@ -41,13 +42,14 @@
* all hardware api static register here * all hardware api static register here
*/ */
static const MppHalApi *hw_apis[] = { static const MppHalApi *hw_apis[] = {
&hal_api_avsd,
&hal_api_h263d,
&hal_api_h264d, &hal_api_h264d,
&hal_api_h265d, &hal_api_h265d,
&hal_api_vp9d,
&hal_api_avsd,
&hal_api_m2vd, &hal_api_m2vd,
&hal_api_mpg4d, &hal_api_mpg4d,
&hal_api_vp8d, &hal_api_vp8d,
&hal_api_vp9d,
&hal_api_dummy_dec, &hal_api_dummy_dec,
&hal_api_dummy_enc, &hal_api_dummy_enc,
}; };

View File

@@ -3,7 +3,7 @@
# add libvpu implement # add libvpu implement
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
if(RKPLATFORM) if(RKPLATFORM)
add_library(vpu STATIC add_library(worker_vpu STATIC
vpu.c vpu.c
) )
endif(RKPLATFORM) endif(RKPLATFORM)

View File

@@ -21,8 +21,9 @@ add_library(mpp_legacy_shared SHARED ${MPP_LEGACY_SRC})
set_target_properties(mpp_legacy_shared PROPERTIES FOLDER "mpp/legacy") set_target_properties(mpp_legacy_shared PROPERTIES FOLDER "mpp/legacy")
set_target_properties(mpp_legacy_shared PROPERTIES OUTPUT_NAME "vpu") set_target_properties(mpp_legacy_shared PROPERTIES OUTPUT_NAME "vpu")
set_target_properties(mpp_legacy_shared PROPERTIES CLEAN_DIRECT_OUTPUT 1) set_target_properties(mpp_legacy_shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)
if(RKPLATFORM)
target_link_libraries(mpp_legacy_shared vpu dl mpp_shared) if(RKPLATFORM)
target_link_libraries(mpp_legacy_shared worker_vpu dl mpp_shared)
else() else()
target_link_libraries(mpp_legacy_shared mpp_shared) target_link_libraries(mpp_legacy_shared mpp_shared)
endif() endif()

View File

@@ -37,7 +37,7 @@ typedef struct {
static MppCodingTypeInfo support_list[] = { static MppCodingTypeInfo support_list[] = {
{ MPP_CTX_DEC, MPP_VIDEO_CodingMPEG2, "dec", "mpeg2", }, { MPP_CTX_DEC, MPP_VIDEO_CodingMPEG2, "dec", "mpeg2", },
{ MPP_CTX_DEC, MPP_VIDEO_CodingMPEG4, "dec", "mpeg4", }, { MPP_CTX_DEC, MPP_VIDEO_CodingMPEG4, "dec", "mpeg4", },
// { MPP_CTX_DEC, MPP_VIDEO_CodingH263, "dec", "h.263", }, { MPP_CTX_DEC, MPP_VIDEO_CodingH263, "dec", "h.263", },
{ MPP_CTX_DEC, MPP_VIDEO_CodingAVC, "dec", "h.264/AVC", }, { MPP_CTX_DEC, MPP_VIDEO_CodingAVC, "dec", "h.264/AVC", },
{ MPP_CTX_DEC, MPP_VIDEO_CodingHEVC, "dec", "h.265/HEVC", }, { MPP_CTX_DEC, MPP_VIDEO_CodingHEVC, "dec", "h.265/HEVC", },
{ MPP_CTX_DEC, MPP_VIDEO_CodingVP8, "dec", "vp8", }, { MPP_CTX_DEC, MPP_VIDEO_CodingVP8, "dec", "vp8", },

View File

@@ -56,6 +56,8 @@
* +--------------+ +-----------+ +-----------+ +--------------+ * +--------------+ +-----------+ +-----------+ +--------------+
*/ */
#ifdef __cplusplus
class Mpp class Mpp
{ {
public: public:
@@ -127,12 +129,8 @@ private:
Mpp &operator=(const Mpp &); Mpp &operator=(const Mpp &);
}; };
#ifdef __cplusplus
extern "C" { extern "C" {
#endif
#ifdef __cplusplus
} }
#endif #endif