从EncApp::encode()进入EncLib::encode()输入参数:
const InputColourSpaceConversion snrCSC,
std::list<PelUnitBuf *> &rcListPicYuvRecOut,
int &numEncoded
// compress GOP
m_cGOPEncoder.compressGOP(m_pocLast, m_receivedPicCount, m_cListPic, rcListPicYuvRecOut, false, false, snrCSC,
m_printFrameMSE, m_printMSSSIM, false, m_picIdInGOP);
m_picIdInGOP++;
m_pocLast:图像序列号(POC)的最后一位
m_receivedPicCount:当前GOP已接收到几帧数据
m_cListPic:
rcListPicYuvRecOut: 重建YUV图片列表
\retval rcListPicYuvRecOut list of reconstruction YUV pictures
snrCSC:色彩空间转换形式
m_printFrameMSE:
m_printMSSSIM:
m_picIdInGOP:
numEncoded:已编码数量
// go over all pictures in a GOP excluding the first IRAP
if (m_picIdInGOP != m_gopSize && m_pocLast != 0)
{
return true;
}
if (m_rcEnableRateControl)
{
m_cRateCtrl.destroyRCGOP();
}
numEncoded = m_receivedPicCount;
m_receivedPicCount = 0;
m_codedPicCount += numEncoded;
return false;