graphicscomposition/openwfsupport/test/tstreamoperation/tnativestream.cpp
changeset 103 2717213c588a
parent 98 bf7481649c98
child 121 d72fc2aace31
equal deleted inserted replaced
98:bf7481649c98 103:2717213c588a
   952         
   952         
   953         SymbianStreamGetHeader(ns, &attWidth, &attHeight, &attStreamStride, &attStreamFormat, &attStreamPixelSize);		
   953         SymbianStreamGetHeader(ns, &attWidth, &attHeight, &attStreamStride, &attStreamFormat, &attStreamPixelSize);		
   954             
   954             
   955         ASSERT_EQUALS(attWidth, width);
   955         ASSERT_EQUALS(attWidth, width);
   956         ASSERT_EQUALS(attHeight, height);
   956         ASSERT_EQUALS(attHeight, height);
   957         ASSERT_EQUALS(attStreamFormat, (TInt32)supportedFormats[x].symbianPixelFormat);
   957         ASSERT_EQUALS((TInt32)attStreamFormat, (TInt32)supportedFormats[x].symbianPixelFormat);
   958         if (BytesPerPixel(supportedFormats[x].symbianPixelFormat) > 0)
   958         if (BytesPerPixel(supportedFormats[x].symbianPixelFormat) > 0)
   959             {
   959             {
   960             ASSERT_EQUALS(attStreamStride, (streamPixelSize * width));
   960             ASSERT_EQUALS(attStreamStride, (streamPixelSize * width));
   961             }
   961             }
   962         else
   962         else
  4744         HAL::Get(0, HALData::EDisplayOffsetBetweenLines, halStride);
  4744         HAL::Get(0, HALData::EDisplayOffsetBetweenLines, halStride);
  4745         SymbianStreamGetHeader(ns, &width, &height, &streamStride, &streamFormat, &streamPixelSize);
  4745         SymbianStreamGetHeader(ns, &width, &height, &streamStride, &streamFormat, &streamPixelSize);
  4746         
  4746         
  4747         ASSERT_EQUALS(preFlipWidth, height);
  4747         ASSERT_EQUALS(preFlipWidth, height);
  4748         ASSERT_EQUALS(preFlipHeight, width);
  4748         ASSERT_EQUALS(preFlipHeight, width);
  4749         ASSERT_EQUALS(preFlipStreamFormat, streamFormat);
  4749         ASSERT_EQUALS((TInt32)preFlipStreamFormat,(TInt32)streamFormat);
  4750         ASSERT_TRUE(streamStride == halStride);
  4750         ASSERT_TRUE(streamStride == halStride);
  4751         ASSERT_EQUALS(preFlipStreamPixelSize, streamPixelSize); 
  4751         ASSERT_EQUALS(preFlipStreamPixelSize, streamPixelSize); 
  4752             
  4752             
  4753         SymbianStreamGetHeader(ns, NULL, NULL, NULL, NULL, NULL);
  4753         SymbianStreamGetHeader(ns, NULL, NULL, NULL, NULL, NULL);
  4754         // Clearing the flip flag
  4754         // Clearing the flip flag