rockchip-linux / mpp

Media Process Platform (MPP) module
527 stars 161 forks source link

Expose MppFrameStatus to the mpp_frame.h #425

Open hbiyik opened 1 year ago

hbiyik commented 1 year ago

This is a feature request.

After the frame is decoded, there are people who are interested in the frame type. IE: P, I or B frame. I see this information is already a part MppFrameStatus which is a part of MppFrame, but is not exposed to mpp_frame.h

image

is it possible to add somehting MppFrameStatus* mpp_frame_get_status(const MppFrame frame);

to the file: https://github.com/rockchip-linux/mpp/blob/e34f0dd1520181eda061f91883c670504432fb8f/inc/mpp_frame.h#L422

using MPP_FRAME_ACCESSORS?

HermanChen commented 1 year ago

The MppFrame may not be the decoded frame for it will pass the iep deinterlace flow. Then the frame rate may change and frame I, P, B type will not be accurate. The MppFrameStatus is used mainly in encoder part.

zoelechat commented 1 year ago

Whatever it's called internally, might it be possible that decoder reports frame type in any way? Like most (if not all) decoders actually.

HermanChen commented 1 year ago

It is possible to do so.