Thanks Simon.
The trace files for 1) Sample to Sample & 2) Salyens(4CIF) to Sample have
been attached alongwith.
Also, the capabilities are being added as follows:
// add codecs
H323PluginCodecManager & codecMgr = *(H323PluginCodecManager*)
PFactory<PPluginModuleManager>::CreateInstance("H323PluginCodecManager");
PPluginModuleManager::PluginListType pluginList =
codecMgr.GetPluginList();
H323Capability* cap[10];
this->AddAllCapabilities(0, P_MAX_INDEX, "*");
PStringArray preferenceorder;
PString str1_cif = "H.261";
PString str1_qcif = "H.261-QCIF{sw}";
PString str3_cif = "H.263-CIF";
PString str3_qcif = "H.263-QCIF{sw}";
PString str3_4cif = "H.263";
if(a4CIF)
{
m_nTxvideoWidth = i4CIF.m_nWidth;//size
m_nTxvideoHeight =i4CIF.m_nHeight;//
if(aH263)
{
preferenceorder.AppendString(str3_4cif);
SetVideoFrameSize(H323Capability::cif4MPI);
}
}
else if(aCIF)
{
m_nTxvideoWidth = iCIF.m_nWidth;
m_nTxvideoHeight =iCIF.m_nHeight;
m_nbw = BW * 2;
m_nframerate = FRAMERATE * 2;
if(aH263)
{
preferenceorder.AppendString(str3_cif);
}
if(aH261)
{
preferenceorder.AppendString(str1_cif);
}
}
else if(aqCIF)
{
m_nTxvideoWidth = iQCIF.m_nWidth;
m_nTxvideoHeight =iQCIF.m_nHeight;
m_nbw = BW * 1;
m_nframerate = FRAMERATE * 0.5;
if(aH263)
{
preferenceorder.AppendString(str3_qcif);
}
if(aH261)
{
preferenceorder.AppendString(str1_qcif);
}
}
else
{
// no video codec added in capability
}
capabilities.Reorder(preferenceorder);
for(int i = 0; i< 10; i++)
{
cap[i] = capabilities.FindCapability(i);
}
Thanks
Taranpreet
(See attached file: Sample_toSample.txt)(See attached file:
Salyens(4CIF)_to_Sample.txt)