aboutsummaryrefslogtreecommitdiffhomepage
path: root/osdep
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-01-13 10:28:58 +0100
committerGravatar wm4 <wm4@nowhere>2017-01-13 10:28:58 +0100
commit88dfb9a5e71d55fd09d8dd92fd4bf54928b5d7cd (patch)
treef7b5e0be8e675eb0275ad3f33ce7811a6368d904 /osdep
parent6de00d10c88486fc013ebca40b5ff103285d527d (diff)
vo_opengl: hwdec_vaegl: remove redundant vaapi surface format check
For surfaces allocated by libavutil, we assume that the sw_format (i.e. in hw_subfmt in mp_image_params) is always correct. The API guarantees that it explicitly sets the equivalent vaapi format on surface allocation. For surfaces allocated by mpv's old vaapi code, we explicitly retrieve the format right after decoding. Unless the driver magically changes the format asynchronously, it will still be correct once the surface reaches the renderer. In both cases, checking the format again is obviously redundant. In addition, it doesn't require us to maintain a libva fourcc <-> mpfmt table and the va_fourcc_to_imgfmt() function. This also unbreaks 10 bit rendering support (still disabled by default).
Diffstat (limited to 'osdep')
0 files changed, 0 insertions, 0 deletions