Re: [libav-devel] [PATCH 14/14] avcodec/cbs_h2645: use AVBufferRef to store list of active parameter sets

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:16 PM Luca Barbato wrote: > > From: James Almer > > Removes unnecessary data copies, and partially fixes potential issues > with dangling references held in said lists. > > Reviewed-by: Mark Thompson > Signed-off-by: James Almer > --- > libavcodec/cbs_h264.h | 2 ++

Re: [libav-devel] [PATCH 13/14] cbs_h264: Need [] in the name when subscript is required

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: Haihao Xiang > > Otherwise it will hit an assert in the function > ff_cbs_trace_syntax_element() in cbs.c, line 400. > > Signed-off-by: Haihao Xiang > --- > libavcodec/cbs_h264_syntax_template.c | 2 +- > 1 file changed, 1

Re: [libav-devel] [PATCH 12/14] cbs: Add support for array subscripts in trace output

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: Mark Thompson > > This makes the trace output for arrays significantly nicer. > --- > libavcodec/cbs.c | 44 ++-- > libavcodec/cbs_h2645.c | 83 --- >

Re: [libav-devel] [PATCH 11/14] cbs_h2645: Simplify representation of fixed values

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: Mark Thompson > > --- > libavcodec/cbs_h2645.c| 5 + > libavcodec/cbs_h264_syntax_template.c | 30 --- > libavcodec/cbs_h265_syntax_template.c | 38 > +++ >

Re: [libav-devel] [PATCH 09/14] avcodec/cbs_mpeg2: create a reference to the existing buffer when decomposing slice units

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: James Almer > > Reviewed-by: Mark Thompson > Signed-off-by: James Almer > --- > libavcodec/cbs_mpeg2.c | 9 ++--- > 1 file changed, 2 insertions(+), 7 deletions(-) > > diff --git a/libavcodec/cbs_mpeg2.c b/libavcodec/cbs_mpeg2.c

Re: [libav-devel] [PATCH 10/14] cbs: Fragment/unit data is always reference counted

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: Mark Thompson > > Make this clear in the documentation and add some asserts to ensure > that it is always true. > --- > libavcodec/cbs.c | 19 --- > libavcodec/cbs.h | 10 ++ > 2 files changed, 18

Re: [libav-devel] [PATCH 08/14] avcodec/cbs_h2645: create a reference to the existing buffer when decomposing slice units

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: James Almer > > Reviewed-by: Mark Thompson > Signed-off-by: James Almer > --- > libavcodec/cbs_h2645.c | 18 -- > 1 file changed, 4 insertions(+), 14 deletions(-) > > diff --git a/libavcodec/cbs_h2645.c

Re: [libav-devel] [PATCH 07/14] avcodec/cbs_mpeg2: use existing buffer reference when splitting fragments

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: James Almer > > Reviewed-by: Mark Thompson > Signed-off-by: James Almer > --- > libavcodec/cbs_mpeg2.c | 12 +++- > 1 file changed, 3 insertions(+), 9 deletions(-) > > diff --git a/libavcodec/cbs_mpeg2.c

Re: [libav-devel] [PATCH 06/14] avcodec/cbs_mpeg2: use memcpy when assembling fragments

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: James Almer > > before: > 419022 decicycles in assemble_fragment,2047 runs, 1 skips > > after: > 104621 decicycles in assemble_fragment,2045 runs, 3 skips > > Benched with a 2 minutes long 720x480 DVD mpeg2 sample. >

Re: [libav-devel] [PATCH 04/14] avcodec/cbs: use a reference to the assembled CodedBitstreamFragment buffer when writing packets

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: James Almer > > This saves one malloc + memcpy per packet > > The CodedBitstreamFragment buffer is padded to follow the requirements > of AVPacket. > > Reviewed-by: jkqxz > Signed-off-by: James Almer > --- > libavcodec/cbs.c |

Re: [libav-devel] [PATCH 05/14] cbs_h265: Use helper macro for maximum values of fixed-width elements

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:15 PM Luca Barbato wrote: > > From: Mark Thompson > > Apply the same logic as the previous patch to H.265. There are no cases > which currently overflow here, but this is still more consistent. > --- > libavcodec/cbs_h265_syntax_template.c | 16 > 1

Re: [libav-devel] [PATCH 03/14] cbs: Add a table of all supported codec IDs

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:14 PM Luca Barbato wrote: > > From: Mark Thompson > > Use it as the set of codec IDs supported by the trace_headers BSF. > --- > configure | 2 +- > libavcodec/cbs.c | 13 + > libavcodec/cbs.h | 8 >

Re: [libav-devel] [PATCH 02/14] cbs_h264: Fix overflow in shifts

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:14 PM Luca Barbato wrote: > > From: Mark Thompson > > The type of the result of a shift operation is unaffected by the type of > the right operand, so some existing code overflows with undefined behaviour > when the element length is 32. Add a helper macro to calculate

Re: [libav-devel] [PATCH 01/14] maint: Ignore dot dirs

2019-05-13 Thread Alexandra Hájková
On Sat, May 4, 2019 at 2:14 PM Luca Barbato wrote: > > They are usually created by tools and editors. > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.gitignore b/.gitignore > index 1a08fd15c5..693fa5636a 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -29,3 +29,4

[libav-devel] [PATCH] hevc: Add hevc_get_pixel_4/8/12/16/24/32/48/64

2017-12-03 Thread Alexandra Hájková
new file mode 100644 index 0..a1274ec71 --- /dev/null +++ b/libavcodec/arm/hevc_mc.S @@ -0,0 +1,381 @@ +/* + * ARM NEON optimised MC functions for HEVC decoding + * + * Copyright (c) 2017 Alexandra Hájková + * + * This file is part of Libav. + * + * Libav is free software; you can redistribute

Re: [libav-devel] [PATCH v2] avconv.c: fix calculation of input file duration in seek_to_start()

2017-10-30 Thread Alexandra Hájková
On Mon, Oct 30, 2017 at 12:25 PM, Peter Große wrote: > Fixes looping files without audio or when using stream_copy, where > ist->nb_samples is not set since no decoding is done. > --- > avtools/avconv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [libav-devel] [PATCH 2/2] avconv.c: fix calculation of input file duration in seek_to_start()

2017-10-30 Thread Alexandra Hájková
> --- a/avtools/avconv.c > +++ b/avtools/avconv.c > @@ -2553,9 +2553,9 @@ static int seek_to_start(InputFile *ifile, > AVFormatContext *is) > continue; > } else { > if (ist->framerate.num) { > -duration = av_rescale_q(1, ist->framerate, >

Re: [libav-devel] [PATCH 2/2] avconv.c: fix calculation of input file duration in seek_to_start()

2017-10-29 Thread Alexandra Hájková
On Sun, Oct 29, 2017 at 12:48 PM, Peter Große wrote: > Fixes looping files without audio or when using stream_copy, where > ist->nb_samples is not set since no decoding is done. > Does the loop discards the last frame because its duration is set to 0? Could you give me your

Re: [libav-devel] [PATCH] avconv: when using -loop option bail out if seek to start fails

2017-06-30 Thread Alexandra Hájková
On Fri, Jun 30, 2017 at 5:28 PM, Peter Große wrote: > Fixes an infinite loop when a demuxer fails to seek to the start of the input. > > Signed-off-by: Peter Große > --- > avtools/avconv.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff

[libav-devel] Libav Sprint Pelhřimov

2017-06-29 Thread Alexandra Hájková
Hello everyone, I would like to announce another Libav sprint in the wilds around Pelhřimov, the date was set to 21-23 July, but the next weekend (28-30) is also possible. The plans are: * hacking * cooking * enjoying countryside * evenutally others. Please, reply here, if you're interested.

[libav-devel] [PATCH 2/2] hevc: Add NEON 32x32 IDCT

2017-05-04 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S| 311 +++--- libavcodec/arm/hevcdsp_init_arm.c | 4 + 2 files changed, 294 insertions(+), 21 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index eeb81e3..79799b2 100644 ---

[libav-devel] [PATCH 1/2] hevc: 16x16 NEON idct: Use the right element size for stores.

2017-05-04 Thread Alexandra Hájková
This doesn't change the actual behaviour of the code but improves readability. --- libavcodec/arm/hevc_idct.S | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index fac5758..eeb81e3 100644 ---

[libav-devel] [PATCH 1/2] hevc: 16x16 NEON idct: store 32 bit elements correctly

2017-05-03 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index fac5758..4814c86 100644 --- a/libavcodec/arm/hevc_idct.S +++ b/libavcodec/arm/hevc_idct.S @@ -536,10 +536,10 @@ endfunc

[libav-devel] [PATCH 2/2] hevc: Add NEON 32x32 IDCT

2017-05-03 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S| 319 ++ libavcodec/arm/hevcdsp_init_arm.c | 4 + 2 files changed, 297 insertions(+), 26 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index 4814c86..3a512b4 100644 ---

[libav-devel] [PATCH] hevc: Add NEON add_residual for bitdepth 10

2017-05-01 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S| 90 +++ libavcodec/arm/hevcdsp_init_arm.c | 13 ++ 2 files changed, 103 insertions(+) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index b3ce00b..5d400c2 100644 ---

Re: [libav-devel] [PATCH] arm: hevc_idct: Tune the add_res_8x8 and add_res_32x32 functions

2017-04-28 Thread Alexandra Hájková
On Thu, Apr 27, 2017 at 11:38 PM, Martin Storsjö wrote: > Before: Cortex A7 A8 A9 A53 > hevc_add_res_8x8_8_neon: 116.058.780.290.7 > hevc_add_res_32x32_8_neon: 1230.0 737.5 1187.5 974.4 > After: > hevc_add_res_8x8_8_neon:

[libav-devel] [PATCH] hevc: Add NEON add_residual for bitdepth 10

2017-04-27 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S| 89 +++ libavcodec/arm/hevcdsp_init_arm.c | 13 ++ 2 files changed, 102 insertions(+) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index 3966e93..14af40f 100644 ---

[libav-devel] [PATCH] hevc: Add NEON add_residual for bitdepth 8

2017-04-27 Thread Alexandra Hájková
From: Seppo Tomperi <seppo.tomp...@vtt.fi> Optimized by Alexandra Hájková. --- libavcodec/arm/hevc_idct.S| 88 +++ libavcodec/arm/hevcdsp_init_arm.c | 15 +++ 2 files changed, 103 insertions(+) diff --git a/libavcodec/arm/hevc_idct.S b/liba

[libav-devel] [PATCH] hevc: Add NEON add_residual for bitdepth 8

2017-04-26 Thread Alexandra Hájková
From: Seppo Tomperi <seppo.tomp...@vtt.fi> Optimized by Alexandra Hájková. --- libavcodec/arm/hevc_idct.S| 86 +++ libavcodec/arm/hevcdsp_init_arm.c | 15 +++ 2 files changed, 101 insertions(+) diff --git a/libavcodec/arm/hevc_idct.S b/liba

[libav-devel] [PATCH 2/2] hevc: Add support for bitdepth 10 for IDCT DC

2017-04-25 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S| 40 +++ libavcodec/arm/hevcdsp_init_arm.c | 9 + 2 files changed, 37 insertions(+), 12 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index ceded7a..41b1b29 100644 ---

[libav-devel] [PATCH 1/2] hevc: Add NEON IDCT DC functions for bitdepth 8

2017-04-25 Thread Alexandra Hájková
From: Seppo Tomperi <seppo.tomp...@vtt.fi> Signed-off-by: Alexandra Hájková <alexan...@khirnov.net> --- libavcodec/arm/hevc_idct.S| 78 +++ libavcodec/arm/hevcdsp_init_arm.c | 10 + 2 files changed, 88 insertions(+) diff --git a/li

[libav-devel] [PATCH 2/2] hevc: Add support for bitdepth 10 for IDCT DC

2017-04-20 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S| 42 +++ libavcodec/arm/hevcdsp_init_arm.c | 22 ++-- 2 files changed, 45 insertions(+), 19 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index f0008aa..41b1b29 100644

[libav-devel] [PATCH 1/2] hevc: Add NEON IDCT DC functions for bitdepth 8

2017-04-20 Thread Alexandra Hájková
From: Seppo Tomperi <seppo.tomp...@vtt.fi> Signed-off-by: Alexandra Hájková <alexan...@khirnov.net> --- libavcodec/arm/hevc_idct.S| 78 +++ libavcodec/arm/hevcdsp_init_arm.c | 15 ++-- 2 files changed, 90 insertions(+), 3 deletions(-)

[libav-devel] [PATCH] hevc: Add NEON add_residual for bitdepth 8

2017-04-18 Thread Alexandra Hájková
From: Seppo Tomperi <seppo.tomp...@vtt.fi> Signed-off-by: Alexandra Hájková <alexan...@khirnov.net> --- libavcodec/arm/hevc_idct.S| 71 +++ libavcodec/arm/hevcdsp_init_arm.c | 15 + 2 files changed, 86 insertions(+) diff --git a/li

[libav-devel] [PATCH 2/2] hevc: Add support for bitdepth 10 for IDCT DC

2017-04-17 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S| 50 --- libavcodec/arm/hevcdsp_init_arm.c | 21 +++- 2 files changed, 56 insertions(+), 15 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index 7fdd7cc..082f832 100644 ---

Re: [libav-devel] [PATCH 2/2] hevc: Add support for bitdepth 10 for IDCT DC

2017-04-17 Thread Alexandra Hájková
>> -function ff_hevc_idct_32x32_dc_8_neon, export=1 >> +.macro idct_32x32_dc bitdepth >> +function ff_hevc_idct_32x32_dc_\bitdepth\()_neon, export=1 >> ldrsh r1, [r0] >> ldr r2, =0x20 >> +.if \bitdepth == 8 >> +ldr r2, =0x20 >> +

[libav-devel] [PATCH 2/2] hevc: Add support for bitdepth 10 for IDCT DC

2017-04-17 Thread Alexandra Hájková
--- Indent operands. libavcodec/arm/hevc_idct.S| 51 --- libavcodec/arm/hevcdsp_init_arm.c | 21 +++- 2 files changed, 57 insertions(+), 15 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index

[libav-devel] [PATCH 1/2] hevc: Add NEON IDCT DC functions for bitdepth 8

2017-04-17 Thread Alexandra Hájková
From: Seppo Tomperi <seppo.tomp...@vtt.fi> Signed-off-by: Alexandra Hájková <alexan...@khirnov.net> --- Indent operands. libavcodec/arm/hevc_idct.S| 78 +++ libavcodec/arm/hevcdsp_init_arm.c | 14 +-- 2 files changed, 89 inse

[libav-devel] [PATCH 1/2] hevc: Add NEON IDCT DC functions for bitdepth 8

2017-04-16 Thread Alexandra Hájková
From: Seppo Tomperi <seppo.tomp...@vtt.fi> Signed-off-by: Alexandra Hájková <alexan...@khirnov.net> --- libavcodec/arm/hevc_idct.S| 78 +++ libavcodec/arm/hevcdsp_init_arm.c | 14 +-- 2 files changed, 89 insertions(+), 3 deletions(-)

[libav-devel] [PATCH 2/2] hevc: Add support for bitdepth 10 for IDCT DC

2017-04-16 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S| 49 --- libavcodec/arm/hevcdsp_init_arm.c | 21 - 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index f74847b..b80d5ff 100644 ---

[libav-devel] [PATCH] hevc: Optimize NEON 8x8 IDCT using col_limit

2017-04-12 Thread Alexandra Hájková
--- libavcodec/arm/hevc_idct.S | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index 4124fc8..29135ad 100644 --- a/libavcodec/arm/hevc_idct.S +++ b/libavcodec/arm/hevc_idct.S @@ -58,7 +58,7 @@

[libav-devel] [PATCH] hevc: Add NEON 16x16 IDCT

2017-04-12 Thread Alexandra Hájková
The speedup vs C code is around 6-13x. --- Use irp to avoid the repetition. libavcodec/arm/hevc_idct.S| 196 ++ libavcodec/arm/hevcdsp_init_arm.c | 4 + 2 files changed, 200 insertions(+) diff --git a/libavcodec/arm/hevc_idct.S

[libav-devel] [PATCH] hevc: Add NEON 16x16 IDCT

2017-04-11 Thread Alexandra Hájková
The speedup vs C code is around 6-13x. --- libavcodec/arm/hevc_idct.S| 210 ++ libavcodec/arm/hevcdsp_init_arm.c | 4 + 2 files changed, 214 insertions(+) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index 4124fc8..0ea048b

[libav-devel] [PATCH] hevc: Add NEON 16x16 IDCT

2017-04-05 Thread Alexandra Hájková
The speedup vs C code is around 8x. --- libavcodec/arm/hevc_idct.S| 187 ++ libavcodec/arm/hevcdsp_init_arm.c | 4 + 2 files changed, 191 insertions(+) diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S index 4124fc8..b4279db 100644

[libav-devel] [PATCH] hevc: Add NEON 4x4 and 8x8 IDCT

2017-03-27 Thread Alexandra Hájková
ght (c) 2017 Alexandra Hájková + * + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your

[libav-devel] [PATCH] hevc: Add NEON 4x4 and 8x8 IDCT

2017-03-25 Thread Alexandra Hájková
) 2017 Alexandra Hájková + * + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your

[libav-devel] [PATCH] asfdec: Account for different Format Data sizes

2017-02-08 Thread Alexandra Hájková
Some muxers may use the BMP_HEADER Format Data size instead of the ASF-specific one. Bug-Id: 1020 --- Use more descriptive variable names. Upgrate the documentation. Use better commit message. libavformat/asfdec.c | 12 +++- libavformat/avidec.c | 2 +- libavformat/riff.h| 4

[libav-devel] [PATCH] asfdec: use the BMP_HEADER specific Format Data size instead of

2017-02-07 Thread Alexandra Hájková
the ASF specific Format Data size. Fixes video decoding problem part of the bug 1020. --- libavformat/asfdec.c | 8 +--- libavformat/avidec.c | 2 +- libavformat/riff.h| 2 +- libavformat/riffdec.c | 6 -- libavformat/wtv.c | 2 +- 5 files changed, 12 insertions(+), 8

[libav-devel] [PATCH] hevc: Add HEVC IDCT 4x4 for PPC

2016-12-11 Thread Alexandra Hájková
From: Alexandra Hajkova --- libavcodec/hevcdsp.c | 2 + libavcodec/hevcdsp.h | 1 + libavcodec/ppc/Makefile | 1 + libavcodec/ppc/hevcdsp.c | 108 ++ libavcodec/ppc/hevcdsp_template.c |

[libav-devel] [PATCH] hevc: Add HEVC IDCT 4x4 for PPC

2016-12-01 Thread Alexandra Hájková
From: Alexandra Hajkova --- libavcodec/hevcdsp.c | 2 + libavcodec/hevcdsp.h | 1 + libavcodec/ppc/Makefile | 1 + libavcodec/ppc/hevcdsp.c | 110 ++ libavcodec/ppc/hevcdsp_template.c |

[libav-devel] [PATCH 34/35] qcelp: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/qcelpdec.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c index e9e7347..9d5e13a 100644 --- a/libavcodec/qcelpdec.c +++ b/libavcodec/qcelpdec.c @@ -31,9

[libav-devel] [PATCH 32/35] opus: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/opus.h| 6 +++--- libavcodec/opusdec.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/opus.h b/libavcodec/opus.h index 55c91fa..fbf67c9 100644 --- a/libavcodec/opus.h +++ b/libavcodec/opus.h

[libav-devel] [PATCH 28/35] hq_hqa: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/hq_hqa.c | 48 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/libavcodec/hq_hqa.c b/libavcodec/hq_hqa.c index 98bd596..0d03e59 100644 --- a/libavcodec/hq_hqa.c +++

[libav-devel] [PATCH 35/35] qdm2: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/qdm2.c | 200 +++--- 1 file changed, 100 insertions(+), 100 deletions(-) diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index 7a7c149..781999a 100644 --- a/libavcodec/qdm2.c +++

[libav-devel] [PATCH 30/35] jvdec: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/jvdec.c | 52 ++-- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c index c532b75..37a2770 100644 --- a/libavcodec/jvdec.c +++

[libav-devel] [PATCH 27/35] gsm: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/gsmdec.c | 11 ++- libavcodec/gsmdec_template.c | 34 +- libavcodec/msgsmdec.c| 9 + 3 files changed, 28 insertions(+), 26 deletions(-) diff --git

[libav-devel] [PATCH 33/35] pcx: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/pcx.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c index a2d49b4..ece885e 100644 --- a/libavcodec/pcx.c +++ b/libavcodec/pcx.c @@ -23,9 +23,10 @@ */ #include

