mirror of https://github.com/mpv-player/mpv
9ca1592f3f
No method of taking a screenshot was implemented at all. vo_opengl lacked window screenshotting, because ANGLE doesn't allow reading the frontbuffer. There was no way to read back from a D3D11 texture either. Implement reading image data from D3D11 textures. This is a low-quality effort to get basic screenshots done. Eventually there will be a better implementation: once we use AVHWFramesContext natively, the readback implementation will be in libavcodec, and will be able to cache the staging texture correctly. Hopefully. (For now it doesn't even have a AVHWFramesContext for D3D11 yet. But the abstraction is more appropriate for this purpose.) |
||
---|---|---|
.. | ||
d3d.c | ||
d3d.h | ||
d3d11va.c | ||
dec_video.c | ||
dec_video.h | ||
dxva2.c | ||
lavc.h | ||
vaapi.c | ||
vd.h | ||
vd_lavc.c | ||
vdpau.c | ||
videotoolbox.c |