Skip to content

onDecodedFrameStream #12

@YunChengKao

Description

@YunChengKao

How to convert ByteBuffer byteBuffer to jpeg format? Could you give a sample code? Thanks for your help.

@OverRide
public void onDecodedFrameStream(ByteBuffer byteBuffer, MediaCodec.BufferInfo bufferInfo, boolean b, int i, int i1, int i2) {
// decoded stream data
Log.d("onDecodedFrameStream","frame isIFrame == " + b +" width = "+ i +" height = "+ i1 +" stream FormatType = " + i2 );
}

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