History

Use a standard macro for 64 bit printf conversion specifiers

This avoids duplicating the printf line with an ifdef every time a 64 bit number needs to be printed.

Martin Storsjö committed 12 years ago

Commit 3c7dde91 parent c7d98a83 files · +6 −15Browse files

Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+2−10
@@ -1234,11 +1234,7 @@ int32_t AdjustBaseLayer (sWelsEncCtx* pCtx) { · 1233 unmodified lines
1234 iT0 = WelsTime() - iT0;1234 iT0 = WelsTime() - iT0;
1235 if (pCtx->pSliceThreading->pFSliceDiff) {1235 if (pCtx->pSliceThreading->pFSliceDiff) {
1236 fprintf (pCtx->pSliceThreading->pFSliceDiff,1236 fprintf (pCtx->pSliceThreading->pFSliceDiff,
1237#ifdef _WIN321237 "%6"PRId64" us adjust time at base spatial layer, iNeedAdj %d, DynamicAdjustSlicing()\n",
1238 "%6I64d us adjust time at base spatial layer, iNeedAdj %d, DynamicAdjustSlicing()\n",
1239#else
1240 "%6lld us adjust time at base spatial layer, iNeedAdj %d, DynamicAdjustSlicing()\n",
1241#endif//WIN32
1242 iT0, iNeedAdj);1238 iT0, iNeedAdj);
1243 }1239 }
1244#endif//MT_DEBUG1240#endif//MT_DEBUG
@@ -1285,11 +1281,7 @@ int32_t AdjustEnhanceLayer (sWelsEncCtx* pCtx, int32_t iCurDid) { · 40 unmodified lines
1285 iT1 = WelsTime() - iT1;1281 iT1 = WelsTime() - iT1;
1286 if (pCtx->pSliceThreading->pFSliceDiff) {1282 if (pCtx->pSliceThreading->pFSliceDiff) {
1287 fprintf (pCtx->pSliceThreading->pFSliceDiff,1283 fprintf (pCtx->pSliceThreading->pFSliceDiff,
1288#ifdef _WIN321284 "%6"PRId64" us adjust time at spatial layer %d, iNeedAdj %d, DynamicAdjustSlicing()\n",
1289 "%6I64d us adjust time at spatial layer %d, iNeedAdj %d, DynamicAdjustSlicing()\n",
1290#else
1291 "%6lld us adjust time at spatial layer %d, iNeedAdj %d, DynamicAdjustSlicing()\n",
1292#endif//WIN32
1293 iT1, iCurDid, iNeedAdj);1285 iT1, iCurDid, iNeedAdj);
1294 }1286 }
1295#endif//MT_DEBUG1287#endif//MT_DEBUG

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t