<<

White Paper Abhishek Girotra Enabling Hardware Graphics SW TME Intel Corporation Accelerated Media Playback on the Intel® Atom™/ Intel® SCH US15W Chipset Platform and IEGD Case Study Using CyberLink PowerDVD* on Windows* XP

May 2010

323832

Enabling Hardware Accelerated Media Playback on the Intel® Atom™/Intel® SCH US15W Chipset Platform and IEGD

Executive Summary

This paper aims at showcasing a special Windows* XP registry setting for the CyberLink PowerDVD* player. The CyberLink PowerDVD player with proper registry for Video Renderer Filter can be successfully used with IEGD to hardware accelerate media playback on the Intel® Atom™ Processor with Intel® System Controller Hub US15W Chipset platform.

This paper discusses differences between various available Video Renderer Filters, an important piece of video decoding and rendering, on Windows XP and how they relate to IEGD and PowerDVD.

Detailed instructions are outlined to set the PowerDVD registry key.

The Intel® Embedded Design Center provides qualified developers with web-based access to technical resources. Access Intel Confidential design materials, step-by step guidance, application reference solutions, training, Intel’s tool loaner program, and connect with an e-help desk and the embedded community. Design Fast. Design Smart. Get started today. www.intel.com/embedded/edc.

2 Hardware-accelerated Video Decode on the Intel® Atom™ Processor with the Intel® SCH US15W Chipset Platform

Contents

Background ...... 4

IEGD and Video Renderers ...... 4

The CyberLink* PowerDVD Solution ...... 5

Summary ...... 6

References ...... 6

3

Background

With the increase in connectivity of embedded devices to the Internet, the demand for watching high definition videos online or on locally stored media content on low-cost/low-power consuming devices has exploded. Due to the intense computing requirements of video processing, Intel has introduced an ultra low power platform which pairs the Intel® Atom™ processor with the Intel® System Controller Hub US15W chipset (Intel® SCH US15W chipset). This platform leverages dedicated hardware accelerators to decode high definition video in real-time while doing so within with a very low power profile. The Intel® SCH US15W chipset offers capability to decode partial or complete video bit-streams in hardware using DirectX Video Acceleration (DXVA) [1] on Windows* XP.

Media player applications that have software decoders available can use the DXVA API to hardware accelerate decoding and rendering of video. The Intel® Embedded Graphics Driver (IEGD) provides a Direct Driver Interface (DDI) to DXVA, and the embedded software stack uses the Variable Length Decoding (VLD) entry point to decode compressed video bit-streams completely in the hardware. After the video is decoded it is handed over to the Video Mixing Renderer (VMR) which uses the * DirectDraw [6] or Microsoft* * 9 [7] (Microsoft* DirectX* ) to render video using graphics and add composition effects and transitions between multiple video streams, text and 2D/3D graphics. Note: For details on video decode capabilities of the Intel® Atom™ processor and Intel® US15W chipset platform, please refer to the Hardware Accelerated Video Decode white paper available at EDC: http://download.intel.com/design/intarch/papers/322503.pdf. IEGD and Video Renderers

On Windows* XP, two video mixing renderer filters (VMR-7 [2] and VMR-9 [3]) are compatible with DXVA. The VMR-7 filter uses Microsoft DirectDraw 7 and the VMR-9 filter uses Microsoft Direct3D 9. The VMR-9 filter has the ability to process video data directly with Direct3D APIs such as pixel shaders which might put additional load on GPU as compared to using a [4] plane in the Intel® SCH US15W chipset which inherently scales the video, and performs de-interlacing and color conversion at no cost to the 3D engine. Hardware overlay is efficient way of rendering video content with high

323832

Hardware-accelerated Video Decode on the Intel® Atom™ Processor with the Intel® SCH US15W Chipset Platform

frame rate with no noticeable performance loss while rendering 3D objects simultaneously with rendering video. Direct3D 9 does not support Overlay surfaces [5] in Windows XP and supports hardware overlays starting with Windows* 7.

On Windows XP, IEGD supports VMR-7 as VMR-7 uses DirectDraw 7 which has support for overlay surfaces. One downside to using VMR-7 would be if the video is rendered on a hardware overlay plane then its composition with the frame buffer might not be possible if the hardware does not provide an alternative method for the video to blend with other 2D/3D objects. The Intel® SCH US15W Chipset and IEGD make it possible to make the overlay video transparent, and the 2D/3D data and windows visible or blended with the video. This effect is realized by an exclusive Intel® SCH US15W Chipset feature that enables per-pixel alpha blending between the overlay plane and frame buffer. The CyberLink* PowerDVD Solution

