DirectX Video Acceleration

API for hardware video acceleration

"DXVA" redirects here. For the radio station in Butuan, Philippines, see DXVA-FM.

DirectX Video Acceleration (DXVA) is a Microsoft API specification for the Microsoft Windows and Xbox 360 platforms that allows video decoding to be hardware-accelerated. The pipeline allows certain CPU-intensive operations such as iDCT, motion compensation and deinterlacing to be offloaded to the GPU. DXVA 2.0 allows more operations, including video capturing and processing operations, to be hardware-accelerated as well.

DXVA works in conjunction with the video rendering model used by the video card. DXVA 1.0, which was introduced as a standardized API with Windows 2000 (DirectX 7), and is currently available on Windows 98 or later, can use either the overlay rendering mode or VMR 7/9.[1] DXVA 2.0, available only on Windows Vista, Windows 7, Windows 8 and later OSs, integrates with Media Foundation (MF) and uses the Enhanced Video Renderer (EVR) present in MF.[1]

## Overview

[edit]

The DXVA is used by software video decoders to define a codec-specific pipeline for hardware-accelerated decoding and rendering of the codec. The pipeline starts at the CPU which is used for parsing the media stream and conversion to DXVA-compatible structures. DXVA specifies a set of operations that can be hardware-accelerated and device driver interfaces (DDIs) that the graphic driver can implement to accelerate the operations. If the codec needs to do any of the defined operations, it can use these interfaces to access the hardware-accelerated implementation of these operations. If the graphic driver does not implement one or more of the interfaces, it is up to the codec to provide a software fallback for it. The decoded video is handed over to the hardware video renderer, where further video post-processing might be applied to it before being rendered to the device. The resulting pipeline is usable in a DirectShow-compatible application.

DXVA specifies the Motion Compensation DDI, which specifies the interfaces for iDCT operations, Huffman coding, motion compensation, alpha blending, inverse quantization, color space conversion and frame-rate conversion operations, among others.[2][3] It also includes three sub-specifications: Deinterlacing DDI, COPP DDI and ProcAmp DDI.[4] The Deinterlacing DDI specifies the callbacks for deinterlacing operations. The COPP (Certified Output Protection Protocol) DDI functions allow the pipeline to be secured for DRM-protected media, by specifying encryption functions. The ProcAmp DDI is used to accelerate post-processing video. The ProcAmp driver module sits between the hardware video renderer and the display driver, and it provides functions for applying post-processing filters on the decompressed video.

The functions exposed by DXVA DDIs are not accessible directly by a DirectShow client, but are supplied as callback functions to the video renderer. As such, the renderer plays a very important role in anchoring the pipeline.

DXVA support for H.264 was added in DirectX 9.0c.

### DXVA on Windows Vista and later

[edit]

DXVA 2.0 enhances the implementation of the video pipeline and adds a host of other DDIs, including a Capture DDI for video capture. The DDIs it shares with DXVA 1.0 are also enhanced with the ability to use hardware acceleration of more operations. Also, the DDI functions are directly available to callers and need not be mediated by the video renderer.[5] As such, a program can also create a pipeline for simply decoding the media (without rendering) or post-processing and rendering (without decoding). These features require the Windows Display Driver Model drivers, which limits DXVA 2.0 to Windows Vista, Windows Server 2008,[1][5] Windows 7, Windows Server 2008 R2 and Windows 8. On Windows XP and Windows 2000, programs can use DXVA 1.0. DXVA 2.0 allows Enhanced Video Renderer as the video renderer only on Vista, Windows 7, and Windows 8.[1] (With Windows XP, DXVA-Rendering is possible with VMR9 and the well-known Overlay Mixer.) DXVA integrates with Media Foundation and allows DXVA pipelines to be exposed as Media Foundation Transforms (MFTs). Even decoder pipelines or post-processing pipelines can be exposed as MFTs, which can be used by the Media Foundation topology loader to create a full media playback pipeline. DXVA 1.0 is emulated using DXVA 2.0.[1] DXVA 2.0 does not include the COPP DDI, rather it uses PVP for protected content. Windows 7 implements DXVA-HD[6] if the driver complies with WDDM 1.1.

#### DXVA2 implementations: native and copy-back

[edit]