[libav-devel] [PATCH 26/35] g72x: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/g722dec.c | 13 - libavcodec/g723_1dec.c | 72 +- libavcodec/g726.c | 11 3 files changed, 49 insertions(+), 47 deletions(-) diff --git a/libavcodec/g722dec.c

[libav-devel] [PATCH 29/35] hqx: Convert to the new bitstream header

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/hqx.c | 64 libavcodec/hqx.h | 5 +++-- 2 files changed, 35 insertions(+), 34 deletions(-) diff --git a/libavcodec/hqx.c b/libavcodec/hqx.c index 7411d3f..3c359e3 100644 ---

[libav-devel] [PATCH 31/35] nellymoser: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/nellymoserdec.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c index 355935f..390872c 100644 --- a/libavcodec/nellymoserdec.c +++

[libav-devel] [PATCH 21/35] exr: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/exr.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index d10841d..28cee84 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -39,8 +39,8 @@ #include

[libav-devel] [PATCH 19/35] escape124: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/escape124.c | 85 -- 1 file changed, 41 insertions(+), 44 deletions(-) diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c index 6d1b487..879f00a 100644 ---

[libav-devel] [PATCH 25/35] g2meet: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/g2meet.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index 7e90916..4a7f5a3 100644 --- a/libavcodec/g2meet.c +++ b/libavcodec/g2meet.c

[libav-devel] [PATCH 24/35] fraps: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/fraps.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 55051ff..2237991 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -32,7 +32,7 @@ */

[libav-devel] [PATCH 23/35] flashsv: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/flashsv.c | 57 ++-- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index 2cf8f3f..20fa7bc 100644 --- a/libavcodec/flashsv.c

[libav-devel] [PATCH 22/35] faxcompr: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/faxcompr.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index 4cbda3f..8a9010d 100644 --- a/libavcodec/faxcompr.c +++

[libav-devel] [PATCH 20/35] escape130: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/escape130.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c index bfc1f3f..544f36d 100644 ---

[libav-devel] [PATCH 09/35] atrac: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/atrac1.c | 34 ++- libavcodec/atrac3.c | 97 +++-- 2 files changed, 67 insertions(+), 64 deletions(-) diff --git a/libavcodec/atrac1.c b/libavcodec/atrac1.c index

[libav-devel] [PATCH 14/35] cdxl: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/cdxl.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/libavcodec/cdxl.c b/libavcodec/cdxl.c index 99e96eb..4c0410d 100644 --- a/libavcodec/cdxl.c +++ b/libavcodec/cdxl.c @@ -21,8 +21,9 @@

[libav-devel] [PATCH 06/35] 4xm: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/4xm.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index b2d4db2..ee9d020 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -29,11 +29,12

