[mpp_enc]: Register h265e api function

Change-Id: I820abce8043d2e8f5906bc086475332103d318e8
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
This commit is contained in:
sayon.chen
2019-12-20 16:32:27 +08:00
committed by Herman Chen
parent 828effef09
commit a8ef9864c1
2 changed files with 8 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
#include "h264e_api_v2.h" #include "h264e_api_v2.h"
#include "jpege_api.h" #include "jpege_api.h"
#include "h265e_api.h" #include "h265e_api.h"
#include "h265e_api_v2.h"
#include "vp8e_api.h" #include "vp8e_api.h"
#include "mpp_enc_impl.h" #include "mpp_enc_impl.h"
@@ -49,6 +50,9 @@ static const EncImplApi *enc_apis[] = {
#if HAVE_H264E #if HAVE_H264E
&api_h264e, &api_h264e,
#endif #endif
#if HAVE_H265E
&api_h265e,
#endif
}; };
typedef struct EncImplCtx_t { typedef struct EncImplCtx_t {

View File

@@ -25,11 +25,15 @@
#include "mpp_frame_impl.h" #include "mpp_frame_impl.h"
#include "hal_h264e_api_v2.h" #include "hal_h264e_api_v2.h"
#include "hal_h265e_api_v2.h"
static const MppEncHalApi *hw_enc_apis[] = { static const MppEncHalApi *hw_enc_apis[] = {
#if HAVE_H264E #if HAVE_H264E
&hal_api_h264e_v2, &hal_api_h264e_v2,
#endif #endif
#if HAVE_H265E
&hal_api_h265e_v2,
#endif
}; };
typedef struct MppEncHalImpl_t { typedef struct MppEncHalImpl_t {