[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
This commit is contained in:
ChenHengming 2015-08-24 01:08:38 +00:00
parent 1666e01904
commit 3fdc357e7d
3 changed files with 9 additions and 5 deletions

View file

@ -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

View file

@ -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)
{

View file

@ -64,7 +64,7 @@ typedef struct {
/*
* buffer information
*/
MppBufferInfo buffer;
MppBuffer buffer;
} MppFrameImpl;