From 3fdc357e7d396eb4018bbeb7ef81cda80f9cb574 Mon Sep 17 00:00:00 2001 From: ChenHengming Date: Mon, 24 Aug 2015 01:08:38 +0000 Subject: [PATCH] [mpp_frame]: use buffer handle in MppFrame git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@151 6e48237b-75ef-9749-8fc9-41990f28c85a --- inc/mpp_frame.h | 10 +++++++--- mpp/mpp_frame.cpp | 2 +- mpp/mpp_frame_impl.h | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/inc/mpp_frame.h b/inc/mpp_frame.h index 1f57cbfe..a9e0f534 100644 --- a/inc/mpp_frame.h +++ b/inc/mpp_frame.h @@ -136,7 +136,7 @@ extern "C" { /* * MppFrame interface */ -MPP_RET mpp_frame_init(MppFrame *frame, RK_U8 *data, RK_U32 size); +MPP_RET mpp_frame_init(MppFrame *frame); MPP_RET mpp_frame_deinit(MppFrame frame); /* @@ -156,8 +156,12 @@ RK_S64 mpp_frame_get_pts(const MppFrame frame); void mpp_frame_set_pts(MppFrame frame, RK_S64 pts); RK_S64 mpp_frame_get_dts(const MppFrame frame); void mpp_frame_set_dts(MppFrame frame, RK_S64 dts); -MppBufferInfo mpp_frame_get_info(const MppFrame frame); -void mpp_frame_set_info(const MppFrame frame, MppBufferInfo info); + +/* + * buffer parameter + */ +MppBuffer mpp_frame_get_buffer(const MppFrame frame); +void mpp_frame_set_buffer(const MppFrame frame, MppBuffer buffer); /* * color related parameter diff --git a/mpp/mpp_frame.cpp b/mpp/mpp_frame.cpp index 7c1d360b..f087a05e 100644 --- a/mpp/mpp_frame.cpp +++ b/mpp/mpp_frame.cpp @@ -32,7 +32,7 @@ MPP_FRAME_ACCESSORS(MppFrameImpl, MppFrameColorPrimaries, color_primaries) MPP_FRAME_ACCESSORS(MppFrameImpl, MppFrameColorTransferCharacteristic, color_trc) MPP_FRAME_ACCESSORS(MppFrameImpl, MppFrameColorSpace, colorspace) MPP_FRAME_ACCESSORS(MppFrameImpl, MppFrameChromaLocation, chroma_location) -MPP_FRAME_ACCESSORS(MppFrameImpl, MppBufferInfo, buffer) +MPP_FRAME_ACCESSORS(MppFrameImpl, MppBuffer, buffer) MPP_RET mpp_frame_init(MppFrame *frame) { diff --git a/mpp/mpp_frame_impl.h b/mpp/mpp_frame_impl.h index b1c48c2e..03c99a8b 100644 --- a/mpp/mpp_frame_impl.h +++ b/mpp/mpp_frame_impl.h @@ -64,7 +64,7 @@ typedef struct { /* * buffer information */ - MppBufferInfo buffer; + MppBuffer buffer; } MppFrameImpl;