Esempio n. 1
0
void CMMFTestVideoDecodeHwDevice::SetScreenClipRegion(const TRegion& aRegion)
	{
	TRect dsaRect(KTestDSARectA, KTestDSARectB, KTestDSARectC, KTestDSARectD);
	TRegionFix<1> dsaReg(dsaRect);

	__ASSERT_ALWAYS(dsaReg.BoundingRect() == aRegion.BoundingRect(), 
		DevVideoDecoderPanic(EDecoderPanicScreenClipRegion)); 
	}
Esempio n. 2
0
void CMMFTestVideoDecodeHwDevice::StartDirectScreenAccessL(const TRect& aVideoRect, CFbsScreenDevice& /*aScreenDevice*/, const TRegion& aClipRegion)
	{
	TRect dsaRect(KTestDSARectA, KTestDSARectB, KTestDSARectC, KTestDSARectD);
	TRegionFix<1> dsaReg(dsaRect);

	// probably no need to check aScreenDevice
	if ( /*!(&aScreenDevice) || */!(dsaRect == aVideoRect) || 
		 !(dsaReg.BoundingRect() == aClipRegion.BoundingRect()) )
		 User::Leave(KErrNotSupported);
	}