Skip to content

Record bitmap from sequence image of camera TextureView #67

@HeroSony

Description

@HeroSony

Hello, thank for amazing package.

private void changeBitmap() {
        if (mCurrentBitmap == mBitmap1) {
            mCurrentBitmap = mBitmap2;
        } else {
            mCurrentBitmap = mBitmap1;
        }

        mRenderPipeline = EZFilter.input(mCurrentBitmap)
                .addFilter(new LookupRender(RecordBitmapActivity.this, R.drawable.langman))
                .addFilter(new WobbleRender())
                .enableRecord("/sdcard/recordBitmap.mp4", true, false)
                .into(mRenderView);

        for (GLRender render : mRenderPipeline.getEndPointRenders()) {
            if (render instanceof ISupportRecord) {
                mSupportRecord = (ISupportRecord) render;
            }
        }
    }

The example above, mCurrentBitmap is getted from fix image.
Currently, I have Camera TextureView and do a segmentation frame from Camera TextureView into sequence bitmaps.

So how to pip every bitmap frames into mRenderPipeline = EZFilter.input(mCurrentBitmap) and record it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions