[vlc-commits] copy: use an 8KB cache line instead of 4KB
Steve Lhomme
git at videolan.org
Fri May 19 09:40:01 CEST 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed May 10 11:13:49 2017 +0200| [8336ab9d0eddb84a1f0c6f34e9da490bb0de22b6] | committer: Thomas Guillem
copy: use an 8KB cache line instead of 4KB
Without this it's impossible to do some processing like splitting NV12 UV
planes, it requires double the resolution. In that case the code asserts on
assert(hstep > 0) in SSE_SplitPlanes().
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8336ab9d0eddb84a1f0c6f34e9da490bb0de22b6
---
modules/video_chroma/copy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c
index a4893c3cfb..61e31494d1 100644
--- a/modules/video_chroma/copy.c
+++ b/modules/video_chroma/copy.c
@@ -35,7 +35,7 @@
int CopyInitCache(copy_cache_t *cache, unsigned width)
{
#ifdef CAN_COMPILE_SSE2
- cache->size = __MAX((width + 0x3f) & ~ 0x3f, 4096);
+ cache->size = __MAX((width + 0x3f) & ~ 0x3f, 8192);
cache->buffer = vlc_memalign(64, cache->size);
if (!cache->buffer)
return VLC_EGENERIC;
More information about the vlc-commits
mailing list