Loading media/libstagefright/codecs/avcdec/SoftAVCDec.cpp +11 −11 Original line number Diff line number Diff line Loading @@ -492,16 +492,6 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) { List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex); List<BufferInfo *> &outQueue = getPortQueue(kOutputPortIndex); /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } while (!outQueue.empty()) { BufferInfo *inInfo; OMX_BUFFERHEADERTYPE *inHeader; Loading Loading @@ -664,7 +654,7 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) { outInfo = NULL; notifyFillBufferDone(outHeader); outHeader = NULL; } else { } else if (mIsInFlush) { /* If in flush mode and no output is returned by the codec, * then come out of flush mode */ mIsInFlush = false; Loading @@ -685,6 +675,16 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) { } } /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } if (inHeader != NULL) { inInfo->mOwnedByUs = false; inQueue.erase(inQueue.begin()); Loading media/libstagefright/codecs/hevcdec/SoftHEVC.cpp +11 −11 Original line number Diff line number Diff line Loading @@ -451,16 +451,6 @@ void SoftHEVC::onQueueFilled(OMX_U32 portIndex) { List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex); List<BufferInfo *> &outQueue = getPortQueue(kOutputPortIndex); /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } while (!outQueue.empty()) { BufferInfo *inInfo; OMX_BUFFERHEADERTYPE *inHeader; Loading Loading @@ -590,7 +580,7 @@ void SoftHEVC::onQueueFilled(OMX_U32 portIndex) { outInfo = NULL; notifyFillBufferDone(outHeader); outHeader = NULL; } else { } else if (mIsInFlush) { /* If in flush mode and no output is returned by the codec, * then come out of flush mode */ mIsInFlush = false; Loading @@ -611,6 +601,16 @@ void SoftHEVC::onQueueFilled(OMX_U32 portIndex) { } } /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } // TODO: Handle more than one picture data if (inHeader != NULL) { inInfo->mOwnedByUs = false; Loading media/libstagefright/codecs/mpeg2dec/SoftMPEG2.cpp +11 −11 Original line number Diff line number Diff line Loading @@ -553,16 +553,6 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { setParams(mStride); } /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } while (!outQueue.empty()) { BufferInfo *inInfo; OMX_BUFFERHEADERTYPE *inHeader; Loading Loading @@ -742,7 +732,7 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { notifyFillBufferDone(outHeader); outHeader = NULL; } } else { } else if (mIsInFlush) { /* If in flush mode and no output is returned by the codec, * then come out of flush mode */ mIsInFlush = false; Loading @@ -763,6 +753,16 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { } } /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } // TODO: Handle more than one picture data if (inHeader != NULL) { inInfo->mOwnedByUs = false; Loading Loading
media/libstagefright/codecs/avcdec/SoftAVCDec.cpp +11 −11 Original line number Diff line number Diff line Loading @@ -492,16 +492,6 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) { List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex); List<BufferInfo *> &outQueue = getPortQueue(kOutputPortIndex); /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } while (!outQueue.empty()) { BufferInfo *inInfo; OMX_BUFFERHEADERTYPE *inHeader; Loading Loading @@ -664,7 +654,7 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) { outInfo = NULL; notifyFillBufferDone(outHeader); outHeader = NULL; } else { } else if (mIsInFlush) { /* If in flush mode and no output is returned by the codec, * then come out of flush mode */ mIsInFlush = false; Loading @@ -685,6 +675,16 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) { } } /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } if (inHeader != NULL) { inInfo->mOwnedByUs = false; inQueue.erase(inQueue.begin()); Loading
media/libstagefright/codecs/hevcdec/SoftHEVC.cpp +11 −11 Original line number Diff line number Diff line Loading @@ -451,16 +451,6 @@ void SoftHEVC::onQueueFilled(OMX_U32 portIndex) { List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex); List<BufferInfo *> &outQueue = getPortQueue(kOutputPortIndex); /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } while (!outQueue.empty()) { BufferInfo *inInfo; OMX_BUFFERHEADERTYPE *inHeader; Loading Loading @@ -590,7 +580,7 @@ void SoftHEVC::onQueueFilled(OMX_U32 portIndex) { outInfo = NULL; notifyFillBufferDone(outHeader); outHeader = NULL; } else { } else if (mIsInFlush) { /* If in flush mode and no output is returned by the codec, * then come out of flush mode */ mIsInFlush = false; Loading @@ -611,6 +601,16 @@ void SoftHEVC::onQueueFilled(OMX_U32 portIndex) { } } /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } // TODO: Handle more than one picture data if (inHeader != NULL) { inInfo->mOwnedByUs = false; Loading
media/libstagefright/codecs/mpeg2dec/SoftMPEG2.cpp +11 −11 Original line number Diff line number Diff line Loading @@ -553,16 +553,6 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { setParams(mStride); } /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } while (!outQueue.empty()) { BufferInfo *inInfo; OMX_BUFFERHEADERTYPE *inHeader; Loading Loading @@ -742,7 +732,7 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { notifyFillBufferDone(outHeader); outHeader = NULL; } } else { } else if (mIsInFlush) { /* If in flush mode and no output is returned by the codec, * then come out of flush mode */ mIsInFlush = false; Loading @@ -763,6 +753,16 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { } } /* If input EOS is seen and decoder is not in flush mode, * set the decoder in flush mode. * There can be a case where EOS is sent along with last picture data * In that case, only after decoding that input data, decoder has to be * put in flush. This case is handled here */ if (mReceivedEOS && !mIsInFlush) { setFlushMode(); } // TODO: Handle more than one picture data if (inHeader != NULL) { inInfo->mOwnedByUs = false; Loading