本文整理汇总了C++中InitParams函数的典型用法代码示例。如果您正苦于以下问题:C++ InitParams函数的具体用法?C++ InitParams怎么用?C++ InitParams使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了InitParams函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DestroyObjs
int CUndoMotion::ClearData()
{
DestroyObjs();
InitParams();
return 0;
}
示例2: main
int main()
{
InitParams();
InitRad(¶ms);
DoRad();
CleanUpRad();
}
示例3: InitParams
CMultiWave::CMultiWave( int srcflag3d, int srcreverbflag )
{
InitParams();
flag3d = srcflag3d;
flagreverb = srcreverbflag;
}
示例4: InitParams
HRESULT CParamsManager::CopyParamsFromSource( CParamsManager * pSource)
{
HRESULT hr = S_OK;
DWORD dwIndex;
for (dwIndex = 0; dwIndex < m_cTimeFormats; dwIndex++)
{
if (pSource->m_guidCurrentTimeFormat == m_pguidTimeFormats[dwIndex])
{
break;
}
}
hr = InitParams(pSource->m_cTimeFormats, pSource->m_pguidTimeFormats, dwIndex, pSource->m_mptdCurrentTimeData, pSource->m_cParams,pSource->m_pParamInfos);
if (SUCCEEDED(hr))
{
for (dwIndex = 0; dwIndex < m_cParams; dwIndex++)
{
CCurveItem *pCurve = pSource->m_pCurveLists[dwIndex].GetHead();
for (;pCurve;pCurve = pCurve->GetNext())
{
CCurveItem *pNew = new CCurveItem;
if (!pNew)
{
return E_OUTOFMEMORY;
}
pNew->m_Envelope = pCurve->m_Envelope;
m_pCurveLists[dwIndex].AddTail(pNew);
}
}
}
return hr;
}
示例5: QObject
cRenderQueue::cRenderQueue(cImage *_image, RenderedImage *widget) : QObject()
{
image = _image;
imageWidget = widget;
queuePar = new cParameterContainer;
queueParFractal = new cFractalContainer;
queueAnimFrames = new cAnimationFrames;
queueKeyframes = new cKeyframes;
queuePar->SetContainerName("main");
InitParams(queuePar);
for(int i=0; i<NUMBER_OF_FRACTALS; i++)
{
queueParFractal->at(i).SetContainerName(QString("fractal") + QString::number(i));
InitFractalParams(&queueParFractal->at(i));
}
queueFlightAnimation = new cFlightAnimation(gMainInterface, queueAnimFrames, image, imageWidget, queuePar, queueParFractal, this);
queueKeyframeAnimation = new cKeyframeAnimation(gMainInterface, queueKeyframes, image, imageWidget, queuePar, queueParFractal, this);
QObject::connect(queueFlightAnimation, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)),
this, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)));
QObject::connect(queueFlightAnimation, SIGNAL(updateProgressHide(cProgressText::enumProgressType)),
this, SIGNAL(updateProgressHide(cProgressText::enumProgressType)));
QObject::connect(queueFlightAnimation, SIGNAL(updateStatistics(cStatistics)),
this, SIGNAL(updateStatistics(cStatistics)));
QObject::connect(queueKeyframeAnimation, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)),
this, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)));
QObject::connect(queueKeyframeAnimation, SIGNAL(updateProgressHide(cProgressText::enumProgressType)),
this, SIGNAL(updateProgressHide(cProgressText::enumProgressType)));
QObject::connect(queueKeyframeAnimation, SIGNAL(updateStatistics(cStatistics)),
this, SIGNAL(updateStatistics(cStatistics)));
}
示例6: PvmfPortBaseImpl
H223LowerLayer::H223LowerLayer(int32 aPortTag, TPVLoopbackMode aLoopbackMode)
: PvmfPortBaseImpl(aPortTag, this),
OsclTimerObject(OsclActiveObject::EPriorityHigh, "H223AO"),
iTimerIntervalNum(0),
iMinTimerResolution(TIMER_RES),
iObserver(NULL),
iMemFragmentAlloc(NULL),
iDispatchPacketAlloc(NULL),
iMediaDataImplMemAlloc(NULL),
iMediaMsgPoolAlloc(NULL),
iSendPduSz(0),
iPduSize(H223_DEFAULT_PDU_SIZE),
iStuffingSize(0),
iTimer("H223LL"),
iLoopbackMode(aLoopbackMode),
iTimerCnt(0),
iBytesSent(0),
iMediaDataAlloc(&iMemAlloc),
iLogger(NULL),
iDemuxBuffer(NULL),
iDemuxBufferPos(NULL),
iIdleSyncCheckBuffer(NULL)
{
iLogger = PVLogger::GetLoggerObject("3g324m.h223.lowerlayer");
AddToScheduler();
InitParams();
ResetStats();
}
示例7: PDRecon
TV::TV(unsigned width, unsigned height, unsigned coils, unsigned frames,
BaseOperator *mrOp)
: PDRecon(width, height, 0, coils, frames, mrOp)
{
InitParams();
InitTempVectors();
}
示例8: Initialize
mfxStatus QSV_Encoder_Internal::Open(qsv_param_t * pParams)
{
mfxStatus sts = MFX_ERR_NONE;
if (m_bUseD3D11)
// Use D3D11 surface
sts = Initialize(m_impl, m_ver, &m_session, &m_mfxAllocator);
else
// Use system memory
sts = Initialize(m_impl, m_ver, &m_session, NULL);
MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);
m_pmfxENC = new MFXVideoENCODE(m_session);
InitParams(pParams);
sts = m_pmfxENC->Query(&m_mfxEncParams, &m_mfxEncParams);
MSDK_IGNORE_MFX_STS(sts, MFX_WRN_INCOMPATIBLE_VIDEO_PARAM);
MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);
sts = AllocateSurfaces();
MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);
sts = m_pmfxENC->Init(&m_mfxEncParams);
MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);
sts = GetVideoParam();
MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);
sts = InitBitstream();
MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);
return sts;
}
示例9: while
int CCameraAnim::DestroyObjs()
{
int camno;
for( camno = 0; camno < CAMERANUMMAX; camno++ ){
CCameraKey* delck = m_firstkey[ camno ];
CCameraKey* nextck = 0;
while( delck ){
nextck = delck->next;
delete delck;
delck = nextck;
}
}
CCameraSWKey* delcswk = m_firstsw;
CCameraSWKey* nextcswk = 0;
while( delcswk ){
nextcswk = delcswk->next;
delete delcswk;
delcswk = nextcswk;
}
InitParams();
return 0;
}
示例10: Release
bool APerlinNoise2D::Init(int nBufferWidth, int nBufferHeight, float vAmplitude, int nWaveLength, float vPersistence, int nOctaveNum, ADWORD dwRandSeed)
{
// First try to release old resource;
Release();
int i, x, y, k;
m_dwSeed = dwRandSeed;
// generate loop back smoothed random buffer
if( nBufferWidth <= 0 || nBufferHeight <= 0 )
return false;
m_nBufferWidth = nBufferWidth;
m_nBufferHeight = nBufferHeight;
float * pValues = (float *) a_malloc(sizeof(float) * m_nBufferWidth * m_nBufferHeight);
if( NULL == pValues )
return false;
m_pValues = (NOISEVALUE *) a_malloc(sizeof(NOISEVALUE) * m_nBufferWidth * m_nBufferHeight);
if( NULL == m_pValues )
return false;
for(k=0; k<3; k++)
{
// First create random number buffer;
for(i=0; i<m_nBufferWidth * m_nBufferHeight; i++)
pValues[i] = RandFloat();
// Now smooth the random number buffer;
for(x=0; x<m_nBufferWidth; x++)
{
for(y=0; y<m_nBufferHeight; y++)
{
int n = y * m_nBufferWidth + x;
int nLastX, nNextX, nLastY, nNextY;
nLastX = x - 1;
if( nLastX < 0 ) nLastX += m_nBufferWidth;
nNextX = x + 1;
if( nNextX >= m_nBufferWidth ) nNextX -= m_nBufferWidth;
nLastY = y - 1;
if( nLastY < 0 ) nLastY += m_nBufferHeight;
nNextY = y + 1;
if( nNextY >= m_nBufferHeight ) nNextY -= m_nBufferHeight;
#define NOISEVALUEFUNC2D(x, y) (pValues[(y) * m_nBufferWidth + (x)])
m_pValues[n].v[k] =
1.0f / 16.0f * (NOISEVALUEFUNC2D(nLastX, nLastY) + NOISEVALUEFUNC2D(nLastX, nNextY) + NOISEVALUEFUNC2D(nNextX, nLastY) + NOISEVALUEFUNC2D(nNextX, nNextY)) +
1.0f / 8.0f * (NOISEVALUEFUNC2D(x, nLastY) + NOISEVALUEFUNC2D(x, nNextY) + NOISEVALUEFUNC2D(nLastX, y) + NOISEVALUEFUNC2D(nNextX, y)) +
1.0f / 4.0f * (NOISEVALUEFUNC2D(x, y));
}
}
}
a_free(pValues);
return InitParams(vAmplitude, nWaveLength, vPersistence, nOctaveNum);
}
示例11: InitParamsGB
/**
* Sets its default value for each benchmark parameter for the GenBench function.
*
* @param PB a pointer to a structure containing benchmark parameters for this session
*/
static void
InitParamsGB (UflipParams *PB)
{
InitParams (PB);
strcpy (PB->expPlan, "ExpPlan.txt");
strcpy (PB->expSelect, "ExpSel.txt");
strcpy (PB->outName, "Bench"SCRIPT_EXTENSION);
}
示例12: InitParams
CSndAnim::CSndAnim( char* srcname, int srcmotkind )
{
InitParams();
if( srcname && *srcname ){
strcpy_s( m_animname, 256, srcname );
}
m_motkind = srcmotkind;
}
示例13: glBindVertexArray
void Particles::Init()
{
glBindVertexArray(arrayObject);
InitParams();
InitMemory();
InitParticle();
glBindVertexArray(0);
}
示例14: DestroyObjs
int CMeshInfo::ResetParams()
{
int ret;
DestroyObjs();
InitParams();
ret = CreateObjs();
return ret;
}
示例15: InitParams
CMeshInfo::CMeshInfo()
{
int ret;
InitParams();
ret = CreateObjs();
if( ret )
isinit = 0;
}