DXVA2 implementations come in two variants: native and copy-back.

With native implementation, the decoded video stays in GPU memory until it has been displayed. The video decoder must be connected to the video renderer with no intermediary processing filter. The video renderer must also support DXVA, which gives less freedom in the choice of renderers.

With copy-back implementation, the decoded video is copied from GPU memory back to the CPU's memory. This implementation doesn't have the limitations mentioned above and acts similarly to a normal software decoder; however, video stuttering will occur if the GPU is not fast enough to copy its memory back to the CPU's memory.

Native mode is advantageous unless there is a need for customized processing, as the additional copy-back operations will increase GPU memory load.[7]

## Software

[edit]

* Adobe Flash v10.3 and later
* Boxee
* CoreAVC v2.5.0 and later[8]
* Daum PotPlayer[9]
* DivX H.264 Decoder v1.2 and later
* DVDFab Media Player 3
* ffdshow-tryouts revision 3185 and later
* Freemake Video Converter v2.2 and later
* Kodi
* Media Player Classic Home Cinema
* MediaPortal
* mpv (DXVA 2.0 only)
* Nero Multimedia Suite (Nero Kwik Media, Nero MediaHub, Nero Showtime)
* Plex
* PowerDVD
* RealPlayer
* VLC media player v1.1 and later (DXVA 2.0 only)[10]
* WinDVD
* Windows Media Player v6.4 and later[11]
* Windows Media Player 11 (WMV3 only)
* Windows Media Player 12
* HandBrake

## See also

[edit]

* AMD Unified Video Decoder
* Distributed Codec Engine
* Intel Clear Video
* Media Foundation
* Nvidia PureVideo
* OpenMAX
* VDPAU
* Video Acceleration API
* X-Video Bitstream Acceleration
* X-Video Motion Compensation

## References

[edit]

1. ^ a b c d e "DirectX Video Acceleration 2.0". Retrieved 2007-10-24.
2. ^ "Introduction to DirectX VA". Archived from the original on 2008-04-23. Retrieved 2007-10-24.
3. ^ "Microsoft DirectX Video Acceleration (DirectX VA) support". Retrieved 2007-10-24.
4. ^ "DirectX Video Acceleration". Archived from the original on 2008-04-08. Retrieved 2007-10-24.
5. ^ a b "What's New in DirectShow". Retrieved 2007-10-24.
6. ^ "DXVA-HD (Windows)". msdn.microsoft.com. Retrieved 21 April 2018.
7. ^ S, Ganesh T. "ASRock's High-End Vision 3D 252B HTPC Review". anandtech.com. Archived from the original on May 9, 2012. Retrieved 21 April 2018.
8. ^ "CoreAVC Changelog | CoreCodec". Archived from the original on 2011-07-04. Retrieved 2011-04-09.
9. ^ "Daum tv팟". tvpot.daum.net. Archived from the original on 22 May 2017. Retrieved 21 April 2018.
10. ^ "VLC GPU Decoding - VideoLAN Wiki". wiki.videolan.org. Retrieved 21 April 2018.
11. ^ "How to turn off the hardware acceleration on Windows Media Player".

## External links

[edit]

* DirectX Video Acceleration
* DXVAChecker, utility listing DXVA modes of which the given computer is capable

* v
* t
* e

Microsoft APIs and frameworks

Graphics and UI|

* Desktop Window Manager
* Direct2D
* Direct3D
* D3D (extensions)
* GDI / GDI+
* WPF
* Silverlight
* WinUI
* Windows Color System
* Windows Image Acquisition
* Windows Imaging Component
* DirectX Graphics Infrastructure (DXGI)
* Windows Advanced Rasterization Platform
* WinG

Audio|

* DirectMusic
* DirectSound
* XACT
* Speech API
* XAudio2

Multimedia|

* DirectX
* Media Objects
* Video Acceleration
* Xinput
* DirectInput
* DirectShow
* Managed DirectX
* Media Foundation
* XNA
* Windows Media
* Video for Windows

Web|

* MSHTML
* JScript
* VBScript
* BHO
* XDR
* SideBar Gadgets
* TypeScript

Data access|

* Data Access Components (MDAC)
* ADO
* ADO.NET
* ODBC
* OLE DB
* Extensible Storage Engine
* Entity Framework
* Sync Framework
* Access Database Engine
* MSXML
* OPC

