Showing the changes to codec/encoder/core/src/ratectl.cpp (1 of 17 files). Show all
Unified · Split
| @@ -348,11 +348,11 @@ void RcTraceVGopBitrate (sWelsEncCtx* pEncCtx) { · 347 unmodified lines | |||
| 348 | #ifdef _TEST_TEMP_Rc_ | 348 | #ifdef _TEST_TEMP_Rc_ |
| 349 | fprintf (fp_vgop, "%d\n", WELS_ROUND ((double)iTotalBits / iFrameInVGop)); | 349 | fprintf (fp_vgop, "%d\n", WELS_ROUND ((double)iTotalBits / iFrameInVGop)); |
| 350 | #endif | 350 | #endif |
| 351 | WelsLog (&(pEncCtx->sLogCtx), WELS_LOG_INFO, "[Rc] VGOPbitrate%d: %d \n", kiDid, iVGopBitrate); | 351 | WelsLog (& (pEncCtx->sLogCtx), WELS_LOG_INFO, "[Rc] VGOPbitrate%d: %d \n", kiDid, iVGopBitrate); |
| 352 | if (iTotalBits > 0) { | 352 | if (iTotalBits > 0) { |
| 353 | iTid = 0; | 353 | iTid = 0; |
| 354 | while (iTid <= kiHighestTid) { | 354 | while (iTid <= kiHighestTid) { |
| 355 | WelsLog (&(pEncCtx->sLogCtx), WELS_LOG_INFO, "T%d=%8.3f \n", iTid, (double) (pTOverRc[iTid].iGopBitsDq / iTotalBits)); | 355 | WelsLog (& (pEncCtx->sLogCtx), WELS_LOG_INFO, "T%d=%8.3f \n", iTid, (double) (pTOverRc[iTid].iGopBitsDq / iTotalBits)); |
| 356 | ++ iTid; | 356 | ++ iTid; |
| 357 | } | 357 | } |
| 358 | } | 358 | } |
| @@ -756,7 +756,7 @@ void RcVBufferCalculationPadding (sWelsEncCtx* pEncCtx) { · 397 unmodified lines | |||
| 756 | void RcTraceFrameBits (sWelsEncCtx* pEncCtx) { | 756 | void RcTraceFrameBits (sWelsEncCtx* pEncCtx) { |
| 757 | SWelsSvcRc* pWelsSvcRc = &pEncCtx->pWelsSvcRc[pEncCtx->uiDependencyId]; | 757 | SWelsSvcRc* pWelsSvcRc = &pEncCtx->pWelsSvcRc[pEncCtx->uiDependencyId]; |
| 758 | 758 | ||
| 759 | WelsLog (&(pEncCtx->sLogCtx), WELS_LOG_INFO, | 759 | WelsLog (& (pEncCtx->sLogCtx), WELS_LOG_INFO, |
| 760 | "[Rc] encoding_qp%d, qp = %3d, index = %8d, iTid = %1d, used = %8d, target = %8d, remaingbits = %8d\n", | 760 | "[Rc] encoding_qp%d, qp = %3d, index = %8d, iTid = %1d, used = %8d, target = %8d, remaingbits = %8d\n", |
| 761 | pEncCtx->uiDependencyId, pWelsSvcRc->iAverageFrameQp, pEncCtx->iFrameIndex, pEncCtx->uiTemporalId, | 761 | pEncCtx->uiDependencyId, pWelsSvcRc->iAverageFrameQp, pEncCtx->iFrameIndex, pEncCtx->uiTemporalId, |
| 762 | pWelsSvcRc->iFrameDqBits, | 762 | pWelsSvcRc->iFrameDqBits, |