We recommend using CyberLink* PowerDVD 8.0 (v3116D, OEM 2CH update) on Windows XP with IEGD 10.3.x. CyberLink PowerDVD 8.0 (v3116D, OEM 2CH update) can be obtained by directly contacting CyberLink; for any customer inquiry please contact Louis Chen at [email protected].

PowerDVD has been tested to hardware accelerate videos encoded with the MPEG-2, H.264 and VC-1 formats using the more efficient VLD entry point on the Intel® SCH US15W chipset. PowerDVD by default connects with the VMR- 9 renderer during playback on Windows XP. As VMR-9 is not completely supported by IEGD, it is recommended to force PowerDVD to choose VMR-7 as the video renderer. This can be accomplished by setting the hidden Windows registry key for PowerDVD as follows:

1. Close all open PowerDVD instances. 2. Go to Start > Run. In the dialog box type regedit and hit enter. 3. In the registry editor window, find the following key: HKEY_LOCAL_MACHINE\Software\CyberLink\PowerDVD8 4. Right click on PowerDVD and select New > DWORD Value 5. In the right pane, name the key as DX_ForceVideoRenderer and set the DWORD value to 0x00000002. 6. Close the registry editor window and restart the PowerDVD player. This fix will enable PowerDVD to use the VMR-7 renderer.

While playing a DVD or other locally stored media, to ensure the hardware acceleration is being used, click PowerDVD settings and then select the Information tab.

5 Enabling Hardware Accelerated Media Playback on the Intel® Atom™/Intel® SCH US15W Chipset Platform and IEGD

Look for the following information to determine if the DXVA is being used by the codec or not:

Video accelerator: DirectX VA (not in use) or Video accelerator: DirectX VA (in use)

Summary

This paper discussed details on DXVA-compatible Video Renderer Filters available on Windows XP and their compatibility with IEGD and US15W hardware. Configuration instructions were provided to set the PowerDVD registry key to efficiently make calls to DXVA and VMR7 to hardware accelerate video decoding and rendering.

The Intel® Embedded Design Center provides qualified developers with web- based access to technical resources. Access Intel Confidential design materials, step-by step guidance, application reference solutions, training, Intel’s tool loaner program, and connect with an e-help desk and the embedded community. Design Fast. Design Smart. Get started today. http://intel.com/embedded/edc.

References

1. “Introduction to DirectX VA”,

2. “Video Mixing Renderer Filter 7”,

3. “Video Mixing Renderer Filter 9”,

4. “Hardware Overlay Support”,

5. “Overlay Surface Overview”,

6. “DirectDraw”,

7. “Direct3D 9 Graphics”,

6 Hardware-accelerated Video Decode on the Intel® Atom™ Processor with the Intel® SCH US15W Chipset Platform

7 Enabling Hardware Accelerated Media Playback on the Intel® Atom™/Intel® SCH US15W Chipset Platform and IEGD

Author Abhishek Girotra is a Graphics Software TME with Embedded and Communications Group (ECG) at Intel Corporation.

Acronyms API Application Programming Interface CPU Central Processing Unit DDI Interface DXVA DirectX Video Acceleration IEGD Intel Embedded Graphics Driver GPU MC Motion Compensation SCH System Controller Hub VLD Variable Length Decoding VMR Video Mixing Renderer

8 Hardware-accelerated Video Decode on the Intel® Atom™ Processor with the Intel® SCH US15W Chipset Platform

INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL’S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving, or life sustaining applications. Intel may make changes to specifications and product descriptions at any time, without notice. This paper is for informational purposes only. THIS DOCUMENT IS PROVIDED "AS IS" WITH NO WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE. Intel disclaims all liability, including liability for infringement of any proprietary rights, relating to use of information in this specification. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted herein.

Performance tests and ratings are measured using specific systems and/or components and reflect the approximate performance of Intel products as measured by those tests. Any difference in system hardware or software design or configuration may affect actual performance. Buyers should consult other sources of information to evaluate the performance of systems or components they are considering purchasing. For more information on performance tests and on the performance of Intel products, visit Intel Performance Benchmark Limitations

Intel Core, Intel Inside, Intel Inside logo, Intel. Leap ahead., Intel. Leap ahead. logo, Intel Atom and the Intel Atom family of processors, and the Intel System Controller Hub US15W chipset are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the U.S. and other countries.

*Other names and brands may be claimed as the property of others.

Copyright © 2010 Intel Corporation. All rights reserved.

9