Networking|

* Winsock
* LSP
* Winsock Kernel
* Filtering Platform
* NDIS
* Windows Rally
* BITS
* P2P API
* MSMQ
* DirectPlay

Communication|

* Messaging API
* Telephony API
* WCF

Administration and
management|

* Win32 console
* Windows Script Host
* WMI (extensions)
* PowerShell
* Task Scheduler
* Offline Files
* Shadow Copy
* Windows Installer
* Error Reporting
* Event Log
* Common Log File System

Component model|

* COM
* COM+
* ActiveX
* Distributed Component Object Model
* .NET Framework

Libraries|

* Framework Class Library
* Microsoft Foundation Classes (MFC)
* Active Template Library (ATL)
* Windows Template Library (WTL)

Device drivers|

* WDM
* WDF
* KMDF
* UMDF
* WDDM
* NDIS
* UAA
* VxD

Security|

* Crypto API
* CAPICOM
* Windows CardSpace
* Data Protection API
* Security Support Provider Interface (SSPI)

.NET|

* ASP.NET
* ADO.NET
* Remoting
* Silverlight
* TPL
* WCF
* WCS
* WPF
* WF

Software factories|

* Enterprise Library
* CCF

IPC|

* MSRPC
* Dynamic Data Exchange (DDE)
* Remoting
* WCF

Accessibility|

* Active Accessibility
* UI Automation

Text and multilingual
support|

* DirectWrite
* Text Services Framework
* Text Object Model
* Input method editor
* Language Interface Pack
* Multilingual User Interface
* Uniscribe

* v
* t
* e

Microsoft Windows components

* APIs
* Architecture
* 9x
* NT
* Booting process
* Games

Management
tools|

* App Installer
* Command Prompt
* Control Panel
* Device Manager
* DirectX Diagnostic Tool
* Disk Cleanup
* Drive Optimizer
* Driver Verifier
* Event Viewer
* IExpress
* Management Console
* Netsh
* Performance Monitor
* PowerShell
* Recovery Console
* Resource Monitor
* Settings
* Sysprep
* System Configuration
* System File Checker
* System Information
* System Policy Editor
* System Restore
* Task Manager
* Windows Error Reporting
* Windows Ink
* Windows Installer
* Windows Update
* Windows Insider
* WinRE
* WMI

Apps|

* 3D Viewer
* Calculator
* Calendar
* Camera
* Character Map
* City Art Search
* Clipchamp
* Clock
* Company Portal
* Copilot
* Edge
* Fax and Scan
* Feedback Hub
* Get Help
* Magnifier
* Mail
* Media Player
* 2022
* Mesh
* Messaging
* Mobility Center
* Money
* Movies & TV
* Narrator
* News
* Notepad
* OneDrive
* OneNote
* Paint
* PC Manager
* People
* Phone Link
* Photos
* Quick Assist
* Remote Desktop Connection
* Snipping Tool
* Speech Recognition
* Sticky Notes
* Store
* Terminal
* Tips
* To Do
* Voice Recorder
* Weather
* Whiteboard
* Windows App
* Xbox

Shell|

* Action Center
* Aero
* AutoPlay
* AutoRun
* ClearType
* Explorer
* Search
* IFilter
* Indexing Service
* Namespace
* Saved search
* Special folder
* Start menu
* Task View
* Taskbar
* Windows Spotlight
* Windows XP visual styles

Services|

* BITS
* CLFS
* Error Reporting
* Multimedia Class Scheduler
* Service Control Manager
* Shadow Copy
* Task Scheduler
* Wireless Zero Configuration

File systems|

* CDFS
* DFS
* exFAT
* FAT
* IFS
* NTFS
* EFS
* Hard link
* links
* Mount Point
* Reparse point
* TxF
* ReFS
* UDF

Server|

* Active Directory
* Active DRM Services
* DFS Replication
* Distributed Transaction Coordinator
* DNS
* Domains
* Folder redirection
* Group Policy
* Hyper-V
* IIS
* MSMQ
* Network Access Protection
* Print Services for UNIX
* PWS
* Remote Desktop Services
* Remote Differential Compression
* Remote Installation Services
* Roaming user profiles
* Server Core
* SharePoint
* System Resource Manager
* Windows Deployment Services
* Windows Media Services
* WSUS

