mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 18:12:22 +00:00
85488f6892
The hw_subfmt field roughly corresponds to the field AVHWFramesContext.sw_format in ffmpeg. The ffmpeg one is of the type AVPixelFormat (instead of the underlying hardware format), so it's a good idea to switch to this too for preparation. Now the hw_subfmt field is an mp_imgfmt instead of an opaque/API- specific number. VDPAU and Direct3D11 already used mp_imgfmt, but Videotoolbox and VAAPI had to be switched. One somewhat user-visible change is that the verbose log will now always show the hw_subfmt as image format, instead of as nonsensical number. (In the end it would be good if we could switch to AVHWFramesContext completely, but the upstream API is incomplete and doesn't cover Direct3D11 and Videotoolbox.) |
||
---|---|---|
.. | ||
d3d11va.c | ||
d3d.c | ||
d3d.h | ||
dec_video.c | ||
dec_video.h | ||
dxva2.c | ||
lavc.h | ||
vaapi.c | ||
vd_lavc.c | ||
vd.h | ||
vdpau.c | ||
videotoolbox.c |