SuperIC社区_

标题: 7802ATSC设置Close Caption之后切换Aspect Ratio或Resolution的异常问题 [打印本页]

作者: HaoQiao    时间: 2016-7-25 11:53
标题: 7802ATSC设置Close Caption之后切换Aspect Ratio或Resolution的异常问题
现象:使用带大量CC字幕的ATSC码流进行播放,之后到Close Caption菜单随意进行设置,退出Close Caption切换Aspect Ratio,直至出现现象:HDMI和CVBS黑屏,但都有声音输出;或者设置Close Caption菜单之后退出切换Resolution,直至出现现象:HDMI有视频无声音,CVBS音视频都没有输出。


原因:设置Close Caption菜单属性之后,退出主菜单时对CC字幕的显示属性通过底层lib设置引起,不需要通过lib设置CC属性参数,只需要在上层设置即可:
static BOOLEAN _MApp_ZUI_ACT_HandleCCSettingMenuKey(VIRTUAL_KEY_CODE key)
{
    switch (key)
    {
        ......
                               
        case VK_EXIT:
        case VK_MENU:
        {
#if ATSC_CC_ENABLE
            MApp_SetCCSetting(&inputCCSettings);
#if 0           
            stCCAttrSettings stTempAttr;
            stTempAttr.enClosedCaptionOn = inputCCSettings.enClosedCaptionOn;
            stTempAttr.enCCPotsion = inputCCSettings.enCCPotsion;
            stTempAttr.enCCFontSize = inputCCSettings.enCCFontSize;
            stTempAttr.enCCFontColor = inputCCSettings.enCCFontColor;
            stTempAttr.enCCBGColor = inputCCSettings.enCCBGColor;
            stTempAttr.enCCOpacity = inputCCSettings.enCCOpacity;

            apiCC_SetAttr((stCCAttrSettings*)&stTempAttr);
#endif
#endif
            ......
        }

        default:
            break;
    }
    return TRUE;

}



作者: lailiuming    时间: 2016-7-25 15:07

作者: halleyhuang    时间: 2016-7-25 18:11
赞赞赞赞




欢迎光临 SuperIC社区_ (/) Powered by Discuz! X3.3