mirror of https://github.com/mpv-player/mpv
d3894290ec
This must have been some non-sense in the original vaapi mplayer patch. While I still have no good idea what this "direct mapping" business is about, it appears to be pretty much pointless. Nothing can hold additional "real" surface references (due to how the API and mpv/lavc refcounting work), so removing the additional surfaces won't break anything. It still could be that this was for achieving additional buffering (not reusing surfaces as soon), but we buffer some additional data anyway. Plus, the original intention of the vaapi mplayer code was probably increasing surface count just by 1 or 2, not actually doubling it, and/or it was a "trick" to get to the maximum count of 21 when h264 is in use. gstreamer-vaapi uses "ref_frames + SCRATCH_SURFACES_COUNT" here, with SCRATCH_SURFACES_COUNT defined to 4. It doesn't appear to check the overlay attributes at all in the decoder. In any case, remove this non-sense. |
||
---|---|---|
.. | ||
dec_video.c | ||
dec_video.h | ||
dxva2.c | ||
gpu_memcpy_sse4.h | ||
lavc.h | ||
rpi.c | ||
vaapi.c | ||
vd.h | ||
vd_lavc.c | ||
vda.c | ||
vdpau.c | ||
vdpau_old.c |