summaryrefslogtreecommitdiffstats
path: root/video/decode/hw_dxva2.c
Commit message (Collapse)AuthorAgeFilesLines
* d3d: fix behavior with deprecated FFmpeg J pixel formatswm42017-07-041-0/+2
| | | | | | | | They have been deprecated for a decade, yet you're forced to explicitly deal with them at every step, or they will break your shit. FFmpeg insists on keeping them, because libavfilter is too stupid to deal with color ranges properly. Ridiculous.
* d3d: add support for new libavcodec hwaccel APIwm42017-06-081-0/+170
| | | | | | Unfortunately quite a mess, in particular due to the need to have some compatibility with the old API. (The old API will be supported only in short term.)
* d3d: fix build with Libavwm42017-05-041-0/+1
| | | | Apparently it has been broken since forever?
* decode: fix extra surface countwm42017-02-271-1/+1
| | | | | | | | | | | | FFmpeg could crash with vaapi (new) and --vo=opengl + interpolation. It seems the actual surface count the old vaapi code uses (and which usually never exceeded the preallocated amount) was higher than what was used for the new vaapi code, so just correct that. The d3d helpers also had weird code that bumped the real pool size, fix them as well. Why this would result in an assertion failure instead of a proper error, who knows.
* hw_dxva2: create a IDirect3D9Ex devicewm42017-02-021-18/+27
| | | | | | | | | | | This should allow us to create the device in situations when Direct3DCreate9 normally fails, for example if no user is logged in. While the later use-case is not very interesting, I hope it to work in some other situations as well, for example while certain drivers are in exclusive full screen mode. This is available since Windows 7, so I'm removing the old call completely.
* build: prefix hwaccel decoder wrapper filenames with hw_wm42017-01-171-0/+542
Should have done this a long time ago. d3d.c remains as it is, because it's just a bunch of helper functions.