R.M.
unread,Mar 5, 2011, 11:32:12 AM3/5/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to crystalhd-development
Hello,
I wrote some code to support hw deinterlacing ... function always
return BC_STS_SUCCESS, but hw deinterlacing dosn't work
please help or if You can send docs for firmware
thanks,
R.M.
DRVIFLIB_INT_API BC_STATUS
DtsFWSetHardwareDeinterlacing(
HANDLE hDevice
)
{
BC_STATUS sts = BC_STS_SUCCESS;
DTS_LIB_CONTEXT *Ctx = NULL;
BC_IOCTL_DATA *pIocData = NULL;
DTS_GET_CTX(hDevice,Ctx);
if((Ctx->State == BC_DEC_STATE_CLOSE)){
DebugLog_Trace(LDIL_DBG,"DtsFWSetHardwareDeinterlacing:
Channel not opened\n");
return BC_STS_DEC_NOT_OPEN;
}
if(!(pIocData = DtsAllocIoctlData(Ctx)))
return BC_STS_INSUFF_RES;
if (Ctx->DevId == BC_PCI_DEVID_FLEA)
{
DecCmdChannelSetOutputFormatting *outputFormatting;
DecRspChannelSetOutputFormatting *pRsp;
outputFormatting =
(DecCmdChannelSetOutputFormatting*)&pIocData->u.fwCmd.cmd;
outputFormatting->command =
eCMD_C011_DEC_CHAN_OUTPUT_FORMAT;
outputFormatting->sequence = ++Ctx->fwcmdseq;
outputFormatting->deinterlacing = eC011_DEINTERLACING_ON;
DebugLog_Trace(LDIL_DBG,"Enabling hardware deinterlacing...
\n");
if( (sts=DtsDrvCmd(Ctx,BCM_IOC_FW_CMD,1,pIocData,FALSE)) !=
BC_STS_SUCCESS){
DtsRelIoctlData(Ctx,pIocData);
DebugLog_Trace(LDIL_DBG,"DtsFWSetHardwareDeinterlacing:
Ioctl failed: %d\n",sts);
return sts;
}
pRsp = (DecRspChannelSetOutputFormatting*) &pIocData-
>u.fwCmd.rsp;
if(pRsp->status){
DebugLog_Trace(LDIL_DBG,"DtsFWSetHardwareDeinterlacing:
Failed %d\n",pRsp->status);
DtsRelIoctlData(Ctx,pIocData);
return BC_STS_FW_CMD_ERR;
}
}
else
{
return BC_STS_FW_CMD_ERR;
}
DtsRelIoctlData(Ctx,pIocData);
return BC_STS_SUCCESS;
}