Loading media/codec2/sfplugin/CCodecBufferChannel.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -1402,6 +1402,7 @@ void CCodecBufferChannel::stop() { if (mInputSurface != nullptr) { mInputSurface.reset(); } mPipelineWatcher.lock()->flush(); } void CCodecBufferChannel::reset() { Loading @@ -1409,6 +1410,7 @@ void CCodecBufferChannel::reset() { { Mutexed<Input>::Locked input(mInput); input->buffers.reset(new DummyInputBuffers("")); input->extraBuffers.flush(); } { Mutexed<Output>::Locked output(mOutput); Loading @@ -1425,6 +1427,8 @@ void CCodecBufferChannel::release() { blockPools->inputPool.reset(); blockPools->outputPoolIntf.reset(); } setCrypto(nullptr); setDescrambler(nullptr); } Loading media/libstagefright/Android.bp +21 −0 Original line number Diff line number Diff line Loading @@ -2,10 +2,21 @@ cc_library_headers { name: "libstagefright_headers", export_include_dirs: ["include"], vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media", "com.android.media.swcodec", ], min_sdk_version: "29", } cc_library_static { name: "libstagefright_esds", apex_available: [ "//apex_available:platform", "com.android.media", ], min_sdk_version: "29", srcs: ["ESDS.cpp"], Loading @@ -27,6 +38,11 @@ cc_library_static { cc_library_static { name: "libstagefright_metadatautils", apex_available: [ "//apex_available:platform", "com.android.media", ], min_sdk_version: "29", srcs: ["MetaDataUtils.cpp"], Loading Loading @@ -94,6 +110,11 @@ cc_library_shared { cc_library_static { name: "libstagefright_mpeg2extractor", apex_available: [ "//apex_available:platform", "com.android.media", ], min_sdk_version: "29", srcs: [ "Utils.cpp", Loading media/libstagefright/MediaCodec.cpp +12 −11 Original line number Diff line number Diff line Loading @@ -3036,11 +3036,11 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { int32_t async = 0; if (msg->findInt32("async", &async) && async) { if ((mState == CONFIGURED || mState == STARTED || mState == FLUSHED) && mSurface != NULL) { if (mSurface != NULL) { if (!mReleaseSurface) { mReleaseSurface.reset(new ReleaseSurface); } if (mSurface != mReleaseSurface->getSurface()) { status_t err = connectToSurface(mReleaseSurface->getSurface()); ALOGW_IF(err != OK, "error connecting to release surface: err = %d", err); if (err == OK && !(mFlags & kFlagUsesSoftwareRenderer)) { Loading @@ -3053,6 +3053,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { } } } } mReplyID = replyID; setState(msg->what() == kWhatStop ? STOPPING : RELEASING); Loading media/libstagefright/codecs/m4v_h263/dec/Android.bp +5 −0 Original line number Diff line number Diff line cc_library_static { name: "libstagefright_m4vh263dec", vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ], min_sdk_version: "29", shared_libs: ["liblog"], srcs: [ Loading media/libstagefright/codecs/m4v_h263/enc/Android.bp +5 −0 Original line number Diff line number Diff line cc_library_static { name: "libstagefright_m4vh263enc", vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ], min_sdk_version: "29", srcs: [ "src/bitstream_io.cpp", Loading Loading
media/codec2/sfplugin/CCodecBufferChannel.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -1402,6 +1402,7 @@ void CCodecBufferChannel::stop() { if (mInputSurface != nullptr) { mInputSurface.reset(); } mPipelineWatcher.lock()->flush(); } void CCodecBufferChannel::reset() { Loading @@ -1409,6 +1410,7 @@ void CCodecBufferChannel::reset() { { Mutexed<Input>::Locked input(mInput); input->buffers.reset(new DummyInputBuffers("")); input->extraBuffers.flush(); } { Mutexed<Output>::Locked output(mOutput); Loading @@ -1425,6 +1427,8 @@ void CCodecBufferChannel::release() { blockPools->inputPool.reset(); blockPools->outputPoolIntf.reset(); } setCrypto(nullptr); setDescrambler(nullptr); } Loading
media/libstagefright/Android.bp +21 −0 Original line number Diff line number Diff line Loading @@ -2,10 +2,21 @@ cc_library_headers { name: "libstagefright_headers", export_include_dirs: ["include"], vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media", "com.android.media.swcodec", ], min_sdk_version: "29", } cc_library_static { name: "libstagefright_esds", apex_available: [ "//apex_available:platform", "com.android.media", ], min_sdk_version: "29", srcs: ["ESDS.cpp"], Loading @@ -27,6 +38,11 @@ cc_library_static { cc_library_static { name: "libstagefright_metadatautils", apex_available: [ "//apex_available:platform", "com.android.media", ], min_sdk_version: "29", srcs: ["MetaDataUtils.cpp"], Loading Loading @@ -94,6 +110,11 @@ cc_library_shared { cc_library_static { name: "libstagefright_mpeg2extractor", apex_available: [ "//apex_available:platform", "com.android.media", ], min_sdk_version: "29", srcs: [ "Utils.cpp", Loading
media/libstagefright/MediaCodec.cpp +12 −11 Original line number Diff line number Diff line Loading @@ -3036,11 +3036,11 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { int32_t async = 0; if (msg->findInt32("async", &async) && async) { if ((mState == CONFIGURED || mState == STARTED || mState == FLUSHED) && mSurface != NULL) { if (mSurface != NULL) { if (!mReleaseSurface) { mReleaseSurface.reset(new ReleaseSurface); } if (mSurface != mReleaseSurface->getSurface()) { status_t err = connectToSurface(mReleaseSurface->getSurface()); ALOGW_IF(err != OK, "error connecting to release surface: err = %d", err); if (err == OK && !(mFlags & kFlagUsesSoftwareRenderer)) { Loading @@ -3053,6 +3053,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { } } } } mReplyID = replyID; setState(msg->what() == kWhatStop ? STOPPING : RELEASING); Loading
media/libstagefright/codecs/m4v_h263/dec/Android.bp +5 −0 Original line number Diff line number Diff line cc_library_static { name: "libstagefright_m4vh263dec", vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ], min_sdk_version: "29", shared_libs: ["liblog"], srcs: [ Loading
media/libstagefright/codecs/m4v_h263/enc/Android.bp +5 −0 Original line number Diff line number Diff line cc_library_static { name: "libstagefright_m4vh263enc", vendor_available: true, apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ], min_sdk_version: "29", srcs: [ "src/bitstream_io.cpp", Loading