[libav-devel] [GASPP PATCH] Support the comma-less syntax for aligned vector loads when converting for armasm

2015-01-29 Thread Martin Storsjo
--- gas-preprocessor.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 202ce78..44d1117 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -893,7 +893,7 @@ sub handle_serialized_line { $line =~ s/\.align\s

Re: [libav-devel] [PATCH 4/5] g722: Split out computation of band->s_zero and unroll code

2015-01-29 Thread Martin Storsjö
On Fri, 30 Jan 2015, Peter Meerwald wrote: Signed-off-by: Peter Meerwald --- libavcodec/g722.c | 49 +++-- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/libavcodec/g722.c b/libavcodec/g722.c index 74c0868..2f79adf 100644 --- a/libavco

Re: [libav-devel] [PATCH 1/5] g722: Split out g722_qmf_apply() function into g722dsp.c

2015-01-29 Thread Martin Storsjö
On Fri, 30 Jan 2015, Peter Meerwald wrote: Signed-off-by: Peter Meerwald --- libavcodec/Makefile | 4 ++-- libavcodec/g722.c| 22 -- libavcodec/g722.h| 5 +++-- libavcodec/g722dec.c | 4 +++- libavcodec/g722dsp.c | 27 +++ libavcodec/g722dsp.h

Re: [libav-devel] [PATCH 2/5] g722: Reduce number of pointers passed to g722_apply_qmf() function

2015-01-29 Thread Timothy Gu
On Thu Jan 29 2015 at 4:21:59 PM Peter Meerwald wrote: > Signed-off-by: Peter Meerwald > --- > libavcodec/g722dec.c | 9 - > libavcodec/g722dsp.c | 10 +- > libavcodec/g722dsp.h | 2 +- > libavcodec/g722enc.c | 8 > 4 files changed, 14 insertions(+), 15 deletions(-)

Re: [libav-devel] [PATCH 1/5] g722: Split out g722_qmf_apply() function into g722dsp.c

2015-01-29 Thread Timothy Gu
Hi, On Thu Jan 29 2015 at 4:22:00 PM Peter Meerwald wrote: > > diff --git a/libavcodec/g722.h b/libavcodec/g722.h > index 71d03fc..4830170 100644 > --- a/libavcodec/g722.h > +++ b/libavcodec/g722.h > @@ -27,6 +27,7 @@ > > #include > #include "avcodec.h" > +#include "g722dsp.h" > > #define PRE

Re: [libav-devel] [PATCH 0/5] g722 DSP

2015-01-29 Thread Luca Barbato
On 30/01/15 01:21, Peter Meerwald wrote: > this patch series splits out the g722_apply_qmf() function so it can > be optimized > > it turns out that the efficiency of the C code can be improved quite a bit > as well by unrolling :) > > benchmarking a G722 encode/decode in a loop compiled with gcc

[libav-devel] [PATCH 1/5] g722: Split out g722_qmf_apply() function into g722dsp.c

2015-01-29 Thread Peter Meerwald
Signed-off-by: Peter Meerwald --- libavcodec/Makefile | 4 ++-- libavcodec/g722.c| 22 -- libavcodec/g722.h| 5 +++-- libavcodec/g722dec.c | 4 +++- libavcodec/g722dsp.c | 27 +++ libavcodec/g722dsp.h | 30 ++ lib

[libav-devel] [PATCH 2/5] g722: Reduce number of pointers passed to g722_apply_qmf() function

2015-01-29 Thread Peter Meerwald
Signed-off-by: Peter Meerwald --- libavcodec/g722dec.c | 9 - libavcodec/g722dsp.c | 10 +- libavcodec/g722dsp.h | 2 +- libavcodec/g722enc.c | 8 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/libavcodec/g722dec.c b/libavcodec/g722dec.c index 6e14b68

[libav-devel] [PATCH 0/5] g722 DSP

2015-01-29 Thread Peter Meerwald
this patch series splits out the g722_apply_qmf() function so it can be optimized it turns out that the efficiency of the C code can be improved quite a bit as well by unrolling :) benchmarking a G722 encode/decode in a loop compiled with gcc 4.8.2 x86-64, Intel i5-2400: 340 ms baseline 300 ms a

[libav-devel] [PATCH 4/5] g722: Split out computation of band->s_zero and unroll code

2015-01-29 Thread Peter Meerwald
Signed-off-by: Peter Meerwald --- libavcodec/g722.c | 49 +++-- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/libavcodec/g722.c b/libavcodec/g722.c index 74c0868..2f79adf 100644 --- a/libavcodec/g722.c +++ b/libavcodec/g722.c @@ -71,6

[libav-devel] [PATCH 3/5] g722: Unroll g722_apply_qmf()

2015-01-29 Thread Peter Meerwald
Signed-off-by: Peter Meerwald --- libavcodec/g722dsp.c | 51 +-- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/libavcodec/g722dsp.c b/libavcodec/g722dsp.c index 7a1a4ae..7d8b23c 100644 --- a/libavcodec/g722dsp.c +++ b/libavcodec/g7

[libav-devel] [PATCH 5/5] g722: Add ARM NEON implementation for g722_apply_qmf()

2015-01-29 Thread Peter Meerwald
Signed-off-by: Peter Meerwald --- libavcodec/arm/Makefile | 4 +++ libavcodec/arm/asm-offsets.h | 5 +++ libavcodec/arm/g722dsp_init_arm.c | 34 libavcodec/arm/g722dsp_neon.S | 67 +++ libavcodec/g722dsp.c

Re: [libav-devel] [PATCH 59/64] h264: drop the now unused per-slice H264Contexts

2015-01-29 Thread Luca Barbato
On 29/01/15 16:48, Anton Khirnov wrote: --- libavcodec/h264.c| 11 --- libavcodec/h264.h| 2 -- libavcodec/h264_parser.c | 1 - libavcodec/h264_slice.c | 76 +++- 4 files changed, 11 insertions(+), 79 deletions(-) Ok. __

Re: [libav-devel] [PATCH 60/64] h264: drop some mpegvideo remnants from draw_horiz_band()

2015-01-29 Thread Luca Barbato
On 29/01/15 16:48, Anton Khirnov wrote: This code makes no sense for h.264. --- libavcodec/h264.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index aabaf5d..cc0819b 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c

Re: [libav-devel] [PATCH 61/64] h264_mb: remove an unused function parameter

2015-01-29 Thread Luca Barbato
On 29/01/15 16:48, Anton Khirnov wrote: --- libavcodec/h264_mb.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/h264_mb.c b/libavcodec/h264_mb.c index 2eaf55a..832ba90 100644 --- a/libavcodec/h264_mb.c +++ b/libavcodec/h264_mb.c @@ -37,8 +37,7 @@ #inclu

Re: [libav-devel] [RFC/PATCH] h264dec refactoring

2015-01-29 Thread Vittorio Giovara
On Thu, Jan 29, 2015 at 3:47 PM, Anton Khirnov wrote: > Hi, > here is the initial version of a set that's supposed to deal with some h264 > ugliness. Specifically the fact that both the long-term (frame and higher) and > short-term (per-slice and lower) state is all dumped into one huge context. >

Re: [libav-devel] [PATCH 4/5] flacenc: initialize sums matrix

2015-01-29 Thread Vittorio Giovara
On Thu, Jan 29, 2015 at 4:02 PM, Luca Barbato wrote: > On 29/01/15 16:28, Vittorio Giovara wrote: >> >> On Wed, Jan 28, 2015 at 7:33 PM, Luca Barbato wrote: >>> >>> On 28/01/15 15:41, Vittorio Giovara wrote: CC: libav-sta...@libav.org Bug-Id: CID 703821 --- libavc

Re: [libav-devel] [PATCH 01/64] h264: remove a now redundant error check

2015-01-29 Thread Luca Barbato
On 29/01/15 16:47, Anton Khirnov wrote: It was only relevant when data partitioning was in use. --- libavcodec/h264_slice.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 4eb2767..47276dd 100644 --- a/libavcodec/h264_slice.c +++

Re: [libav-devel] [PATCH] hqdn3d: check memory allocations and propagate errors

2015-01-29 Thread Luca Barbato
On 29/01/15 16:55, Vittorio Giovara wrote: --- libavfilter/vf_hqdn3d.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) Looks fine to me, hopefully still works =) lu ___ libav-devel mailing list

Re: [libav-devel] [PATCH 4/5] flacenc: initialize sums matrix

2015-01-29 Thread Luca Barbato
On 29/01/15 16:28, Vittorio Giovara wrote: On Wed, Jan 28, 2015 at 7:33 PM, Luca Barbato wrote: On 28/01/15 15:41, Vittorio Giovara wrote: CC: libav-sta...@libav.org Bug-Id: CID 703821 --- libavcodec/flacenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec

[libav-devel] [PATCH] hqdn3d: check memory allocations and propagate errors

2015-01-29 Thread Vittorio Giovara
--- libavfilter/vf_hqdn3d.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c index be6b761..7f47a56 100644 --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -121,11 +121,1

[libav-devel] [PATCH 35/64] h264: move mb_xy into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c | 4 ++-- libavcodec/h264.h | 14 +++--- libavcodec/h264_cabac.c | 10 +- libavcodec/h264_cavlc.c | 2 +- libavcodec/h264_direct.c | 4 ++-- libavcodec/h264_loopfilter.c | 2 +- libavcodec/h264_mb.c | 6 +

[libav-devel] [PATCH 59/64] h264: drop the now unused per-slice H264Contexts

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c| 11 --- libavcodec/h264.h| 2 -- libavcodec/h264_parser.c | 1 - libavcodec/h264_slice.c | 76 +++- 4 files changed, 11 insertions(+), 79 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index

[libav-devel] [PATCH 39/64] h264: do not abuse the context as a temporary storage in get_last_needed_nal()

