Skip to content

Commit 04fcd50

Browse files
committed
lib: vc8000nanoe: fix some trace points
Fix some debug trace points. Signed-off-by: Hugues Fruchet <[email protected]>
1 parent b8cc7c8 commit 04fcd50

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

lib/vc8000nanoe/source/h264/H264EncApi.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,8 @@ H264EncRet H264EncSetCodingCtrl(H264EncInst inst,
660660
/* check depth*mb_width align to 4 */
661661
if ((pEncInst->mbPerRow * pCodeParams->inputLineBufDepth) & 3)
662662
{
663-
APITRACE("H264EncSetCodingCtrl: Invalid input buffer depth");
663+
APITRACE("H264EncSetCodingCtrl: Invalid input buffer depth (depth*mb_width align to 4)");
664+
APITRACEPARAM("mbPerRow", pEncInst->mbPerRow);
664665
return ENCHW_NOK;
665666
}
666667
}
@@ -1459,8 +1460,8 @@ H264EncRet H264EncStrmStart(H264EncInst inst, const H264EncIn * pEncIn,
14591460
APITRACEPARAM("busLuma", pEncIn->busLuma);
14601461
APITRACEPARAM("busChromaU", pEncIn->busChromaU);
14611462
APITRACEPARAM("busChromaV", pEncIn->busChromaV);
1462-
APITRACEPARAM("pOutBuf", pEncIn->pOutBuf);
1463-
APITRACEPARAM("busOutBuf", pEncIn->busOutBuf);
1463+
APITRACEPARAMX("pOutBuf", pEncIn->pOutBuf);
1464+
APITRACEPARAMX("busOutBuf", pEncIn->busOutBuf);
14641465
APITRACEPARAM("outBufSize", pEncIn->outBufSize);
14651466
APITRACEPARAM("codingType", pEncIn->codingType);
14661467
APITRACEPARAM("timeIncrement", pEncIn->timeIncrement);
@@ -1687,15 +1688,15 @@ H264EncRet H264EncStrmEncode(H264EncInst inst, const H264EncIn * pEncIn,
16871688
i32 prefix_nalu_length = 0;
16881689
u8 *prefix_nalu_addr = NULL;
16891690
APITRACE("H264EncStrmEncode#");
1690-
APITRACEPARAM("busLuma", pEncIn->busLuma);
1691-
APITRACEPARAM("busChromaU", pEncIn->busChromaU);
1692-
APITRACEPARAM("busChromaV", pEncIn->busChromaV);
1693-
APITRACEPARAM("pOutBuf", pEncIn->pOutBuf);
1694-
APITRACEPARAM("busOutBuf", pEncIn->busOutBuf);
1691+
APITRACEPARAMX("busLuma", pEncIn->busLuma);
1692+
APITRACEPARAMX("busChromaU", pEncIn->busChromaU);
1693+
APITRACEPARAMX("busChromaV", pEncIn->busChromaV);
1694+
APITRACEPARAMX("pOutBuf", pEncIn->pOutBuf);
1695+
APITRACEPARAMX("busOutBuf", pEncIn->busOutBuf);
16951696
APITRACEPARAM("outBufSize", pEncIn->outBufSize);
16961697
APITRACEPARAM("codingType", pEncIn->codingType);
16971698
APITRACEPARAM("timeIncrement", pEncIn->timeIncrement);
1698-
APITRACEPARAM("busLumaStab", pEncIn->busLumaStab);
1699+
APITRACEPARAMX("busLumaStab", pEncIn->busLumaStab);
16991700
APITRACEPARAM("ipf", pEncIn->ipf);
17001701
APITRACEPARAM("ltrf", pEncIn->ltrf);
17011702

@@ -1768,7 +1769,7 @@ H264EncRet H264EncStrmEncode(H264EncInst inst, const H264EncIn * pEncIn,
17681769
case H264ENC_P010:
17691770
if(!H264_BUS_ADDRESS_VALID(pEncIn->busChromaV))
17701771
{
1771-
APITRACE("H264EncStrmEncode: ERROR Invalid input busChromaU");
1772+
APITRACE("H264EncStrmEncode: ERROR Invalid input busChromaV");
17721773
return H264ENC_INVALID_ARGUMENT;
17731774
}
17741775
/* fall through */

0 commit comments

Comments
 (0)