MCPcopy Create free account
hub / github.com/cisco/openh264 / ForceIntraFrame

Method ForceIntraFrame

codec/encoder/plus/src/welsEncoderExt.cpp:487–500  ·  view source on GitHub ↗

* Force key frame */

Source from the content-addressed store, hash-verified

485 * Force key frame
486 */
487int CWelsH264SVCEncoder::ForceIntraFrame (bool bIDR, int iLayerId) {
488 if (bIDR) {
489 if (! (m_pEncContext && m_bInitialFlag)) {
490 return 1;
491 }
492
493 ForceCodingIDR (m_pEncContext, iLayerId);
494 } else {
495 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
496 "CWelsH264SVCEncoder::ForceIntraFrame(),nothing to do as bIDR set to false");
497 }
498
499 return 0;
500}
501void CWelsH264SVCEncoder::TraceParamInfo (SEncParamExt* pParam) {
502 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
503 "iUsageType = %d,iPicWidth= %d;iPicHeight= %d;iTargetBitrate= %d;iMaxBitrate= %d;iRCMode= %d;iPaddingFlag= %d;iTemporalLayerNum= %d;iSpatialLayerNum= %d;fFrameRate= %.6ff;uiIntraPeriod= %d;"

Callers 1

Encode_wMethod · 0.45

Calls 2

ForceCodingIDRFunction · 0.85
WelsLogFunction · 0.85

Tested by

no test coverage detected