Architecture|

* Boot Manager
* Console
* CSRSS
* Desktop Window Manager
* Enhanced Write Filter
* Graphics Device Interface
* Hardware Abstraction Layer
* I/O request packet
* Imaging Format
* Kernel Transaction Manager
* Library files
* Logical Disk Manager
* LSASS
* MinWin
* NTLDR
* Ntoskrnl.exe
* Object Manager
* Open XML Paper Specification
* Portable Executable
* DLL
* EXE
* Registry
* Resource Protection
* Security Account Manager
* Server Message Block
* Shadow Copy
* SMSS
* System Idle Process
* USER
* WHEA
* Winlogon
* WinUSB

Security|

* Security and Maintenance
* AppLocker
* BitLocker
* Credential Guard
* Data Execution Prevention
* Defender
* Family features
* Kernel Patch Protection
* Mandatory Integrity Control
* Protected Media Path
* User Account Control
* User Interface Privilege Isolation
* Windows Firewall

Compatibility|

* COMMAND.COM
* Windows Subsystem for Linux
* WoW64

API|

* Active Scripting
* JScript
* VBScript
* WSH
* COM
* ActiveX
* ActiveX Document
* COM Structured storage
* DCOM
* OLE
* OLE Automation
* Transaction Server
* DirectX
* Native
* .NET
* Universal Windows Platform
* WinAPI
* Windows Mixed Reality
* Windows Runtime
* WinUSB

Games|

* Solitaire Collection
* Surf

Discontinued|

| Games|

* 3D Pinball
* Chess Titans
* FreeCell
* Hearts
* Hold 'Em
* InkBall
* Purble Place
* Solitaire
* Spider Solitaire
* Tinker

|

Apps|

* ActiveMovie
* Address Book
* Anytime Upgrade
* Backup and Restore
* Cardfile
* CardSpace
* CD Player
* Chat
* Contacts
* Cortana
* Desktop Gadgets
* Diagnostics
* DriveSpace
* DVD Maker
* Easy Transfer
* Edge Legacy
* Fax
* Food & Drink
* Groove Music
* Health & Fitness
* Help and Support Center
* HyperTerminal
* Imaging
* Internet Explorer
* Journal
* Make Compatible
* Maps
* Media Center
* Meeting Space
* Messaging
* Messenger
* Mobile Device Center
* Movie Maker
* MSN Dial-Up
* NetMeeting
* NTBackup
* Outlook Express
* Paint 3D
* Pay
* Phone Companion
* Photo Gallery
* Photo Viewer
* Program Manager
* Skype
* Sports
* Start
* Steps Recorder
* Syskey
* Travel
* WinHelp
* WordPad
* Write

Others|

* Desktop Cleanup Wizard
* File Protection
* Games for Windows
* HPFS
* Interix
* Media Control Interface
* MS-DOS 7
* Next-Generation Secure Computing Base
* POSIX subsystem
* ScanDisk
* Video for Windows
* Virtual DOS machine
* Windows on Windows
* Windows Services for UNIX
* Windows SideShow
* Windows System Assessment Tool
* Windows To Go
* WinFS

Spun off to
Microsoft Store|

* DVD Player
* File Manager
* Hover!
* Mahjong
* Minesweeper

* Category
* List

* v
* t
* e

Hardware acceleration

Theory|

* Universal Turing machine
* Parallel computing
* Distributed computing

Applications|

* GPU
* GPGPU software
* DirectX
* Audio
* Digital signal processing
* Hardware random number generation
* Neural processing unit
* Cryptography
* TLS
* Machine vision
* Custom hardware attack
* scrypt
* Networking
* Data

Implementations|

* High-level synthesis
* C to HDL
* FPGA
* ASIC
* CPLD
* System on a chip
* Network on a chip

Architectures|

* Dataflow
* Transport triggered
* Multicore
* Manycore
* Heterogeneous
* In-memory computing
* Systolic array
* Neuromorphic

Related|

* Programmable logic
* Processor
* design
* chronology
* Digital electronics
* Virtualization
* Hardware emulation
* Logic synthesis
* Embedded systems

*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template