diff --git a/mpp/codec/mpp_enc_impl.cpp b/mpp/codec/mpp_enc_impl.cpp index f8f222a3..28a955f6 100644 --- a/mpp/codec/mpp_enc_impl.cpp +++ b/mpp/codec/mpp_enc_impl.cpp @@ -24,6 +24,7 @@ #include "h264e_api_v2.h" #include "jpege_api.h" #include "h265e_api.h" +#include "h265e_api_v2.h" #include "vp8e_api.h" #include "mpp_enc_impl.h" @@ -49,6 +50,9 @@ static const EncImplApi *enc_apis[] = { #if HAVE_H264E &api_h264e, #endif +#if HAVE_H265E + &api_h265e, +#endif }; typedef struct EncImplCtx_t { diff --git a/mpp/hal/mpp_enc_hal.cpp b/mpp/hal/mpp_enc_hal.cpp index cf4c676d..e9795242 100644 --- a/mpp/hal/mpp_enc_hal.cpp +++ b/mpp/hal/mpp_enc_hal.cpp @@ -25,11 +25,15 @@ #include "mpp_frame_impl.h" #include "hal_h264e_api_v2.h" +#include "hal_h265e_api_v2.h" static const MppEncHalApi *hw_enc_apis[] = { #if HAVE_H264E &hal_api_h264e_v2, #endif +#if HAVE_H265E + &hal_api_h265e_v2, +#endif }; typedef struct MppEncHalImpl_t {