[libav-devel] [PATCH 03/35] eamad: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/eamad.c | 42 +++--- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index 070cfdb..7509c2d 100644 --- a/libavcodec/eamad.c +++

[libav-devel] [PATCH 18/35] dvdsubdec: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/dvdsubdec.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 86c2873..b02bb6b 100644 --- a/libavcodec/dvdsubdec.c +++

[libav-devel] [PATCH 05/35] on2avc: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/on2avc.c | 64 +++-- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c index 2a528c6..1b81980 100644 --- a/libavcodec/on2avc.c

[libav-devel] [PATCH 12/35] bink: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/bink.c | 264 ++ 1 file changed, 128 insertions(+), 136 deletions(-) diff --git a/libavcodec/bink.c b/libavcodec/bink.c index 7433697..74db80a 100644 --- a/libavcodec/bink.c +++

[libav-devel] [PATCH 17/35] dss_sp: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/dss_sp.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c index 20b0528..44d98d8 100644 --- a/libavcodec/dss_sp.c +++ b/libavcodec/dss_sp.c @@

[libav-devel] [PATCH 15/35] cljrdec: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/cljrdec.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavcodec/cljrdec.c b/libavcodec/cljrdec.c index 33d8023..833707b 100644 --- a/libavcodec/cljrdec.c +++ b/libavcodec/cljrdec.c @@ -25,7

[libav-devel] [PATCH 10/35] atrac3plus: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/atrac3plus.c| 525 +++-- libavcodec/atrac3plus.h| 7 +- libavcodec/atrac3plusdec.c | 15 +- 3 files changed, 275 insertions(+), 272 deletions(-) diff --git a/libavcodec/atrac3plus.c

[libav-devel] [PATCH 02/35] cllc: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/cllc.c | 88 +++ 1 file changed, 36 insertions(+), 52 deletions(-) diff --git a/libavcodec/cllc.c b/libavcodec/cllc.c index cdbed74..bac2b73 100644 --- a/libavcodec/cllc.c +++

[libav-devel] [PATCH 07/35] adpcm: Convert to the new bitstream header

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/adpcm.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 3ab16dd..fe51c0d 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -29,8 +29,9

[libav-devel] [PATCH 08/35] asvdec: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/asv.h| 4 ++-- libavcodec/asvdec.c | 54 ++--- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/libavcodec/asv.h b/libavcodec/asv.h index 18f7a95..7c4e4fd 100644

[libav-devel] [PATCH 11/35] avs: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/avs.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/avs.c b/libavcodec/avs.c index 0d127f8..bea01a2 100644 --- a/libavcodec/avs.c +++ b/libavcodec/avs.c @@ -20,7 +20,7 @@ */ #include

