bool CRendererAML::RenderUpdateVideoHook(bool clear, DWORD flags, DWORD alpha) { ManageRenderArea(); CDVDAmlogicInfo *amli = static_cast<CDVDAmlogicInfo *>(m_buffers[m_iYV12RenderBuffer].hwDec); if (amli) { CAMLCodec *amlcodec = amli->getAmlCodec(); if (amlcodec) amlcodec->SetVideoRect(m_sourceRect, m_destRect); } return true; }
bool CRendererAML::RenderUpdateVideoHook(bool clear, DWORD flags, DWORD alpha) { ManageRenderArea(); CDVDAmlogicInfo *amli = static_cast<CDVDAmlogicInfo *>(m_buffers[m_iYV12RenderBuffer].hwDec); if (amli && amli->GetOmxPts() != m_prevPts) { m_prevPts = amli->GetOmxPts(); SysfsUtils::SetInt("/sys/module/amvideo/parameters/omx_pts", amli->GetOmxPts()); CAMLCodec *amlcodec = amli->getAmlCodec(); if (amlcodec) amlcodec->SetVideoRect(m_sourceRect, m_destRect); } usleep(10000); return true; }