Example #1
0
/******************************Public*Routine******************************\
* UpdateAppImage
* DON'T WORK IN RENDERLESS MODE
\**************************************************************************/
BOOL//
CMpegMovie::UpdateAppImage(VMRALPHABITMAP* lpBmpInfo)
{
	if ( m_Vw ) {

		// Windowed movie playback can't have app image.
		return FALSE;

	}	else {


		IVMRMixerBitmap* pBmp;

		if (!m_Wc)
			return FALSE;

		HRESULT hres = m_Wc->QueryInterface(IID_IVMRMixerBitmap, (LPVOID *)&pBmp);
		if(SUCCEEDED(hres))
		{
			hres = pBmp->UpdateAlphaBitmapParameters(lpBmpInfo);
			pBmp->Release();
		}

		return hres;

	}
}
Example #2
0
void CImageMixer_VMR7::Clear()
{
	if (m_hdc!=NULL) {
		IVMRMixerBitmap *pMixerBitmap;

		if (SUCCEEDED(m_pRenderer->QueryInterface(IID_IVMRMixerBitmap,
								reinterpret_cast<LPVOID*>(&pMixerBitmap)))) {
			VMRALPHABITMAP ab;

			ab.dwFlags=VMRBITMAP_DISABLE;
			ab.fAlpha=0.0f;
			pMixerBitmap->UpdateAlphaBitmapParameters(&ab);
			pMixerBitmap->Release();
		}
	}
}