Use \t or plain spaces instead of literal tabs in printf formats
This commit is contained in:
parent
baf93a340e
commit
ec99a3bcc5
@ -299,7 +299,7 @@ void H264DecodeInstance (ISVCDecoder* pDecoder, const char* kpH264FileName, cons
|
||||
|
||||
dElapsed = iTotal / 1e6;
|
||||
fprintf (stderr, "-------------------------------------------------------\n");
|
||||
fprintf (stderr, "iWidth: %d\nheight: %d\nFrames: %d\ndecode time: %f sec\nFPS: %f fps\n",
|
||||
fprintf (stderr, "iWidth:\t\t%d\nheight:\t\t%d\nFrames:\t\t%d\ndecode time:\t%f sec\nFPS:\t\t%f fps\n",
|
||||
iWidth, iHeight, iFrameCount, dElapsed, (iFrameCount * 1.0) / dElapsed);
|
||||
fprintf (stderr, "-------------------------------------------------------\n");
|
||||
|
||||
|
@ -394,8 +394,8 @@ void PrintHelp() {
|
||||
printf (" -deblockIdc Loop filter idc (0: on, 1: off, \n");
|
||||
printf (" -alphaOffset AlphaOffset(-6..+6): valid range \n");
|
||||
printf (" -betaOffset BetaOffset (-6..+6): valid range\n");
|
||||
printf (" -rc rate control mode: 0-quality mode; 1-bitrate mode; 2-bitrate limited mode; -1-rc off \n");
|
||||
printf (" -tarb Overall target bitrate\n");
|
||||
printf (" -rc rate control mode: 0-quality mode; 1-bitrate mode; 2-bitrate limited mode; -1-rc off \n");
|
||||
printf (" -tarb Overall target bitrate\n");
|
||||
printf (" -maxbrTotal Overall max bitrate\n");
|
||||
printf (" -numl Number Of Layers: Must exist with layer_cfg file and the number of input layer_cfg file must equal to the value set by this command\n");
|
||||
printf (" The options below are layer-based: (need to be set with layer id)\n");
|
||||
@ -919,7 +919,7 @@ int ProcessEncoding (ISVCEncoder* pPtrEnc, int argc, char** argv, bool bConfigFi
|
||||
|
||||
if (iActualFrameEncodedCount > 0) {
|
||||
double dElapsed = iTotal / 1e6;
|
||||
printf ("Width: %d\nHeight: %d\nFrames: %d\nencode time: %f sec\nFPS: %f fps\n",
|
||||
printf ("Width:\t\t%d\nHeight:\t\t%d\nFrames:\t\t%d\nencode time:\t%f sec\nFPS:\t\t%f fps\n",
|
||||
sSvcParam.iPicWidth, sSvcParam.iPicHeight,
|
||||
iActualFrameEncodedCount, dElapsed, (iActualFrameEncodedCount * 1.0) / dElapsed);
|
||||
#if defined (WINDOWS_PHONE)
|
||||
|
@ -2276,7 +2276,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf
|
||||
}
|
||||
}
|
||||
#if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)
|
||||
fprintf (stderr, "cur_frame : %d iCurrIdD : %d\n ",
|
||||
fprintf (stderr, "cur_frame : %d\tiCurrIdD : %d\n ",
|
||||
dq_cur->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iFrameNum, iCurrIdD);
|
||||
#endif//#if !CODEC_FOR_TESTBED
|
||||
iLastIdD = iCurrIdD;
|
||||
@ -2305,7 +2305,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf
|
||||
// A dq layer decoded here
|
||||
#if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)
|
||||
#undef fprintf
|
||||
fprintf (stderr, "POC: #%d, FRAME: #%d, D: %d, Q: %d, T: %d, P: %d, %d\n",
|
||||
fprintf (stderr, "POC: #%d, FRAME: #%d, D: %d, Q: %d, T: %d, P: %d, %d\n",
|
||||
pSh->iPicOrderCntLsb, pSh->iFrameNum, iCurrIdD, iCurrIdQ, dq_cur->sLayerInfo.sNalHeaderExt.uiTemporalId,
|
||||
dq_cur->sLayerInfo.sNalHeaderExt.uiPriorityId, dq_cur->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iSliceQp);
|
||||
#endif//#if !CODEC_FOR_TESTBED
|
||||
|
@ -2561,7 +2561,7 @@ void StatOverallEncodingExt (sWelsEncCtx* pCtx) {
|
||||
int32_t iMbCount = iCountNumIMb + iCountNumPMb;
|
||||
if (iMbCount > 0) {
|
||||
fprintf (stderr,
|
||||
"SVC: overall Slices MBs: %d Avg\nI4x4: %.3f%% I16x16: %.3f%% IBL: %.3f%%\nP16x16: %.3f%% P16x8: %.3f%% P8x16: %.3f%% P8x8: %.3f%% SUBP8x8: %.3f%% PSKIP: %.3f%%\nILP(All): %.3f%% ILP(PL0): %.3f%% BLSKIP(PL0): %.3f%% RP(PL0): %.3f%%\n",
|
||||
"SVC: overall Slices MBs: %d Avg\nI4x4: %.3f%% I16x16: %.3f%% IBL: %.3f%%\nP16x16: %.3f%% P16x8: %.3f%% P8x16: %.3f%% P8x8: %.3f%% SUBP8x8: %.3f%% PSKIP: %.3f%%\nILP(All): %.3f%% ILP(PL0): %.3f%% BLSKIP(PL0): %.3f%% RP(PL0): %.3f%%\n",
|
||||
iMbCount,
|
||||
(100.0f * (pCtx->sStatData[i][j].sSliceData.iMbCount[I_SLICE][Intra4x4] +
|
||||
pCtx->sStatData[i][j].sSliceData.iMbCount[P_SLICE][Intra4x4]) / iMbCount),
|
||||
|
Loading…
x
Reference in New Issue
Block a user