mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-08 02:20:06 +08:00
[mpp_enc]: Register h265e api function
Change-Id: I820abce8043d2e8f5906bc086475332103d318e8 Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
This commit is contained in:
@@ -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 {
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user