From f338b15f804704780b636f874247e9811b466a4e Mon Sep 17 00:00:00 2001 From: ChenHengming Date: Fri, 29 Jan 2016 12:01:44 +0000 Subject: [PATCH] [mpp]: Add comments git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@561 6e48237b-75ef-9749-8fc9-41990f28c85a --- mpp/mpp.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mpp/mpp.h b/mpp/mpp.h index 5d91fefc..e7b999a6 100644 --- a/mpp/mpp.h +++ b/mpp/mpp.h @@ -75,6 +75,7 @@ public: mpp_list *mFrames; mpp_list *mTasks; + /* counters for debug */ RK_U32 mPacketPutCount; RK_U32 mPacketGetCount; RK_U32 mFramePutCount; @@ -95,6 +96,15 @@ public: MppBufferGroup mPacketGroup; MppBufferGroup mFrameGroup; + /* + * There are two threads for each decoder/encoder: codec thread and hal thread + * + * codec thread generate protocol syntax structure and send to hardware + * hal thread wait hardware return and do corresponding process + * + * Two threads work parallelly so that all decoder/encoder will share this + * acceleration mechanism + */ MppThread *mThreadCodec; MppThread *mThreadHal; @@ -115,7 +125,6 @@ private: RK_U32 mStatus; RK_U32 mFastMode; - Mpp(const Mpp &); Mpp &operator=(const Mpp &); };