mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 04:40:39 +01:00
[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:
parent
1666e01904
commit
3fdc357e7d
3 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ typedef struct {
|
|||
/*
|
||||
* buffer information
|
||||
*/
|
||||
MppBufferInfo buffer;
|
||||
MppBuffer buffer;
|
||||
} MppFrameImpl;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue