[vlc-commits] direct3d9: remove the hardware decoder picture pool
Steve Lhomme
git at videolan.org
Tue Dec 10 16:24:52 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Nov 18 10:23:33 2019 +0100| [68a60aad6783b65436090688219dabf648edebca] | committer: Steve Lhomme
direct3d9: remove the hardware decoder picture pool
Noone is using it anymore, we can handle D3D9 pictures allocates externally.
The display pool will be allocated with dummy pictures and will not be used.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=68a60aad6783b65436090688219dabf648edebca
---
modules/video_output/win32/direct3d9.c | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 4940b93e28..5bb03d34c5 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -160,7 +160,6 @@ struct vout_display_sys_t
const d3d9_format_t *sw_texture_fmt; /* Rendering texture(s) format */
IDirect3DSurface9 *dx_render;
- picture_pool_t *pool; /* hardware decoding pool */
/* */
bool reset_device;
@@ -280,16 +279,6 @@ error:
return pool;
}
-static picture_pool_t *DisplayPool(vout_display_t *vd, unsigned count)
-{
- if ( vd->sys->pool == NULL )
- {
- vd->sys->pool = Direct3D9CreatePicturePool(VLC_OBJECT(vd), &vd->sys->d3d9_device->d3ddev,
- &vd->fmt, count);
- }
- return vd->sys->pool;
-}
-
/**
* Compute the vertex ordering needed to rotate the video. Without
* rotation, the vertices of the rectangle are defined in a clockwise
@@ -549,11 +538,6 @@ static void Direct3D9DestroyResources(vout_display_t *vd)
IDirect3DSurface9_Release(vd->sys->dx_render);
vd->sys->dx_render = NULL;
}
- if (vd->sys->pool)
- {
- picture_pool_Release(vd->sys->pool);
- vd->sys->pool = NULL;
- }
Direct3D9DestroyShaders(vd);
}
@@ -1727,8 +1711,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
video_format_Clean(fmtp);
video_format_Copy(fmtp, &fmt);
- if ( is_d3d9_opaque(vd->fmt.i_chroma) )
- vd->pool = DisplayPool;
vd->prepare = Prepare;
vd->display = Display;
vd->control = Control;
More information about the vlc-commits
mailing list