Skip to content

Commit b773a8f

Browse files
committed
lib: vc8000nanoe: trace pointers in hexa
Trace pointers in hexa instead of decimal. Signed-off-by: Hugues Fruchet <[email protected]>
1 parent 0e0a671 commit b773a8f

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

lib/vc8000nanoe/README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,7 @@ Patch List:
8989

9090
* Fix some trace points
9191
Impacted files: source/h264/H264EncApi.c
92+
93+
* Trace pointers in hexa
94+
Impacted files: inc/encdebug.h
95+
source/h264/H264EncApi.c

lib/vc8000nanoe/inc/encdebug.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#define TRACE_BIT_STREAM(v,n)
5656
#define APITRACE(x) printf(x);printf("\n");
5757
#define APITRACEPARAM(x,y) printf(" %s: %d\n",x,y);
58+
#define APITRACEPARAMX(x,y) printf(" %s: 0x%x\n",x,y);
5859
#else
5960
#define ASSERT(expr) __ASSERT_NO_MSG(expr)
6061
#define DEBUG_PRINT(args)

lib/vc8000nanoe/source/h264/H264EncApi.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,15 +1688,15 @@ H264EncRet H264EncStrmEncode(H264EncInst inst, const H264EncIn * pEncIn,
16881688
i32 prefix_nalu_length = 0;
16891689
u8 *prefix_nalu_addr = NULL;
16901690
APITRACE("H264EncStrmEncode#");
1691-
APITRACEPARAM("busLuma", pEncIn->busLuma);
1692-
APITRACEPARAM("busChromaU", pEncIn->busChromaU);
1693-
APITRACEPARAM("busChromaV", pEncIn->busChromaV);
1694-
APITRACEPARAM("pOutBuf", pEncIn->pOutBuf);
1695-
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);
16961696
APITRACEPARAM("outBufSize", pEncIn->outBufSize);
16971697
APITRACEPARAM("codingType", pEncIn->codingType);
16981698
APITRACEPARAM("timeIncrement", pEncIn->timeIncrement);
1699-
APITRACEPARAM("busLumaStab", pEncIn->busLumaStab);
1699+
APITRACEPARAMX("busLumaStab", pEncIn->busLumaStab);
17001700
APITRACEPARAM("ipf", pEncIn->ipf);
17011701
APITRACEPARAM("ltrf", pEncIn->ltrf);
17021702

0 commit comments

Comments
 (0)