Re: [FFmpeg-devel] Reduce static table size for VLC tables in h264_cavlc.c

2018-09-17 Thread Dale Curtis
On Sat, Sep 8, 2018 at 5:49 PM Michael Niedermayer wrote: > dont all modern OS assign physical memory only once something is stored > in these tables? > This seems to be correct. I was misreading the tooling which indicated these were taking up size. So this patch can be abandoned. Sorry for the

Re: [FFmpeg-devel] Reduce static table size for VLC tables in h264_cavlc.c

2018-09-08 Thread Michael Niedermayer
On Fri, Sep 07, 2018 at 04:50:57PM -0700, Dale Curtis wrote: > These tables represent ~70k so moving the allocation to when > they're actually used reduces memory usage in cases where the > h264 decoder isn't used. > h264_cavlc.c | 43 ++- > 1 file change

Re: [FFmpeg-devel] Reduce static table size for VLC tables in h264_cavlc.c

2018-09-08 Thread James Almer
On 9/7/2018 8:50 PM, Dale Curtis wrote: > These tables represent ~70k so moving the allocation to when > they're actually used reduces memory usage in cases where the > h264 decoder isn't used. > > > cavlc-size.patch > > > From e1cbe52a1f41a39698136efb4695d8d019117853 Mon Sep 17 00:00:00 2001 >

Re: [FFmpeg-devel] Reduce static table size for VLC tables in h264_cavlc.c

2018-09-07 Thread Carl Eugen Hoyos
2018-09-08 1:50 GMT+02:00, Dale Curtis : > These tables represent ~70k so moving the allocation to when > they're actually used reduces memory usage in cases where the > h264 decoder isn't used. Is there a performance penalty? Carl Eugen ___ ffmpeg-deve

[FFmpeg-devel] Reduce static table size for VLC tables in h264_cavlc.c

2018-09-07 Thread Dale Curtis
These tables represent ~70k so moving the allocation to when they're actually used reduces memory usage in cases where the h264 decoder isn't used. From e1cbe52a1f41a39698136efb4695d8d019117853 Mon Sep 17 00:00:00 2001 From: Dale Curtis Date: Fri, 31 Aug 2018 16:50:23 -0700 Subject: [PATCH] Reduce