Opened 11 years ago

Closed 11 years ago

#6618 closed patch (fixed)

Reinit direct3d video when device is lost (win32)

Reported by: Jeff Lu <jll544@…> Owned by: Nigel
Priority: minor Milestone: unknown
Component: Ports - Windows Version: head
Severity: medium Keywords: win32 direct3d
Cc: Ticket locked: no

Description

If the Direct3D video device is preempted (by a Vista UAC prompt for example), currently the video window goes blank, and the console fills with a TODO message indicating the device could be reset. This simple patch restores video output by reinitializing D3D when needed.

A few other minor changes are included: Fix a typo in the init code, add a check to PrepareFrame?() in case the reinit fails, and reduce console flooding when the device is lost.

Attachments (3)

6618-vout_d3d_reinit.patch (2.0 KB) - added by Jeff Lu <jll544@…> 11 years ago.
6618-w32_onefield.patch (499 bytes) - added by Jeff Lu <jll544@…> 11 years ago.
Simple patch to enable onefield deint on win32
6618-vout_d3d_reinit_yv12.patch (5.8 KB) - added by Jeff Lu <jll544@…> 11 years ago.
Replaces original patch; off-loads YV12 color conversion to GPU when possible

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by Jeff Lu <jll544@…>

Attachment: 6618-vout_d3d_reinit.patch added

Changed 11 years ago by Jeff Lu <jll544@…>

Attachment: 6618-w32_onefield.patch added

Simple patch to enable onefield deint on win32

Changed 11 years ago by Jeff Lu <jll544@…>

Replaces original patch; off-loads YV12 color conversion to GPU when possible

comment:1 Changed 11 years ago by Jeff Lu <jll544@…>

New patch attached, replacing the original one (combining a couple D3D-related changes rather than opening more tickets). New patch adds some code to perform GPU-based color conversion when possible, substantially reducing CPU load while using Direct3D video output.

comment:2 Changed 11 years ago by markk

(In [20994]) Add onefield to the list of 'safe' software deinterlacers and cleanup the xv-blit/xvmc-blit options. Refs #6618.

comment:3 Changed 11 years ago by markk

Resolution: fixed
Status: newclosed

(In [20997]) VideoOutputD3D improvements. The major funtionality changes (from Jeff Lu) are the use of hardware colorspace conversion (when available) and re-initialisation of the d3d device when it is lost. Otherwise sundry formatting changes. Closes #6618.

Note: See TracTickets for help on using tickets.