2015-01-29 Thread Anton Khirnov
Use a local variable instead. --- libavcodec/h264.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index eb31a5b..6ee8f37 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1349,6 +1349,7 @@ static int get_last_needed_nal(H264

[libav-devel] [PATCH 42/64] h264.h: constify all uses of H264Context

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index e61c679..0631af4 100644 --- a/libavcodec

[libav-devel] [PATCH 64/64] h264: move [uv]linesize to the per-slice context

2015-01-29 Thread Anton Khirnov
While it is a per-frame variable, it is only really used in the low-level decoding code, so it is more efficient to store it in the slice context. --- libavcodec/h264.h | 2 +- libavcodec/h264_mb.c | 8 libavcodec/h264_mb_template.c | 36 ++--

[libav-devel] [PATCH 63/64] h264_cabac: remove now unnecessary H264Context function parameters

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264_cabac.c | 66 - 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index e7f810c..ecd0034 100644 --- a/libavcodec/h264_cabac.c +++ b/libavcodec/h264_cabac.c @@ -1294,7

[libav-devel] [PATCH 40/64] h264: use a separate GetBitContext for slice data

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c| 26 +-- libavcodec/h264.h| 1 + libavcodec/h264_cavlc.c | 66 libavcodec/h264_parser.c | 40 +++-- libavcodec/h264_refs.c | 8 +++--- libavcodec/h264_slice.c | 58 +

[libav-devel] [PATCH 44/64] h264_mb: constify block_offset

2015-01-29 Thread Anton Khirnov
It is read-only in this code. --- libavcodec/h264_mb.c | 4 ++-- libavcodec/h264_mb_template.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/h264_mb.c b/libavcodec/h264_mb.c index a9ea97c..cfe975e 100644 --- a/libavcodec/h264_mb.c +++ b/libavcodec/h26

[libav-devel] [PATCH 50/64] h264_cavlc: constify all uses of H264Context

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264.h | 2 +- libavcodec/h264_cavlc.c | 13 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index

[libav-devel] [PATCH 33/64] h264: move mb_skip_run into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 3 ++- libavcodec/h264_cavlc.c | 8 libavcodec/h264_slice.c | 4 ++-- libavcodec/svq3.c | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 9902f9b..ad91f69 100644 --- a/libavcodec/h264.h

[libav-devel] [PATCH 61/64] h264_mb: remove an unused function parameter

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264_mb.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/h264_mb.c b/libavcodec/h264_mb.c index 2eaf55a..832ba90 100644 --- a/libavcodec/h264_mb.c +++ b/libavcodec/h264_mb.c @@ -37,8 +37,7 @@ #include "thread.h" static inline int get_lowest

[libav-devel] [PATCH 46/64] h264: move mb_field_decoding_flag into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 3 ++- libavcodec/h264_cabac.c | 20 ++-- libavcodec/h264_cavlc.c | 6 +++--- libavcodec/h264_loopfilter.c | 8 libavcodec/h264_mb.c | 12 ++-- libavcodec/h264_mb_template.c | 4 ++-- libavcodec/h264_mvp

[libav-devel] [PATCH 58/64] h264: use the main H264Context as the parent for all slice contexts

2015-01-29 Thread Anton Khirnov
There is now no need to have per-slice copies of the H264Context. --- libavcodec/h264.c | 42 +++ libavcodec/h264.h | 2 +- libavcodec/h264_slice.c | 138 ++-- 3 files changed, 70 insertions(+), 112 deletions(-) diff --git a/l

[libav-devel] [PATCH 41/64] h264_direct: constify all uses of H264Context

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264.h| 6 +++--- libavcodec/h264_direct.c | 20 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec

[libav-devel] [PATCH 52/64] h264: move the scratch buffers into the per-slice context

2015-01-29 Thread Anton Khirnov
Also change the method for allocating them. Instead of two possible alloc calls from different places, just ensure they are allocated at the start of each slice. This should be simpler and less bug-prone than the previous method. --- libavcodec/h264.c | 12 ++-- libavcodec/h264.h

[libav-devel] [PATCH 45/64] h264_mb: constify all uses of H264Context

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264.h | 2 +- libavcodec/h264_mb.c | 36 ++-- libavcodec/h264_mb_template.c | 4 ++-- libavcodec/h264_mc_template.c |

[libav-devel] [PATCH 51/64] h264_loopfilter: constify all uses of H264Context

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264.h| 4 ++-- libavcodec/h264_loopfilter.c | 30 +++--- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/libavcodec/h26

[libav-devel] [PATCH 47/64] h264: move mb_mbaff into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 2 +- libavcodec/h264_cabac.c | 12 ++-- libavcodec/h264_cavlc.c | 12 ++-- libavcodec/h264_mb.c| 6 +++--- libavcodec/h264_slice.c | 16 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/libavcodec/h264.h b/libavc

[libav-devel] [PATCH 36/64] h264: move mb_{x, y} into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 2 +- libavcodec/h264.c | 16 +++--- libavcodec/h264.h | 5 +- libavcodec/h264_cabac.c | 18 +++--- libavcodec/h264_cavlc.c | 24 libavcodec/h264_direct.c | 38 ++-- libavcodec/h264_mb.c

[libav-devel] [PATCH 19/64] h264: move dist_scale_factor[_field] into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h| 7 --- libavcodec/h264_direct.c | 11 ++- libavcodec/h264_slice.c | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 734ea24..f36492d 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.

[libav-devel] [PATCH 49/64] h264_cabac: constify all uses of H264Context

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264.h | 4 ++-- libavcodec/h264_cabac.c | 44 ++-- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/libavcodec

[libav-devel] [PATCH 43/64] h264_mvpred: constify all uses of H264Context

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264_mvpred.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/h264_mvpred.h b/libavcodec/h264_mvpred.h index a361679..dd5f7f7

[libav-devel] [PATCH 60/64] h264: drop some mpegvideo remnants from draw_horiz_band()

2015-01-29 Thread Anton Khirnov
This code makes no sense for h.264. --- libavcodec/h264.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index aabaf5d..cc0819b 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -82,8 +82,7 @@ void ff_h264_draw_horiz_b

[libav-devel] [PATCH 54/64] error_resilience: do not require mbintra/skip tables

2015-01-29 Thread Anton Khirnov
h264dec does not use them at all and only allocates them for ER. --- libavcodec/error_resilience.c | 7 --- libavcodec/h264.c | 7 --- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 0120109..2c

[libav-devel] [PATCH 57/64] h264_slice: constify all the uses of H264Context during slice decoding

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264_slice.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 7b5c6a8..824fb41 100

[libav-devel] [PATCH 53/64] h264: move top_borders into the per-slice context

2015-01-29 Thread Anton Khirnov
Also change the method for allocating to the same one as used by edge_emu_buffer. --- libavcodec/h264.c | 11 --- libavcodec/h264.h | 3 ++- libavcodec/h264_mb.c| 10 +- libavcodec/h264_slice.c | 23 --- 4 files changed, 31 insertions(+), 16 del

[libav-devel] [PATCH 62/64] h264: use a smaller struct for the ref lists

2015-01-29 Thread Anton Khirnov
There is no need to store a whole H264Picture, with a full AVFrame embedded in it. This should allow getting rid of the embedded AVFrame later. --- libavcodec/h264.h | 15 +++-- libavcodec/h264_direct.c | 70 ++--- libavcodec/h264_mb.c | 42 +++

[libav-devel] [PATCH 56/64] h264: move rbsp_buffer into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c| 20 +++- libavcodec/h264.h| 8 +--- libavcodec/h264_parser.c | 2 +- libavcodec/h264_slice.c | 6 +++--- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 8626713..5deac15 1006

[libav-devel] [PATCH 37/64] h264: move resync_mb_{x, y} into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 4 ++-- libavcodec/h264_slice.c | 24 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index aedfbdf..1910ae0 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -358,6 +358,8 @@ typ

[libav-devel] [PATCH 48/64] h264.c: constify all uses of H264Context in slice and lower-level functions

2015-01-29 Thread Anton Khirnov
All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context --- libavcodec/h264.c | 10 +- libavcodec/h264.h | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index b35e833..6f7

[libav-devel] [PATCH 55/64] h264: move remaining ER stuff into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c | 35 +-- libavcodec/h264.h | 6 +++--- libavcodec/h264_picture.c | 8 libavcodec/h264_slice.c | 36 ++-- 4 files changed, 42 insertions(+), 43 deletions(-) diff --git a/libavcodec/h

[libav-devel] [PATCH 38/64] h264: remove some remnants of data partitioning

2015-01-29 Thread Anton Khirnov
h264: remove more data partitioning remnants --- libavcodec/h264.c | 15 --- libavcodec/h264.h | 10 ++ libavcodec/h264_cavlc.c | 6 +++--- libavcodec/h264_slice.c | 6 ++ 4 files changed, 11 insertions(+), 26 deletions(-) diff --git a/libavcodec/h264.c b/lib

[libav-devel] [PATCH 17/64] h264: move direct_spatial_mv_pred into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 2 +- libavcodec/h264.c| 2 +- libavcodec/h264.h| 3 ++- libavcodec/h264_direct.c | 4 ++-- libavcodec/h264_mvpred.h | 6 +++--- libavcodec/h264_slice.c | 4 ++-- libavcodec/vaapi_h264.c | 2 +- 7 files changed, 12 insertions(+), 11 deletions(-) di

[libav-devel] [PATCH 25/64] h264: move [{top, left}_]cbp into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 8 +--- libavcodec/h264_cabac.c | 18 +- libavcodec/h264_cavlc.c | 2 +- libavcodec/h264_loopfilter.c | 6 +++--- libavcodec/h264_mb.c | 2 +- libavcodec/h264_mb_template.c | 2 +- libavcodec/h264_mvpred.h | 8

[libav-devel] [PATCH 29/64] h264: move direct_cache into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h| 2 +- libavcodec/h264_cabac.c | 6 +++--- libavcodec/h264_mvpred.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 47027a0..a959f25 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -393,6 +3

[libav-devel] [PATCH 21/64] h264: move the ref lists variables into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 15 +++--- libavcodec/h264.c | 27 +-- libavcodec/h264.h | 26 ++- libavcodec/h264_cabac.c | 24 +- libavcodec/h264_cavlc.c | 24 +- libavcodec/h264_direct.c | 104

[libav-devel] [PATCH 31/64] h264: move cabac_init_idc into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 2 +- libavcodec/h264.h | 3 +-- libavcodec/h264_cabac.c | 2 +- libavcodec/h264_slice.c | 4 ++-- libavcodec/vaapi_h264.c | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c index 5e84275..f7b

[libav-devel] [PATCH 32/64] h264: move redundant_pic_count into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 2 +- libavcodec/h264.c | 2 +- libavcodec/h264.h | 4 ++-- libavcodec/h264_slice.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c index f7b1671..3de5f18 100644 --- a/libavcodec/dx

[libav-devel] [PATCH 11/64] h264: move non_zero_count_cache into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c | 3 +- libavcodec/h264.h | 17 libavcodec/h264_cabac.c | 90 --- libavcodec/h264_cavlc.c | 59 +++- libavcodec/h264_loopfilter.c | 22 +-- libavcodec/h264_m

[libav-devel] [PATCH 16/64] h264: move sub_mb_type into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 17 - libavcodec/h264_cabac.c | 30 +++--- libavcodec/h264_cavlc.c | 34 +- libavcodec/h264_direct.c | 18 +- libavcodec/h264_mb.c | 2 +- libavcod

[libav-devel] [PATCH 10/64] h264: move *_samples_available into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c| 17 + libavcodec/h264.h| 12 +++- libavcodec/h264_cabac.c | 4 ++-- libavcodec/h264_cavlc.c | 4 ++-- libavcodec/h264_mb.c | 6 +++--- libavcodec/h264_mvpred.h | 34 +- libavcodec/svq3.c

[libav-devel] [PATCH 22/64] h264: move intra_pcm_ptr into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 2 +- libavcodec/h264_cabac.c | 2 +- libavcodec/h264_cavlc.c | 2 +- libavcodec/h264_mb_template.c | 12 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 0ad3aa1..5ad7f89 1006

[libav-devel] [PATCH 24/64] h264: move cabac[_state] into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 12 ++-- libavcodec/h264_cabac.c | 188 +--- libavcodec/h264_slice.c | 10 +-- 3 files changed, 108 insertions(+), 102 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index a544219..d07710d 100644 --- a/li

[libav-devel] [PATCH 18/64] h264: move col_{parity, fieldoff} into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h| 4 ++-- libavcodec/h264_direct.c | 26 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index dacbc6e..734ea24 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -356,6 +356,8 @@

[libav-devel] [PATCH 26/64] h264: move last_qscale_diff into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 2 +- libavcodec/h264_cabac.c | 12 ++-- libavcodec/h264_slice.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 87387ba..a68012f 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -30

[libav-devel] [PATCH 28/64] h264: move mvd_cache into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h| 4 ++-- libavcodec/h264_cabac.c | 28 ++-- libavcodec/h264_mvpred.h | 6 +++--- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 4ac670c..47027a0 100644 --- a/libavcodec/h264.h +++

[libav-devel] [PATCH 30/64] h264: move loopfilter parameters into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 10 - libavcodec/h264.h | 10 - libavcodec/h264_loopfilter.c | 8 libavcodec/h264_mb.c | 2 +- libavcodec/h264_mb_template.c | 8 libavcodec/h264_slice.c | 48 +-

[libav-devel] [PATCH 06/64] h264: move {prev, next}_mb_skipped into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h| 6 +++--- libavcodec/h264_cabac.c | 10 +- libavcodec/h264_cavlc.c | 2 +- libavcodec/h264_mvpred.h | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index d3cb318..c647119 100644 --- a/libavco

[libav-devel] [PATCH 34/64] h264: move is_complex into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 3 +-- libavcodec/h264_mb.c| 2 +- libavcodec/h264_slice.c | 6 +++--- libavcodec/svq3.c | 3 ++- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index ad91f69..203d6a5 100644 --- a/libavcodec/h264.h +++ b

[libav-devel] [PATCH 13/64] h264: move neighbor_transform_size into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h| 10 +- libavcodec/h264_cabac.c | 4 ++-- libavcodec/h264_mvpred.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 079c942..d739beb 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@

[libav-devel] [PATCH 15/64] h264: move the slice type variables into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 9 +++--- libavcodec/h264.c| 16 +- libavcodec/h264.h| 19 +-- libavcodec/h264_cabac.c | 47 ++- libavcodec/h264_cavlc.c | 18 +-- libavcodec/h264_direct.c | 4 +-- libavcodec/h264_mb.c | 2 +-

[libav-devel] [PATCH 27/64] h264: move mvd_table into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c| 3 +++ libavcodec/h264.h| 4 +++- libavcodec/h264_mvpred.h | 2 +- libavcodec/h264_slice.c | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index c575489..d9ef8bb 100644 --- a/libavcodec/h264.c ++

[libav-devel] [PATCH 20/64] h264: move map_col_to_list0[_field] into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h| 5 ++--- libavcodec/h264_direct.c | 12 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index f36492d..7763e01 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -361,6 +361,8 @@ typedef struct

[libav-devel] [PATCH 23/64] h264: move mb[_{padding, luma_dc}] into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 11 ++ libavcodec/h264_cabac.c | 24 +++--- libavcodec/h264_cavlc.c | 24 +++--- libavcodec/h264_mb.c | 48 +-- libavcodec/h264_mb_template.c | 26 +++---

[libav-devel] [PATCH 14/64] h264: move mb_[uv]linesize into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 6 +-- libavcodec/h264_mb.c | 94 +-- libavcodec/h264_mb_template.c | 12 +++--- libavcodec/h264_mc_template.c | 8 ++-- libavcodec/h264_slice.c | 8 ++-- 5 files changed, 64 insertions(+), 64 deletions(-

[libav-devel] [PATCH 09/64] h264: move intra4x4_pred_mode[_cache] into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c| 12 +++- libavcodec/h264.h| 21 - libavcodec/h264_cabac.c | 12 ++-- libavcodec/h264_cavlc.c | 10 +- libavcodec/h264_mb.c | 4 ++-- libavcodec/h264_mvpred.h | 20 ++-- libavcodec/h264_slice.c

[libav-devel] [PATCH 12/64] h264: move {mv, ref}_cache into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.c | 18 +++ libavcodec/h264.h | 27 ++- libavcodec/h264_cabac.c | 67 +- libavcodec/h264_cavlc.c | 44 - libavcodec/h264_direct.c | 109 ++ l

[libav-devel] [PATCH 07/64] h264: move {chroma, intra16x16}_pred_mode into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 6 +++--- libavcodec/h264_cabac.c | 10 +- libavcodec/h264_cavlc.c | 10 +- libavcodec/h264_mb.c | 8 libavcodec/h264_mb_template.c | 12 ++-- libavcodec/svq3.c | 6 +++--- 6 files changed, 26

[libav-devel] [PATCH 02/64] h264: split weighted pred-related vars into per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 21 ++--- libavcodec/h264.c | 60 +++-- libavcodec/h264.h | 37 +-- libavcodec/h264_mb.c | 69 ++- libavcodec/h264_mb_template.c

[libav-devel] [PATCH 08/64] h264: move some neighbour information into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 26 +++ libavcodec/h264_cabac.c | 47 +++-- libavcodec/h264_cavlc.c | 12 ++-- libavcodec/h264_loopfilter.c | 29 libavcodec/h264_mb.c | 5 +- libavcodec/h264_mb_template.c | 8 +-- libavcodec/h264_mvpred.h

[libav-devel] [PATCH 04/64] h264: move the quantizers into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/dxva2_h264.c | 2 +- libavcodec/h264.h | 15 ++-- libavcodec/h264_cabac.c | 48 +++- libavcodec/h264_cavlc.c | 43 libavcodec/h264_loopfilter.c | 57 +++--

[libav-devel] [PATCH 05/64] h264: move qp_thresh into the per-slice context

2015-01-29 Thread Anton Khirnov
--- libavcodec/h264.h | 3 +-- libavcodec/h264_slice.c | 8 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 1c3343b..d3cb318 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -301,6 +301,7 @@ typedef struct H264Slice

[libav-devel] [RFC/PATCH] h264dec refactoring

2015-01-29 Thread Anton Khirnov
Hi, here is the initial version of a set that's supposed to deal with some h264 ugliness. Specifically the fact that both the long-term (frame and higher) and short-term (per-slice and lower) state is all dumped into one huge context. Because of this, we have to use several H264Contexts for slice t

[libav-devel] [PATCH 01/64] h264: remove a now redundant error check

2015-01-29 Thread Anton Khirnov
It was only relevant when data partitioning was in use. --- libavcodec/h264_slice.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 4eb2767..47276dd 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -2335,12 +2335

[libav-devel] [PATCH 03/64] h264: do not copy qscale when updating per-thread contexts

2015-01-29 Thread Anton Khirnov
It's a per-slice quantity constructed when parsing the slice header. --- libavcodec/h264_slice.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index ab3eb96..5a86940 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -541,

Re: [libav-devel] [PATCH 4/5] flacenc: initialize sums matrix

2015-01-29 Thread Vittorio Giovara
On Wed, Jan 28, 2015 at 7:33 PM, Luca Barbato wrote: > On 28/01/15 15:41, Vittorio Giovara wrote: >> >> CC: libav-sta...@libav.org >> Bug-Id: CID 703821 >> --- >> libavcodec/flacenc.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/libavcodec/flacenc.c b/libavcodec/f

[libav-devel] [PATCH] xiph: const-ify parameters

2015-01-29 Thread Vittorio Giovara
Fix -Wincompatible-pointer-types-discards-qualifiers warnings. --- Then we could have this more complete version, but adds a cast in oggenc. Vittorio libavcodec/vorbis_parser.c | 2 +- libavcodec/vorbisdec.c | 2 +- libavcodec/vp3.c | 2 +- libavcodec/xiph.c | 8 +--- l

Re: [libav-devel] [PATCH] vorbis_parse: const-ify parameters

2015-01-29 Thread Anton Khirnov
Quoting Vittorio Giovara (2015-01-29 16:04:07) > Fix -Wincompatible-pointer-types-discards-qualifiers warnings. > --- > Actually I prefer this version. > Vittorio > > libavcodec/vorbis_parser.c | 4 ++-- > libavcodec/vorbis_parser.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > >

Re: [libav-devel] [PATCH 3/5] mpegvideo_enc: initialize the encoding context

2015-01-29 Thread Vittorio Giovara
On Wed, Jan 28, 2015 at 7:33 PM, Luca Barbato wrote: > On 28/01/15 15:41, Vittorio Giovara wrote: >> >> This prevents several (theoretical) uninitialized variable uses that take >> place towards the end of encoding. >> >> CC: libav-sta...@libav.org >> Bug-Id: CID 700760 >> --- >> libavcodec/mpeg

Re: [libav-devel] [PATCH 5/5] libopencv: Make sure to always free the returned token

2015-01-29 Thread Vittorio Giovara
On Wed, Jan 28, 2015 at 7:34 PM, Luca Barbato wrote: > On 28/01/15 15:41, Vittorio Giovara wrote: >> >> Fix 'kernel_str' memory leak and check for the returned pointer directly. >> >> CC: libav-sta...@libav.org >> Bug-Id: CID 739878 / CID 739882 >> --- >> libavfilter/vf_libopencv.c | 11 ++--

[libav-devel] [PATCH] vorbis_parse: const-ify parameters

2015-01-29 Thread Vittorio Giovara
Fix -Wincompatible-pointer-types-discards-qualifiers warnings. --- Actually I prefer this version. Vittorio libavcodec/vorbis_parser.c | 4 ++-- libavcodec/vorbis_parser.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.