當前位置: 首頁>>代碼示例>>C++>>正文


C++ GetInterface函數代碼示例

本文整理匯總了C++中GetInterface函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetInterface函數的具體用法?C++ GetInterface怎麽用?C++ GetInterface使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了GetInterface函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: KUIErrorUO

bool UKUIInterfaceElement::IsCursorOver() const
{
	if ( GetInterface() == NULL )
	{
		KUIErrorUO( "Null interface" );
		return false;
	}

	return IsPointOver( GetInterface()->GetCursorLocation() );
}
開發者ID:cllpyl,項目名稱:KeshUI,代碼行數:10,代碼來源:KUIInterfaceElement.cpp

示例2: GetInterface

STDMETHODIMP CAVISplitter::NonDelegatingQueryInterface(REFIID iid, void** ppv)
{
	if (iid == IID_ISpecifyPropertyPages)
		return GetInterface((ISpecifyPropertyPages *) this, ppv);
    else if (iid == IID_ISMMModuleConfig)
        return GetInterface((ISMMModuleConfig*)this, ppv);
	else if (iid == IID_IPersistStream)
		return GetInterface((CPersistStream*)this, ppv);
	return CBaseFilter::NonDelegatingQueryInterface(iid, ppv);
}
開發者ID:SolveigMultimedia,項目名稱:smm_avi_splitter,代碼行數:10,代碼來源:avisplitter.cpp

示例3: CPedSA

/**
 * Constructor for CCivilianPedSA
 */
CCivilianPedSA::CCivilianPedSA( CCivilianPedSAInterface *ped, modelId_t modelID ) : CPedSA( ped )
{
    DEBUG_TRACE("CCivilianPedSA::CCivilianPedSA( CCivilianPedSAInterface *ped, unsigned short modelID )");

    SetType( CIVILIAN_PED );
    SetModelIndex( modelID );

    BOOL_FLAG( GetInterface()->m_entityFlags, ENTITY_DISABLESTREAMING, true );
    BOOL_FLAG( GetInterface()->m_entityFlags, ENTITY_NOSTREAM, true );
}
開發者ID:qaisjp,項目名稱:green-candy,代碼行數:13,代碼來源:CCivilianPedSA.cpp

示例4: GetInterface

//----------------------------------------------------------------------------
//! @brief	  	要求されたインターフェイスを返す
//! @param		riid : インターフェイスのIID
//! @param		ppv : インターフェイスを返すポインターへのポインタ
//! @return		エラーコード
//----------------------------------------------------------------------------
STDMETHODIMP CDemuxSource::NonDelegatingQueryInterface( REFIID riid, void ** ppv )
{
	if( riid == IID_IMediaSeeking ) {
		return GetInterface( static_cast<IMediaSeeking*>( this ), ppv );
	} else if( riid == IID_IAMFilterMiscFlags ) {
		return GetInterface( static_cast<IAMFilterMiscFlags*>( this ), ppv );
	} else {
		return CSource::NonDelegatingQueryInterface(riid, ppv);
	}
}
開發者ID:xmoeproject,項目名稱:X-moe,代碼行數:16,代碼來源:CDemuxSource.cpp

示例5: GetInterface

HRESULT CamShiftTracker::NonDelegatingQueryInterface(REFIID iid, void **ppv)
{
    if (iid == IID_ICamShiftTracker)
        return GetInterface((IUnknown *)(void *)static_cast<ICamShiftTracker *>(this), ppv);

    if (iid == IID_ITracker)
        return GetInterface((IUnknown *)(void *)static_cast<ITracker *>(this), ppv);

    return CUnknown::NonDelegatingQueryInterface(iid, ppv);
}
開發者ID:JackJone,項目名稱:opencv,代碼行數:10,代碼來源:CamShiftTracker.cpp

示例6: GetInterface

STDMETHODIMP CMediaPacketSample::QueryInterface(REFIID riid, void **ppv)
{
    if (riid == __uuidof(ILAVMediaSample)) {
        return GetInterface((ILAVMediaSample *) this, ppv);
    }
    else if (riid == __uuidof(IMediaSideData)) {
        return GetInterface((IMediaSideData *) this, ppv);
    }
    return CMediaSample::QueryInterface(riid, ppv);
}
開發者ID:aracnoz,項目名稱:LAVFilters,代碼行數:10,代碼來源:PacketAllocator.cpp

示例7: GetInterface

STDMETHODIMP my12doomImageSource::NonDelegatingQueryInterface(REFIID riid, void ** ppv)
{
	if (riid == IID_IFileSourceFilter) 
		return GetInterface((IFileSourceFilter *) this, ppv);

	if (riid == IID_IStereoLayout) 
		return GetInterface((IStereoLayout *) this, ppv);

	return __super::NonDelegatingQueryInterface(riid, ppv);
}
開發者ID:my12doom,項目名稱:personalProjects,代碼行數:10,代碼來源:ImageSource.cpp

示例8: GetInterface

STDMETHODIMP VMRSurfaceAllocator::NonDelegatingQueryInterface( REFIID refiid, void **lplpInterface )
{
	if ( IsEqualIID( refiid, IID_IVMRSurfaceAllocator9 ) )
	{
		return GetInterface( static_cast<IVMRSurfaceAllocator9 *>( this ), lplpInterface );
	} else if ( IsEqualIID( refiid, IID_IVMRImagePresenter9 ) )
	{
		return GetInterface( static_cast<IVMRImagePresenter9 *>( this ), lplpInterface );
	}

	return CUnknown::NonDelegatingQueryInterface( refiid, lplpInterface );
}
開發者ID:HirokiMiyaoka,項目名稱:Mikan,代碼行數:12,代碼來源:VMRSurfaceAllocator.cpp

