int Encoder::encode(const x265_picture* pic_in, x265_picture* pic_out)
Frame *inFrame;
x265_param* p = (m_reconfigure || m_reconfigureRc) ? m_latestParam : m_param;
if (m_dpb->m_freeList.empty())
{
如果dpb的中没有free状态的Frame,就会去创建。freeList是一个Frame的pool,这样可以节约内存。
inFrame = new Frame;
Frame主要包括编码完成的数据,重建帧的YUV数据和要编码的YUV数据。
inFrame->m_encodeStartTime = x265_mdate();
这一帧的开始时间单位是ms。
if (inFrame->create(p, pic_in->quantOffsets))
{
主要是创建了要存储编码YUV数据的PicYUVÿ