[libav-devel] [PATCH 13/35] binkaudio: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/binkaudio.c | 59 +- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c index 2638eb2..cf61135 100644 ---

[libav-devel] [PATCH 01/35] lavc: add a new bitstream reader to replace get_bits

2016-11-14 Thread Alexandra Hájková
/libavcodec/bitstream.h new file mode 100644 index 000..996e32e --- /dev/null +++ b/libavcodec/bitstream.h @@ -0,0 +1,387 @@ +/* + * Copyright (c) 2016 Alexandra Hájková + * + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * modify it under

[libav-devel] [PATCH 04/35] ea: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/eatgq.c | 34 +- libavcodec/eatgv.c | 22 +++--- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c index 8355471..9abedcc 100644

[libav-devel] [PATCH 16/35] cook: Convert to the new bitstream reader

2016-11-14 Thread Alexandra Hájková
Signed-off-by: Anton Khirnov --- libavcodec/cook.c | 53 +++-- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/libavcodec/cook.c b/libavcodec/cook.c index c990333..c3304ea 100644 --- a/libavcodec/cook.c +++

[libav-devel] [PATCH] hevc: Add HEVC IDCT 4x4 for PPC

2016-11-11 Thread Alexandra Hájková
From: Alexandra Hajkova --- libavcodec/hevcdsp.c | 2 + libavcodec/hevcdsp.h | 1 + libavcodec/ppc/Makefile | 1 + libavcodec/ppc/hevcdsp.c | 107 ++ libavcodec/ppc/hevcdsp_template.c |

[libav-devel] [PATCH] hevc: Add HEVC IDCT 4x4 for PPC

2016-11-10 Thread Alexandra Hájková
From: Alexandra Hajkova --- libavcodec/hevcdsp.c | 2 + libavcodec/hevcdsp.h | 1 + libavcodec/ppc/Makefile | 1 + libavcodec/ppc/hevcdsp.c | 107 ++ libavcodec/ppc/hevcdsp_template.c |

[libav-devel] [PATCH] hevc: Add HEVC IDCT 4x4 for PPC

2016-11-05 Thread Alexandra Hájková
@@ +/* SIMD-optimized IDCT functions for HEVC decoding + * Copyright (c) Alexandra Hájková + * + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software

Re: [libav-devel] [PATCH] hevc: Add HEVC IDCT 4x4 for PPC

2016-11-01 Thread Alexandra Hájková
>> +static const vector int16_t trans4[4] = { >> +{ 64, 64, 64, 64, 64, 64, 64, 64 }, >> +{ 83, 36, 83, 36, 83, 36, 83, 36 }, >> +{ 64, -64, 64, -64, 64, -64, 64, -64 }, >> +{ 36, -83, 36, -83, 36, -83, 36, -83 }, >> +}; > > This fits in int8_t, is there a reason to have it

[libav-devel] [PATCH] hevc: Add HEVC IDCT 4x4 for PPC

2016-11-01 Thread Alexandra Hájková
From: Alexandra Hajkova --- libavcodec/hevcdsp.c | 2 + libavcodec/hevcdsp.h | 1 + libavcodec/ppc/Makefile | 1 + libavcodec/ppc/hevcdsp_ppc.c | 111 ++

[libav-devel] [PATCH 1/2] hevc: x86: Add add_residual optimizations

2016-10-21 Thread Alexandra Hájková
From: Pierre Edouard Lepere <pierre-edouard.lep...@insa-rennes.fr> Initially written by Pierre Edouard Lepere <pierre-edouard.lep...@insa-rennes.fr>, extended by James Almer <jamr...@gmail.com>. Signed-off-by: Alexandra Hájková <alexan...@khirnov.net> Signed-o

[libav-devel] [PATCH 2/2] checkasm: Add a test for HEVC add_residual

2016-10-21 Thread Alexandra Hájková
-0,0 +1,85 @@ +/* + * Copyright (c) 2016 Alexandra Hájková + * + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the Li

[libav-devel] [PATCH 2/2] checkasm: Add a test for HEVC add_residual

2016-10-13 Thread Alexandra Hájková
ckasm_check_huffyuvdsp(void); diff --git a/tests/checkasm/hevc_add_res.c b/tests/checkasm/hevc_add_res.c new file mode 100644 index 000..c242c8c --- /dev/null +++ b/tests/checkasm/hevc_add_res.c @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2016 Alexandra Hájková + * + * This file is part of Libav.

[libav-devel] [PATCH 1/2] hevc/x86: Add add_residual

2016-10-13 Thread Alexandra Hájková
From: Pierre Edouard Lepere <pierre-edouard.lep...@insa-rennes.fr> Initially written by Pierre Edouard Lepere <pierre-edouard.lep...@insa-rennes.fr>, extended by James Almer <jamr...@gmail.com>. Signed-off-by: Alexandra Hájková <alexan...@khirnov.net> --- libavcodec/x8

Re: [libav-devel] [PATCH 2/2] checkasm: Add a test for HEVC add_residual

2016-10-13 Thread Alexandra Hájková
>> +#define randomize_buffers(buf, size)\ >> +do {\ >> +int j; \ >> +for (j = 0; j < size; j++) {\ >> +int16_t r = rnd(); \ >> +AV_WN16A(buf

[libav-devel] [PATCH 1/2] hevc/x86: Add add_residual

2016-10-12 Thread Alexandra Hájková
From: Pierre Edouard Lepere <pierre-edouard.lep...@insa-rennes.fr> Initially written by Pierre Edouard Lepere <pierre-edouard.lep...@insa-rennes.fr>, extended by James Almer <jamr...@gmail.com>. Signed-off-by: Alexandra Hájková <alexan...@khirnov.net> --- libavcodec/x8

[libav-devel] [PATCH 2/2] checkasm: Add a test for HEVC add_residual

2016-10-12 Thread Alexandra Hájková
c(void); void checkasm_check_huffyuvdsp(void); diff --git a/tests/checkasm/hevc_add_res.c b/tests/checkasm/hevc_add_res.c new file mode 100644 index 000..fcc47c1 --- /dev/null +++ b/tests/checkasm/hevc_add_res.c @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2016 Alexandra Hájková + * + * This file

[libav-devel] [PATCH 1/2] hevc: Add SSE2 and AVX IDCT

2016-10-10 Thread Alexandra Hájková
--- a/libavcodec/x86/hevc_idct.asm +++ b/libavcodec/x86/hevc_idct.asm @@ -2,6 +2,7 @@ ;* SIMD-optimized IDCT functions for HEVC decoding ;* Copyright (c) 2014 Pierre-Edouard LEPERE ;* Copyright (c) 2014 James Almer +;* Copyright (c) 2016 Alexandra Hájková ;* ;* This file is part of Libav. ;* @@ -22,6 +23,217

[libav-devel] [PATCH 1/2] hevc: Add SSE2 and AVX IDCT

2016-10-08 Thread Alexandra Hájková
/hevc_idct.asm index d662aa9..6606d46 100644 --- a/libavcodec/x86/hevc_idct.asm +++ b/libavcodec/x86/hevc_idct.asm @@ -2,6 +2,7 @@ ;* SIMD-optimized IDCT functions for HEVC decoding ;* Copyright (c) 2014 Pierre-Edouard LEPERE ;* Copyright (c) 2014 James Almer +;* Copyright (c) 2016 Alexandra Hájková

Re: [libav-devel] [PATCH 1/2] hevc: Add SSE2 and AVX IDCT

2016-10-07 Thread Alexandra Hájková
On Fri, Oct 7, 2016 at 12:32 AM, Diego Biurrun <di...@biurrun.de> wrote: > On Wed, Oct 05, 2016 at 02:04:31PM +0200, Alexandra Hájková wrote: >> --- a/libavcodec/x86/hevc_idct.asm >> +++ b/libavcodec/x86/hevc_idct.asm >> @@ -74,34 +286,578 @@ cglobal hevc_idct_%1x%1

  1   2   3   4   >