summaryrefslogtreecommitdiffstats
path: root/video/mp_image.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-09-26 18:12:19 +0200
committerwm4 <wm4@nowhere>2017-09-26 18:58:45 +0200
commitae7db6503b6fc6fce78d20e8afc77a5a7a0f0b29 (patch)
treee00e782c9accc3745fec34ecd0d41106e0fa16fe /video/mp_image.c
parent5d57e9b1be2d0a60247a3d170b93a81d2c775012 (diff)
downloadmpv-ae7db6503b6fc6fce78d20e8afc77a5a7a0f0b29.tar.bz2
mpv-ae7db6503b6fc6fce78d20e8afc77a5a7a0f0b29.tar.xz
video: drop old D3D11/DXVA2 support
Now you need FFmpeg git, or something. This also gets rid of the last real use of gpu_memcpy(). libavutil does that itself. (vaapi.c still used it, but it was essentially unused, because the code path isn't really in use anymore. It wasn't even included due to the d3d-hwaccel dependency in wscript.)
Diffstat (limited to 'video/mp_image.c')
-rw-r--r--video/mp_image.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index 100149535a..1281c5c1dd 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -33,7 +33,6 @@
#include "mp_image.h"
#include "sws_utils.h"
#include "fmt-conversion.h"
-#include "gpu_memcpy.h"
#include "video/filter/vf.h"
@@ -478,37 +477,6 @@ void mp_image_copy(struct mp_image *dst, struct mp_image *src)
mp_image_copy_cb(dst, src, memcpy);
}
-void mp_image_copy_gpu(struct mp_image *dst, struct mp_image *src)
-{
-#if HAVE_SSE4_INTRINSICS
- if (av_get_cpu_flags() & AV_CPU_FLAG_SSE4) {
- mp_image_copy_cb(dst, src, gpu_memcpy);
- return;
- }
-#endif
- mp_image_copy(dst, src);
-}
-
-// Helper, only for outputting some log info.
-void mp_check_gpu_memcpy(struct mp_log *log, bool *once)
-{
- if (once) {
- if (*once)
- return;
- *once = true;
- }
-
- bool have_sse = false;
-#if HAVE_SSE4_INTRINSICS
- have_sse = av_get_cpu_flags() & AV_CPU_FLAG_SSE4;
-#endif
- if (have_sse) {
- mp_verbose(log, "Using SSE4 memcpy\n");
- } else {
- mp_warn(log, "Using fallback memcpy (slow)\n");
- }
-}
-
static enum mp_csp mp_image_params_get_forced_csp(struct mp_image_params *params)
{
int imgfmt = params->hw_subfmt ? params->hw_subfmt : params->imgfmt;