android播放vp8透明,surfaceview - Android MediaCodec encode and decode using vp8 format - Stack Overflow...

I want to develop an app, which will have 2 buttons and SurfaceView(Actually a class extends SurfaceView implements SurfaceHolder.Callback).

When user click on button1 - with ScreenCapture, I will get an image and using mediacodec, I will do vp8 encoding and the output saving in bytebuffer.(I am not saving in a file location)

When user click on button2 - I need to show it on SurfaceView with that output of bytebuffer which is captured.

i have tried as

MediaCodec decoder = MediaCodec.createDecoderByType("video/x-vnd.on2.vp8");

decoder.dequeueOutputBuffer(mBufferInfo, DEFAULT_TIMEOUT_US);

.....

but not able to update the surfaceview.

How can i update the surfaceview using bytebuffer data?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值