Share via


VMR Rotation Scaling Tests (Compact 7)

3/12/2014

This test is to verify whether the video mixing renderer (VMR) properly handles rotation scaling for video playback.

Test Prerequisites

Your device must meet the following requirements before you run this test.

1. The XML file to be used with this is cetk_vmr_rs_test.xml

2. The test device should have display, sound card, and network access

3. The beginning of the XML configure file cetk_vmr_rs_test.xml contains information about the media used for test

*The information in the file points to one internal server, wcemedia03, which you will not be able to use

Subtests

The table below lists the subtests included in this test.

SubTest ID Description

100

Single .wmv stream, scales playback image down to 0.5x original size when graph is running, prefers upstream scale and allows overlay

101

Single .wmv stream, scales playback image up to 1.5x original size when graph is stopped, prefers upstream scales and forces off screen

102

Single .wmv stream, dynamic scales playback image to 0.5x, 1x and 1.5x original size when graph is running, prefers upstream scale and allows overlay

200

Single .wmv stream, dynamic rotates playback image 90, 180, 270 and 0 degrees when graph is running, prefers upstream rotate and allows overlay

201

Single .wmv stream, rotates playback image 180 degrees when graph is paused, prefers upstream rotate and allows overlay

300

Single .wmv stream, rotates playback image 270 degrees and scales down to 0.5x original size when graph is running, prefers upstream rotate/scale and allows overlay

301

Single .wmv stream, rotates playback image 180 degrees and scale up to 2x original size when graph is paused, prefers upstream scale and allows overlay

400

Two .wmv streams mixing, scales mixed playback image down to 0.5x original size when graph is running, prefers upstream scale and allows overlay

401

Two .wmv streams mixing, scales mixed playback image up to 1.5x original size when graph is stopped, prefers upstream scale and allows overlay

402

Two .wmv streams mixing, dynamic scales mixed playback image 0.5x, 1x and 1.5x original size when graph is running, prefers upstream scale and allows overlay

500

Two .wmv streams mixing, dynamic rotates mixed playback image 90, 180, 270 and 0 degrees when graph is running, prefers upstream rotate and allows overlay

501

Two .wmv streams mixing, dynamic rotates mixed playback image 270 degrees when graph is stopped, prefers upstream rotate and forces off screen

600

Two .wmv streams mixing, rotates mixed playback image 270 degrees and scales down to 0.5x original size when graph is running, prefers upstream rotate/scale and allows overlay

601

Two .wmv streams mixing, rotates mixed playback image 180 degrees and scales up to 2x original size when graph is paused, prefers upstream rotate/scale and allow overlay

Setting Up the Test

*Make sure you have RotationScalingTest.dll and cetk_vmr_rs_test.xml

*Make sure the test machine can access the media you specified in the XML file, either on local storage or on a streaming server

1. If you want to test streaming playback:

*To make the test work for you, you need to set up an Internet Information Services (IIS) server yourself and then you need to modify <BaseUrl> part to match your server setup. For example, its original setup is <IIS_HTTP>http://wcemedia03/mainmedia/cedxmedia/mediafiles/WMV/</IIS_HTTP>. If you server name is OEMServer, and you put the media file under path testmedia\wmv, then the new setup should be <IIS_HTTP>http://OEMServer/testmedia/WMV/</IIS_HTTP>.

*Then you need to update the <FileName> to match your media file name. For example, the media CthdNewSignedWMV has file name <FileName>cthd_320_240_24_newsigned.wmv</FileName>. If your file name is OEMtest.wmv, the new string should be <FileName>OEMtest.wmv</FileName>.

*Do the same modification to each media you want to use for the tests.

*When you finish all above modifications, you can start the test and the test will automatically go to the location you specified to look for the test media.

2. If you only want to do local playback:

*Copy the media to the root of the hard disk or the storage card of your device

*Update all media strings of all test cases in the XML to use disk instead of IIS_HTTP, for example, the original string is <Media>BVT_WMV:IIS_HTTP</Media>, change it to <Media>BVT_WMV:Disk</Media>

*Once you change all of them, the test will start to look for the media file on the hard disk or storage card

Running the Test

Command Line Parameter Description

/config

name and path of the configuration file

Verifying the Test

*Check test passes in the log

*Visual inspection is required to make sure the final playback image on the screen is correctly rotated/scaled as test case describes

Troubleshooting the Test

*If graph building fails, first determine whether the path to the media specified in the XML file is correct, if you can access it

*Then determine whether you have all the required sysgens

For additional platform specific issues, consult the CTK articles on the TechNet wiki.

See Also

Other Resources

Multimedia - Video Tests