Loading media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -614,6 +614,7 @@ OMX_ERRORTYPE SoftAVC::initEncoder() { IV_STATUS_T status; WORD32 level; uint32_t displaySizeY; CHECK(!mStarted); OMX_ERRORTYPE errType = OMX_ErrorNone; Loading Loading @@ -917,6 +918,9 @@ OMX_ERRORTYPE SoftAVC::releaseEncoder() { } } // clear other pointers into the space being free()d mCodecCtx = NULL; mStarted = false; return OMX_ErrorNone; Loading Loading @@ -1509,6 +1513,14 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) { return; } void SoftAVC::onReset() { SoftVideoEncoderOMXComponent::onReset(); if (releaseEncoder() != OMX_ErrorNone) { ALOGW("releaseEncoder failed"); } } } // namespace android android::SoftOMXComponent *createSoftOMXComponent( Loading media/libstagefright/codecs/avcenc/SoftAVCEnc.h +2 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,8 @@ struct SoftAVC : public SoftVideoEncoderOMXComponent { protected: virtual ~SoftAVC(); virtual void onReset(); private: enum { kNumBuffers = 2, Loading Loading
media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -614,6 +614,7 @@ OMX_ERRORTYPE SoftAVC::initEncoder() { IV_STATUS_T status; WORD32 level; uint32_t displaySizeY; CHECK(!mStarted); OMX_ERRORTYPE errType = OMX_ErrorNone; Loading Loading @@ -917,6 +918,9 @@ OMX_ERRORTYPE SoftAVC::releaseEncoder() { } } // clear other pointers into the space being free()d mCodecCtx = NULL; mStarted = false; return OMX_ErrorNone; Loading Loading @@ -1509,6 +1513,14 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) { return; } void SoftAVC::onReset() { SoftVideoEncoderOMXComponent::onReset(); if (releaseEncoder() != OMX_ErrorNone) { ALOGW("releaseEncoder failed"); } } } // namespace android android::SoftOMXComponent *createSoftOMXComponent( Loading
media/libstagefright/codecs/avcenc/SoftAVCEnc.h +2 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,8 @@ struct SoftAVC : public SoftVideoEncoderOMXComponent { protected: virtual ~SoftAVC(); virtual void onReset(); private: enum { kNumBuffers = 2, Loading