示例9: CheckPointer

STDMETHODIMP CSyncClockFilter::NonDelegatingQueryInterface(REFIID riid, void** ppv)
{
    CheckPointer(ppv, E_POINTER);

    if (riid == IID_IReferenceClock) {
        return GetInterface(static_cast<IReferenceClock*>(&m_Clock), ppv);
    } else if (riid == IID_ISyncClock) {
        return GetInterface(static_cast<ISyncClock*>(this), ppv);
    } else {
        return CBaseFilter::NonDelegatingQueryInterface(riid, ppv);
    }
}
開發者ID:Azpidatziak,項目名稱:mpc-hc,代碼行數:12,代碼來源:SyncClock.cpp

示例10: CheckPointer

STDMETHODIMP CDXVA2MediaSample::QueryInterface(REFIID riid, void **ppv)
{
	CheckPointer(ppv, E_POINTER);

	if (riid == __uuidof(IDXVA2MediaSample)) {
		return GetInterface(static_cast<IDXVA2MediaSample*>(this), ppv);
	}
	if (riid == IID_IMFGetService) {
		return GetInterface(static_cast<IMFGetService*>(this), ppv);
	}

	return CMediaSample::QueryInterface(riid, ppv);
}
開發者ID:KayoAiko,項目名稱:TVTestVideoDecoder,代碼行數:13,代碼來源:DXVA2Allocator.cpp

示例11: GetInterface

STDMETHODIMP
CBasePin::NonDelegatingQueryInterface(REFIID riid, void ** ppv)
{
	/* Do we have this interface */

	if (riid == IID_IPin) {
		return GetInterface((IPin *) this, ppv);
	} else if (riid == IID_IQualityControl) {
		return GetInterface((IQualityControl *) this, ppv);
	} else {
		return CUnknown::NonDelegatingQueryInterface(riid, ppv);
	}
}
開發者ID:EnoroF,項目名稱:easygamelibs,代碼行數:13,代碼來源:BasePin.cpp

示例12: CheckPointer

//
// NonDelegatingQueryInterface
//
// Reveals ICKalmTrack and ISpecifyPropertyPages
//
STDMETHODIMP CKalmTrack::NonDelegatingQueryInterface(REFIID riid, void **ppv)
{
    CheckPointer(ppv,E_POINTER);

    if (riid == IID_ICKalmTrack) {
        return GetInterface((ICKalmTrack *) this, ppv);
    } else if (riid == IID_ISpecifyPropertyPages) {
        return GetInterface((ISpecifyPropertyPages *) this, ppv);
    } else {
        return CTransInPlaceFilter::NonDelegatingQueryInterface(riid, ppv);
    }

} // NonDelegatingQueryInterface
開發者ID:mikanradojevic,項目名稱:sdkpub,代碼行數:18,代碼來源:Kalman.cpp

示例13: CheckPointer

STDMETHODIMP CM4M3DS::NonDelegatingQueryInterface(REFIID riid, void **ppv)
{
	CheckPointer(ppv, E_POINTER);

	if (riid == IID_IM4M3decoder)
	{
		return GetInterface((IM4M3decoder *) this, ppv);
	} 
	if (riid == IID_ISpecifyPropertyPages)
	{
		return GetInterface((ISpecifyPropertyPages *) this, ppv); 
	} 
	return CVideoTransformFilter::NonDelegatingQueryInterface(riid, ppv);
}
開發者ID:mojo-codec,項目名稱:M4M3-H265-Codec,代碼行數:14,代碼來源:M4M3DS.cpp

示例14: CheckPointer

STDMETHODIMP CDXVA2Sample::QueryInterface(REFIID riid, __deref_out void **ppv)
{
  CheckPointer(ppv,E_POINTER);
  ValidateReadWritePtr(ppv,sizeof(PVOID));

  if (riid == __uuidof(IMFGetService)) {
    return GetInterface((IMFGetService*) this, ppv);
  }
  if (riid == __uuidof(ILAVDXVA2Sample)) {
    return GetInterface((ILAVDXVA2Sample*) this, ppv);
  } else {
    return CMediaSample::QueryInterface(riid, ppv);
  }
}
開發者ID:1pi,項目名稱:LAVFilters,代碼行數:14,代碼來源:DXVA2SurfaceAllocator.cpp

示例15: GetInterface

//----------------------------------------------------------------------------
// NonDelegatingQueryInterface
//
//----------------------------------------------------------------------------
STDMETHODIMP
CMpegMovie::NonDelegatingQueryInterface(
    REFIID riid,
    void** ppv
    )
{
    if (riid == __uuidof(IVMRSurfaceAllocator)) {
        return GetInterface((IVMRSurfaceAllocator*)this, ppv);
    }
    else if (riid == __uuidof(IVMRImagePresenter)) {
        return GetInterface((IVMRImagePresenter*)this, ppv);
    }

    return CUnknown::NonDelegatingQueryInterface(riid,ppv);
}
開發者ID:grakidov,項目名稱:Render3D,代碼行數:19,代碼來源:AllocPresenter.cpp


注:本文中的GetInterface函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。