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;