Video Coding Exit_Picture

本文详细解析了视频参数处理过程,特别是如何通过特定逻辑操作实现最后一帧的显示优化,涉及视频帧列表、解码帧与显示帧之间的关系。

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

recfr.p_Vid = p_Vid;
VideoParameters *p_Vid1 = recfr.p_Vid;
StorablePicture* refPic = p_Vid1->ppSliceList[0]->listX[0][0];//p_Vid->ppSliceList[0]->listX[0][0];

if(p_Vid->dec_picture->frame_num == 8)
{   
// Test for ssliceList
for(tempI = 0; tempI < refPic -> size_x; tempI++)
    for(tempJ = 0; tempJ < refPic -> size_y; tempJ++)
        refPic -> imgY[tempJ][tempI] = 0;
for(tempI = 0; tempI < (refPic -> size_x >> 1); tempI++)
    for(tempJ = 0; tempJ < (refPic -> size_y >> 1); tempJ++)
    {
        refPic -> imgUV[0][tempJ][tempI] = 0;
        refPic -> imgUV[1][tempJ][tempI] = 0;
    }
}

From this simple test, we can see that the listX[0][0] is the decoding frame’s last display frame.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值