meida resolution change

本文讨论了当视频流中出现分辨率变化时,如何调整MediaCodec以适应新的分辨率要求。如果新的分辨率小于初始化时分配的帧大小,则通常不需要重启解码器。然而,若新分辨率大于已分配表面的尺寸,则必须重新启动解码器并分配适合新分辨率的表面。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



refer:https://software.intel.com/en-us/forums/topic/389609

The Media SDK decode sample should handle this case by default without the need to reset the pipeline. But this assumes that the new  resolution is smaller (W and H) so that the new decoded frames fits on the pre-allocated surfaces for decode. If the new resolution is greater than the frames size allocated at pipeline initialization, then the application must restart decoder, free surfaces, and then allocate surfaces that can fit the new frame resolution.


you can refer:  http://developer.android.com/reference/android/media/MediaCodec.html

or http://stackoverflow.com/questions/22820668/mediacodec-resolution-change-in-video-stream-causes-decoder-acodec-to-assert

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值