Ejemplo n.º 1
0
iMX27RtpInterface::iMX27RtpInterface(SkypeVideoRTPInterfaceCb *pCallback) :
	m_BitRate(0),
	m_pCb(pCallback),
	m_ReceiveBStat(3000000),
	m_SendBStat(3000000),
	m_KeyFrameRequested(0),
	m_RecordingStarted(false),
	m_ReceivePcnt(0),
	m_SendPcnt(0),
	m_ReceiveFcnt(0),
	m_SendFcnt(0),
	m_PayloadFormat(FORMAT_FRAMES),
	m_pSendWrapper(NULL),
	m_pReceiveWrapper(NULL)
{
	RTP_FUNCLOG;
	if (!Configuration::GetCfg()->IsInitialized())
		Configuration::GetCfg()->Init("RTPTestEngine.conf");
	m_PayloadFormat = (PayloadFmtType)Configuration::GetCfg()->GetIntVal("PayloadFormat");
#ifndef MINIMAL_MODE
	if ((Configuration::GetCfg()->GetIntVal("SendPacketsFromAnxbFile") || Configuration::GetCfg()->GetIntVal("SendPacketsFromPcapFile")) && !Configuration::GetCfg()->GetIntVal("RenderVideo")) {
		return;
	}
	vpu_versioninfo vpuVersion;
	RetCode ret = RETCODE_SUCCESS;
	pMutexLock scopedLock(m_VpuMutex); // Scoped lock on VPU mutex

	// Initialize VPU hardware and data structures/resources
	ret = vpu_Init(NULL);
	if (ret != RETCODE_SUCCESS) {
		FATAL("%s: vpu_Init() failed. Return code: %d", ret);
	}

	// Read out the version information running on the system
	ret = vpu_GetVersionInfo(&vpuVersion);
	scopedLock.mutex.Release(); // VPU access - unlock
	if (ret != RETCODE_SUCCESS) {
		if (ret != RETCODE_NOT_INITIALIZED) {
			vpu_UnInit();
		}
		FATAL("vpu_GetVersionInfo() failed. Return code: %d\n", ret);
	}
	RTP_DBG("i.MX%x Silicon Revision: %x.%x", mxc_cpu(), ((mxc_cpu_rev() >> 4) & 0xF), (mxc_cpu_rev() & 0xF));
	RTP_DBG("i.MX%x VPU Firmware version: %d.%d.%d", mxc_cpu(), vpuVersion.fw_major, vpuVersion.fw_minor, vpuVersion.fw_release);
	RTP_DBG("i.MX%x VPU Library version: %d.%d.%d", mxc_cpu(), vpuVersion.lib_major, vpuVersion.lib_minor, vpuVersion.lib_release);
#endif
}
Ejemplo n.º 2
0
void __init mxc_cpu_common_init(void)
{
	pr_info("CPU is %s%x Revision %u.%u\n",
		(mxc_cpu() < 0x100) ? "i.MX" : "MXC",
		mxc_cpu(), mxc_cpu_rev_major(), mxc_cpu_rev_minor());
}