sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
// All rights reserved.
|
sl@0
|
4 |
// This component and the accompanying materials are made available
|
sl@0
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
// which accompanies this distribution, and is available
|
sl@0
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
//
|
sl@0
|
9 |
// Initial Contributors:
|
sl@0
|
10 |
// Nokia Corporation - initial contribution.
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// Contributors:
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// Description:
|
sl@0
|
15 |
//
|
sl@0
|
16 |
/////////////////////////////////////////////////////////////////////
|
sl@0
|
17 |
// graphics-wserv-integ-xga.script
|
sl@0
|
18 |
//
|
sl@0
|
19 |
// This test is a direct copy of graphics-wserv-integ-surface-0001-001
|
sl@0
|
20 |
// using the emulator configured in xga mode
|
sl@0
|
21 |
//
|
sl@0
|
22 |
/////////////////////////////////////////////////////////////////////
|
sl@0
|
23 |
|
sl@0
|
24 |
//! @file
|
sl@0
|
25 |
//! @SYMTestSuiteName graphics-wserv-integ-surface
|
sl@0
|
26 |
//! @SYMScriptTestEnvironment This test is only only run on emulator
|
sl@0
|
27 |
LOAD_SUITE t_wservintegserver
|
sl@0
|
28 |
|
sl@0
|
29 |
START_TESTCASE GRAPHICS-WSERV-INTEG-XGA-0001-0001
|
sl@0
|
30 |
//! @SYMTestCaseID GRAPHICS-WSERV-INTEG-XGA-0001-0001
|
sl@0
|
31 |
//! @SYMPREQ 1007 1019
|
sl@0
|
32 |
//! @SYMREQ 8222 8223 8227
|
sl@0
|
33 |
//! @SYMAPI RWindow
|
sl@0
|
34 |
//! @SYMAuthor John Mercer
|
sl@0
|
35 |
//! @SYMCreationDate 24/08/2007
|
sl@0
|
36 |
//! @SYMTestCaseDependencies graphics-wserv-integ-surface.script
|
sl@0
|
37 |
//! @SYMTestCaseDesc Moving Image with opaque UI Components
|
sl@0
|
38 |
//! @SYMTestActions Environment settings:
|
sl@0
|
39 |
//! Emulator configured in xga mode
|
sl@0
|
40 |
//! Window Size: Full screen
|
sl@0
|
41 |
//! Image Size: Full screen
|
sl@0
|
42 |
//! Simulated Load: 0%
|
sl@0
|
43 |
//! Colour Depth: 16MAP
|
sl@0
|
44 |
//! Pixel Format: YUV
|
sl@0
|
45 |
//! Screen Number: 0
|
sl@0
|
46 |
//! Rotation: 0
|
sl@0
|
47 |
//! Screen Location: (0,0)
|
sl@0
|
48 |
//! Execution Time: 30s
|
sl@0
|
49 |
//! Frame Rate: 30fps
|
sl@0
|
50 |
//! Buffer Format: Multiple [exact details unknown at this point]
|
sl@0
|
51 |
//! Start SimLoadApp
|
sl@0
|
52 |
//! Start pseudo video playback application:
|
sl@0
|
53 |
//! Create RWindow (simulate DevVideo/Ecam usage)
|
sl@0
|
54 |
//! Create RsurfaceHandle with ‘first frame of video’
|
sl@0
|
55 |
//! Use Surface data APIs to generate content. Since this is licensee replaceable, the test code implementation must allow for this to be replaceable, e.g. library dll. [exact details of data APIs unknown at this point]
|
sl@0
|
56 |
//! Content is to be simple but quickly indicative of failure to the human eye, e.g. a clock sweep with large numerals indicating the frame number..
|
sl@0
|
57 |
//! Utilise multiple buffers to simulate real video usage, e.g. 4 buffers for MPEG4 decoding.
|
sl@0
|
58 |
//! Call RWindow::SetBackgroundImage()
|
sl@0
|
59 |
//! Create simulated UI Components
|
sl@0
|
60 |
//! Draw components using CwindowGC::BitBlt() with preloaded images of UI components (button, menu bar).
|
sl@0
|
61 |
//! Activate Window.
|
sl@0
|
62 |
//! Update Image with next frame
|
sl@0
|
63 |
//! Utilise RsurfaceHandle notification to indicate when surface has been consumed by GCE. Use Surface data APIs to update contents. Invalidate window to cause redraw.
|
sl@0
|
64 |
//! Continuously perform Image updates to simulate video playback.
|
sl@0
|
65 |
//!
|
sl@0
|
66 |
//! Measure the frame rate at which the display is updated.
|
sl@0
|
67 |
//! @SYMTestStatus Implemented
|
sl@0
|
68 |
//! @SYMTestPriority 1
|
sl@0
|
69 |
//! @SYMTestExpectedResults Frame Rate: 30fps
|
sl@0
|
70 |
//! Display is composed of moving image in background, with opaque UI components in foreground. The moving image is that of a clock sweep with large numerals indicating the frame number.
|
sl@0
|
71 |
//! @SYMTestType IT
|
sl@0
|
72 |
|
sl@0
|
73 |
RUN_TEST_STEP 500 t_wservintegserver WServIntegSurface c:\graphics\graphics-wserv-integ-xga.ini graphics-wserv-integ-xga-0001-001
|
sl@0
|
74 |
END_TESTCASE GRAPHICS-WSERV-INTEG-XGA-0001-0001
|