obs-qsv: Enable Content Adaptive Quantization

Allow user to enable Content Adaptive Quantization (MMBRC) if CPU is SKL
or newer
This commit is contained in:
brittneysclark
2019-07-13 00:10:16 -07:00
parent b675bed90b
commit 8717a66991
3 changed files with 21 additions and 0 deletions

View File

@@ -269,6 +269,8 @@ bool QSV_Encoder_Internal::InitParams(qsv_param_t *pParams)
if (pParams->nRateControl == MFX_RATECONTROL_LA_ICQ ||
pParams->nRateControl == MFX_RATECONTROL_LA)
m_co2.LookAheadDepth = pParams->nLADEPTH;
if (pParams->bMBBRC)
m_co2.MBBRC = MFX_CODINGOPTION_ON;
if (pParams->nbFrames > 1)
m_co2.BRefType = MFX_B_REF_PYRAMID;
extendedBuffers[iBuffers++] = (mfxExtBuffer *)&m_co2;