mirror of https://github.com/mpv-player/mpv
This requires a silly extension to ra_fns.tex_upload: since the OSD texture can be much larger than the actual OSD image data to upload, a mechanism for uploading only to a small part of the texture is needed. Otherwise, we'd have to realloc/copy the data, just to pad it, and then pay for uploading the padding too. The RA_TEX_UPLOAD_DISCARD flag is not interpreted by GL (not sure how you'd tell GL about this), but it clarifies the API and might be helpful if we support other backend APIs in the future. |
||
---|---|---|
.. | ||
angle_dynamic.c | ||
angle_dynamic.h | ||
common.c | ||
common.h | ||
context.c | ||
context.h | ||
context_angle.c | ||
context_cocoa.c | ||
context_drm_egl.c | ||
context_dxinterop.c | ||
context_mali_fbdev.c | ||
context_rpi.c | ||
context_vdpau.c | ||
context_w32.c | ||
context_wayland.c | ||
context_x11.c | ||
context_x11egl.c | ||
cuda_dynamic.c | ||
cuda_dynamic.h | ||
egl_helpers.c | ||
egl_helpers.h | ||
formats.c | ||
formats.h | ||
gl_headers.h | ||
gl_utils.c | ||
gl_utils.h | ||
hwdec.c | ||
hwdec.h | ||
hwdec_cuda.c | ||
hwdec_d3d11egl.c | ||
hwdec_d3d11eglrgb.c | ||
hwdec_dxva2egl.c | ||
hwdec_dxva2gldx.c | ||
hwdec_ios.m | ||
hwdec_osx.c | ||
hwdec_rpi.c | ||
hwdec_vaegl.c | ||
hwdec_vaglx.c | ||
hwdec_vdpau.c | ||
lcms.c | ||
lcms.h | ||
osd.c | ||
osd.h | ||
ra.c | ||
ra.h | ||
ra_gl.c | ||
ra_gl.h | ||
shader_cache.c | ||
shader_cache.h | ||
user_shaders.c | ||
user_shaders.h | ||
utils.c | ||
utils.h | ||
video.c | ||
video.h | ||
video_shaders.c | ||
video_shaders.h |