mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 01:52:46 +08:00
[mpp]: remove unused variable
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@211 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -52,9 +52,7 @@ Mpp::Mpp(MppCtxType type, MppCodingType coding)
|
|||||||
mCoding(coding),
|
mCoding(coding),
|
||||||
mStatus(0),
|
mStatus(0),
|
||||||
mDec(NULL),
|
mDec(NULL),
|
||||||
mEnc(NULL),
|
mEnc(NULL)
|
||||||
mTask(NULL),
|
|
||||||
mTaskNum(2)
|
|
||||||
{
|
{
|
||||||
switch (mType) {
|
switch (mType) {
|
||||||
case MPP_CTX_DEC : {
|
case MPP_CTX_DEC : {
|
||||||
@@ -66,7 +64,6 @@ Mpp::Mpp(MppCtxType type, MppCodingType coding)
|
|||||||
mTheadCodec = new MppThread(mpp_dec_parser_thread, this);
|
mTheadCodec = new MppThread(mpp_dec_parser_thread, this);
|
||||||
mThreadHal = new MppThread(mpp_dec_hal_thread, this);
|
mThreadHal = new MppThread(mpp_dec_hal_thread, this);
|
||||||
|
|
||||||
mTask = mpp_malloc(HalDecTask*, mTaskNum);
|
|
||||||
mpp_buffer_group_normal_get(&mInternalGroup, MPP_BUFFER_TYPE_ION);
|
mpp_buffer_group_normal_get(&mInternalGroup, MPP_BUFFER_TYPE_ION);
|
||||||
mpp_buffer_group_normal_get(&mPacketGroup, MPP_BUFFER_TYPE_NORMAL);
|
mpp_buffer_group_normal_get(&mPacketGroup, MPP_BUFFER_TYPE_NORMAL);
|
||||||
mpp_buffer_group_limited_get(&mFrameGroup, MPP_BUFFER_TYPE_ION);
|
mpp_buffer_group_limited_get(&mFrameGroup, MPP_BUFFER_TYPE_ION);
|
||||||
@@ -81,7 +78,6 @@ Mpp::Mpp(MppCtxType type, MppCodingType coding)
|
|||||||
mTheadCodec = new MppThread(mpp_enc_control_thread, this);
|
mTheadCodec = new MppThread(mpp_enc_control_thread, this);
|
||||||
mThreadHal = new MppThread(mpp_dec_hal_thread, this);
|
mThreadHal = new MppThread(mpp_dec_hal_thread, this);
|
||||||
|
|
||||||
mTask = mpp_malloc(HalDecTask*, mTaskNum);
|
|
||||||
mpp_buffer_group_normal_get(&mInternalGroup, MPP_BUFFER_TYPE_ION);
|
mpp_buffer_group_normal_get(&mInternalGroup, MPP_BUFFER_TYPE_ION);
|
||||||
mpp_buffer_group_normal_get(&mPacketGroup, MPP_BUFFER_TYPE_NORMAL);
|
mpp_buffer_group_normal_get(&mPacketGroup, MPP_BUFFER_TYPE_NORMAL);
|
||||||
mpp_buffer_group_limited_get(&mFrameGroup, MPP_BUFFER_TYPE_ION);
|
mpp_buffer_group_limited_get(&mFrameGroup, MPP_BUFFER_TYPE_ION);
|
||||||
@@ -91,7 +87,7 @@ Mpp::Mpp(MppCtxType type, MppCodingType coding)
|
|||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mFrames && mPackets && mTask &&
|
if (mFrames && mPackets &&
|
||||||
(mDec || mEnc) &&
|
(mDec || mEnc) &&
|
||||||
mTheadCodec && mThreadHal &&
|
mTheadCodec && mThreadHal &&
|
||||||
mPacketGroup && mFrameGroup) {
|
mPacketGroup && mFrameGroup) {
|
||||||
@@ -154,7 +150,6 @@ void Mpp::clear()
|
|||||||
mpp_buffer_group_put(mFrameGroup);
|
mpp_buffer_group_put(mFrameGroup);
|
||||||
mFrameGroup = NULL;
|
mFrameGroup = NULL;
|
||||||
}
|
}
|
||||||
mpp_free(mTask);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET Mpp::put_packet(MppPacket packet)
|
MPP_RET Mpp::put_packet(MppPacket packet)
|
||||||
|
Reference in New Issue
Block a user