[FFmpeg-devel] [PATCH] alpha/pixblockdsp: move code out of dsputil

2014-07-09 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- Untested like previous Alpha patches. libavcodec/alpha/Makefile| 1 + libavcodec/alpha/dsputil_alpha.c | 5 --- libavcodec/alpha/dsputil_alpha.h | 4 -- libavcodec/alpha/motion_est_alpha.c | 45

Re: [FFmpeg-devel] [PATCH] Add a release note for 2.3

2014-07-12 Thread James Almer
On 12/07/14 7:51 PM, Timothy Gu wrote: On Sat, Jul 12, 2014 at 3:08 AM, Clément Bœsch u...@pkh.me wrote: On Fri, Jul 11, 2014 at 09:08:40PM -0700, Timothy Gu wrote: Based on a patch by Clément Bœsch u...@pkh.me. Signed-off-by: Timothy Gu timothyg...@gmail.com --- So, I rebased Clément's

Re: [FFmpeg-devel] [PATCH] Move old Changelog entries to doc/Changelog.old

2014-07-15 Thread James Almer
On 15/07/14 6:52 PM, Michael Niedermayer wrote: On Sun, Jul 13, 2014 at 07:15:04PM -0700, Timothy Gu wrote: Signed-off-by: Timothy Gu timothyg...@gmail.com --- Here is the right patch... Changelog | 1264 - doc/Changelog.old |

[FFmpeg-devel] [PATCH] diracdec: remove unused dsputil context

2014-07-15 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/diracdec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index d1c3758..a18c867 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c @@ -27,7 +27,6 @@ */ #include

[FFmpeg-devel] [PATCH] diracdec: don't call ff_emulated_edge_mc_8 directly

2014-07-15 Thread James Almer
Use the videodsp function pointer instead. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/diracdec.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index a18c867..30e6138 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 1/2] alpha/idctdsp: move disabled cruft out of dsputil

2014-07-17 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/alpha/dsputil_alpha.c | 72 libavcodec/alpha/idctdsp_alpha.c | 72 2 files changed, 72 insertions(+), 72 deletions(-) diff --git a/libavcodec/alpha

[FFmpeg-devel] [PATCH 2/2] alpha/me_cmp: move code out of dsputil

2014-07-17 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- Untested. libavcodec/alpha/Makefile | 5 ++- libavcodec/alpha/dsputil_alpha.c | 40 -- libavcodec/alpha/dsputil_alpha.h | 32 - .../alpha

[FFmpeg-devel] [PATCH 2/2] x86/hevc_deblock: load less data in hevc_h_loop_filter_luma_8

2014-07-28 Thread James Almer
Reading 8 bytes is enough. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_deblock.asm | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm index f7cd031..ecebd36 100644

[FFmpeg-devel] [PATCH] x86/hevc_deblock: use psignw instead of pmullw where possible

2014-07-28 Thread James Almer
It's slightly faster Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_deblock.asm | 8 1 file changed, 8 insertions(+) diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm index f7cd031..7d67a07 100644 --- a/libavcodec/x86/hevc_deblock.asm

Re: [FFmpeg-devel] [PATCH] x86/hevc_deblock: add ff_hevc_[hv]_loop_filter_luma_{8, 10}_sse2

2014-07-28 Thread James Almer
On 13/07/14 8:39 AM, Kieran Kunhya wrote: On 13 July 2014 07:00, James Almer jamr...@gmail.com wrote: Signed-off-by: James Almer jamr...@gmail.com LGTM. There's the odd use of 3-operand in some of the macros. Have you benched AVX? Yes. Tested luma with an 8bit sample and it's ~%5 faster

[FFmpeg-devel] [PATCH 2/3] x86/hevc_deblock: improve luma functions register allocation

2014-07-29 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_deblock.asm | 88 - 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm index cfa7c48..d6e8806 100644

Re: [FFmpeg-devel] [PATCH] x86: hevc: adding transform_add

2014-07-30 Thread James Almer
On 30/07/14 10:33 AM, Pierre Edouard Lepere wrote: +%macro TR_ADD_INIT_SSE_8 2 +movu m4, [r1] +movu m6, [r1+16] +movu m8, [r1+32] +movu m10, [r1+48] You can use mova here, and probably in every other movu as well. +lea

Re: [FFmpeg-devel] [PATCH 1/5] avutil: add pixelutils API

2014-08-02 Thread James Almer
On 02/08/14 3:20 PM, Clément Bœsch wrote: +psrlq m0, m6, 32 +paddw m6, m0 +psrlq m0, m6, 16 +paddw m6, m0 +movdeax, m6 +movzx eax, ax You could use the HADDW macro here.

Re: [FFmpeg-devel] [PATCH 1/5] avutil: add pixelutils API

2014-08-02 Thread James Almer
On 02/08/14 6:13 PM, Clément Bœsch wrote: On Sat, Aug 02, 2014 at 04:29:39PM -0300, James Almer wrote: On 02/08/14 3:20 PM, Clément Bœsch wrote: +psrlq m0, m6, 32 +paddw m6, m0 +psrlq m0, m6, 16 +paddw m6, m0 +movdeax, m6 +movzx

[FFmpeg-devel] [PATCH 1/3] x86/hevc_mc: remove an unnecessary pxor

2014-08-03 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_mc.asm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/x86/hevc_mc.asm b/libavcodec/x86/hevc_mc.asm index fc78062..a16b0ab 100644 --- a/libavcodec/x86/hevc_mc.asm +++ b/libavcodec/x86/hevc_mc.asm

[FFmpeg-devel] [PATCH 3/3] x86/vp9lpf: use fewer instructions in SPLATB_MIX

2014-08-03 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/vp9lpf.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavcodec/x86/vp9lpf.asm b/libavcodec/x86/vp9lpf.asm index c5db0ca..def7d5a 100644 --- a/libavcodec/x86/vp9lpf.asm +++ b/libavcodec/x86/vp9lpf.asm

[FFmpeg-devel] [PATCH] x86/hevc_mc: use fewer instructions in hevc_put_hevc_{uni, bi}_w[24]_{8, 10, 12}

2014-08-03 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_mc.asm | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/libavcodec/x86/hevc_mc.asm b/libavcodec/x86/hevc_mc.asm index fc78062..3ef0149 100644 --- a/libavcodec/x86

Re: [FFmpeg-devel] [PATCH] tests/fate/libavutil: switch cpu-test back to runecho so its results are vissible

2014-08-05 Thread James Almer
On 05/08/14 8:17 PM, Michael Niedermayer wrote: (needs next commt too) Signed-off-by: Michael Niedermayer michae...@gmx.at --- tests/fate/libavutil.mak |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fate/libavutil.mak b/tests/fate/libavutil.mak index

[FFmpeg-devel] [PATCH] lavf/mpegts: rename ff_mpegts_parse_*() to avpriv_mpegts_parse_*()

2014-08-06 Thread James Almer
The were wrongly being exported and used by libavdevice Signed-off-by: James Almer jamr...@gmail.com --- libavdevice/iec61883.c | 8 libavformat/mpegts.c| 26 ++ libavformat/mpegts.h| 7 +++ libavformat/rtpdec_mpegts.c | 12

[FFmpeg-devel] [PATCH] avcodec/raw: add avpriv_get_raw_pix_fmt_tags()

2014-08-06 Thread James Almer
Used to expose ff_raw_pix_fmt_tags[] to other libav* libraries Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/raw.c| 5 + libavcodec/raw.h| 6 ++ libavdevice/dshow.c | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/libavcodec/raw.c b/libavcodec

[FFmpeg-devel] [PATCH] lavd/dshow: use av_codec_get_id()

2014-08-06 Thread James Almer
ff_codec_get_id() is a lavf internal function Signed-off-by: James Almer jamr...@gmail.com --- libavdevice/dshow.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index adf36a7..cd509fc 100644 --- a/libavdevice/dshow.c +++ b

[FFmpeg-devel] [PATCH 1/2] lavc: remove nonexistent functions from the version file

2014-08-06 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- The rest should *really* be removed on the next bump libavcodec/libavcodec.v | 7 --- 1 file changed, 7 deletions(-) diff --git a/libavcodec/libavcodec.v b/libavcodec/libavcodec.v index 76e29f2..be74cb3 100644 --- a/libavcodec/libavcodec.v

[FFmpeg-devel] [PATCH 2/2] lavf: remove nonexistent functions from the version file

2014-08-06 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- The rest (at least those not used by ffprobe/ffplay/ffmpeg) should *really* be removed on the next bump libavformat/libavformat.v | 11 --- 1 file changed, 11 deletions(-) diff --git a/libavformat/libavformat.v b/libavformat

[FFmpeg-devel] [PATCH 1/2] lavc/raw: remove obsolete ff_raw_pix_fmt_tags cruft

2014-08-09 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/raw.h | 4 1 file changed, 4 deletions(-) diff --git a/libavcodec/raw.h b/libavcodec/raw.h index a79b851..24bf4cc 100644 --- a/libavcodec/raw.h +++ b/libavcodec/raw.h @@ -35,11 +35,7 @@ typedef struct PixelFormatTag { unsigned

[FFmpeg-devel] [PATCH 2/2] lavf/mpegts: remove obsolete ff_mpegts_parse_* cruft

2014-08-09 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavformat/mpegts.c | 18 -- libavformat/mpegts.h | 7 --- 2 files changed, 25 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index a2456a3..d2a2531 100644 --- a/libavformat/mpegts.c +++ b/libavformat

[FFmpeg-devel] [PATCH] x86/dca: remove unused header

2014-08-09 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/dca.h | 60 1 file changed, 60 deletions(-) delete mode 100644 libavcodec/x86/dca.h diff --git a/libavcodec/x86/dca.h b/libavcodec/x86/dca.h deleted file mode 100644 index

Re: [FFmpeg-devel] [PATCH 1/4] lavc: stop exporting internal functions and tables

2014-08-10 Thread James Almer
On 09/08/14 9:04 PM, James Almer wrote: Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/libavcodec.v | 18 -- 1 file changed, 18 deletions(-) diff --git a/libavcodec/libavcodec.v b/libavcodec/libavcodec.v index be74cb3..c923cd3 100644 --- a/libavcodec

Re: [FFmpeg-devel] [FFmpeg-cvslog] lavf: stop exporting internal functions

2014-08-11 Thread James Almer
ffmpeg | branch: master | James Almer jamrial at gmail.com | Sat Aug 9 21:04:33 2014 -0300| [7b3de03c8fa7c7a49522b45dc90f9970417554b4] | committer: Michael Niedermayer lavf: stop exporting internal functions Except for those currently used by ffserver. Signed-off-by: James Almer

Re: [FFmpeg-devel] [PATCH 4/4] lavu: stop exporting internal functions

2014-08-11 Thread James Almer
On 11/08/14 3:39 PM, Andreas Cadhalpun wrote: On 10.08.2014 02:04, James Almer wrote: Signed-off-by: James Almer jamr...@gmail.com --- libavutil/libavutil.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/libavutil.v b/libavutil/libavutil.v index eb16ae1

[FFmpeg-devel] [PATCH] lavu: rename ff_opencl_set_parameter() to avpriv_opencl_set_parameter()

2014-08-11 Thread James Almer
It was wrongly being exported and used by libavfilter. Signed-off-by: James Almer jamr...@gmail.com --- libavfilter/deshake_opencl.c | 4 ++-- libavfilter/unsharp_opencl.c | 6 +++--- libavutil/opencl_internal.c | 2 +- libavutil/opencl_internal.h | 2 +- 4 files changed, 7 insertions(+), 7

Re: [FFmpeg-devel] [PATCH] lavu: rename ff_opencl_set_parameter() to avpriv_opencl_set_parameter()

2014-08-11 Thread James Almer
On 11/08/14 5:31 PM, Michael Niedermayer wrote: On Mon, Aug 11, 2014 at 04:35:39PM -0300, James Almer wrote: It was wrongly being exported and used by libavfilter. Signed-off-by: James Almer jamr...@gmail.com --- libavfilter/deshake_opencl.c | 4 ++-- libavfilter/unsharp_opencl.c | 6

[FFmpeg-devel] [PATCH] lsws: duplicate ff_log2_tab

2014-08-12 Thread James Almer
libswscale uses the table but wasn't duplicating it like the rest of the libs. This should fix compilation failures on msvc/icl after lavu stopped exporting internal functions and tables. Signed-off-by: James Almer jamr...@gmail.com --- libswscale/Makefile | 2 ++ libswscale/log2_tab.c | 1

[FFmpeg-devel] [PATCH] avcodec/idctdsp: make add/put_pixels_clamped_c internal functions

2014-08-12 Thread James Almer
This reduces code duplication and differences with the fork. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/idctdsp.c | 49 + libavcodec/idctdsp.h | 46 +- libavcodec/xvididct.c | 4

[FFmpeg-devel] [PATCH] lavfi: duplicate ff_log2_tab

2014-08-12 Thread James Almer
Fixes compilation failures on msvc/icl shared builds Signed-off-by: James Almer jamr...@gmail.com --- libavfilter/Makefile | 1 + libavfilter/log2_tab.c | 1 + 2 files changed, 2 insertions(+) create mode 100644 libavfilter/log2_tab.c diff --git a/libavfilter/Makefile b/libavfilter/Makefile

Re: [FFmpeg-devel] [PATCH] configure: disallow OpenCL with shared libs

2014-08-12 Thread James Almer
On 11/08/14 11:33 PM, Michael Niedermayer wrote: Its API is marked as experimental, we should not export experimental API from shared libs Signed-off-by: Michael Niedermayer michae...@gmx.at --- configure |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [FFmpeg-devel] [PATCH] vp9: ignore reference segmentation map if error_resilience flag is set.

2014-08-13 Thread James Almer
On 13/08/14 1:52 PM, Reimar Döffinger wrote: On 13.08.2014, at 12:48, Ronald S. Bultje rsbul...@gmail.com wrote: Might it be useful to add some of those special samples to fate? Probably. The first 10 frames of the sample in this ticket would show this already, is anyone good with webm

[FFmpeg-devel] [PATCH] lavf/wavdec: add sanity check for AVCodecContext.channels

2014-08-18 Thread James Almer
Fixes ticket #3862. As a side effect, this also fixes aac_latm in wav. Signed-off-by: James Almer jamr...@gmail.com --- Maybe a check for channels = 0 should be also added to ff_get_wav_header() right after the sample_rate one? libavformat/wavdec.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [FFmpeg-devel] [PATCH] x86: hevc: adding transform_add

2014-08-18 Thread James Almer
On 18/08/14 5:01 AM, Pierre Edouard Lepere wrote: Hi, here's the new version of the patch. Sorry for the delay. James, I have not done 8-bit AVX versions because it requires unpacks that are done differently in AVX. Aren't you thinking of AVX2 with 256bits wide registers? With AVX i mean an

Re: [FFmpeg-devel] [PATCH] lavf/tiff: add support for YUV deflate

2014-08-19 Thread James Almer
On 19/08/14 7:07 AM, Michael Niedermayer wrote: is photometric guranteed to match the pix_fmt ? iam asking as i dont see that being ensured by the code but i might be missing something if they could mismatch, id assume it might crash TIFF_PHOTOMETRIC_YCBCR seems to simply be a flag to signal

[FFmpeg-devel] [PATCH 1/2] lavc/tiff: move unpack_yuv() above the deflate functions

2014-08-19 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/tiff.c | 57 +++ 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index d5c03e8..980aaf1 100644 --- a/libavcodec/tiff.c +++ b

[FFmpeg-devel] [PATCH 2/2] lavc/tiff: add support for YUV deflate

2014-08-19 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/tiff.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 980aaf1..2bb7c90 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -333,9 +333,9 @@ static

Re: [FFmpeg-devel] [PATCH 2/2] lavc/tiff: add support for YUV deflate

2014-08-19 Thread James Almer
On 19/08/14 6:35 PM, Michael Niedermayer wrote: On Tue, Aug 19, 2014 at 05:35:15PM -0300, James Almer wrote: Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/tiff.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) both patches should be ok Pushed, thanks

[FFmpeg-devel] [PATCH] x86/hecv_res_add: add ff_hevc_transform_add{8, 16, 32}_8_avx

2014-08-19 Thread James Almer
~15% faster than sse2 Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_res_add.asm | 15 +++ libavcodec/x86/hevcdsp.h| 4 libavcodec/x86/hevcdsp_init.c | 4 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/libavcodec/x86

Re: [FFmpeg-devel] [PATCH] x86/hecv_res_add: add ff_hevc_transform_add{8, 16, 32}_8_avx

2014-08-20 Thread James Almer
On 20/08/14 4:29 AM, Christophe Gisquet wrote: Hi, 2014-08-20 4:55 GMT+02:00 James Almer jamr...@gmail.com: ~15% faster than sse2 [...] @@ -509,7 +509,11 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) if (ARCH_X86_64) { c

Re: [FFmpeg-devel] [PATCH] x86/hecv_res_add: add ff_hevc_transform_add{8, 16, 32}_8_avx

2014-08-20 Thread James Almer
On 20/08/14 4:11 PM, Christophe Gisquet wrote: Hi, 2014-08-20 17:36 GMT+02:00 James Almer jamr...@gmail.com: Does avx = ARCH_X86_64 (didn't know) ? Otherwise the reg count seems fine, meaning the condition is unneeded. No, AVX does not imply x86_64. The reg count for these is currently 12

[FFmpeg-devel] [PATCH] x86/hevc_res_add: refactor ff_hevc_transform_add{16, 32}_8

2014-08-20 Thread James Almer
* Reduced xmm register count to 7 (As such they are now enabled for x86_32). * Removed four movdqa (affects the sse2 version only). * pxor is now used to clear m0 only once. ~5% faster. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_res_add.asm | 122

Re: [FFmpeg-devel] [PATCH] x86/hevc_res_add: refactor ff_hevc_transform_add{16, 32}_8

2014-08-21 Thread James Almer
On 21/08/14 10:03 AM, Hendrik Leppkes wrote: On Thu, Aug 21, 2014 at 12:42 AM, James Almer jamr...@gmail.com wrote: * Reduced xmm register count to 7 (As such they are now enabled for x86_32). * Removed four movdqa (affects the sse2 version only). * pxor is now used to clear m0 only once. ~5

Re: [FFmpeg-devel] [PATCH] x86/hevc_res_add: refactor ff_hevc_transform_add{16, 32}_8

2014-08-21 Thread James Almer
On 21/08/14 2:15 PM, Christophe Gisquet wrote: Hi, 2014-08-21 0:42 GMT+02:00 James Almer jamr...@gmail.com: * Reduced xmm register count to 7 (As such they are now enabled for x86_32). * Removed four movdqa (affects the sse2 version only). * pxor is now used to clear m0 only once. OK

Re: [FFmpeg-devel] [PATCH] x86/hevc_res_add: refactor ff_hevc_transform_add{16, 32}_8

2014-08-21 Thread James Almer
On 21/08/14 5:40 PM, Kieran Kunhya wrote: It does that, but on older SSE2 cpus with not-so-good OOO execution grouping instructions like this might help reduce dependencies a bit. Are any older SSE2 CPUs actually capable of decoding reasonable HEVC? Probably not (at least nothing above dvd

Re: [FFmpeg-devel] [PATCH] Adds decode support for formats other than 420

2014-08-22 Thread James Almer
On 22/08/14 5:31 PM, Deb Mukherjee wrote: Handles new VP9 profiles 1-3 with different color sampling and bit-depths. --- libavcodec/libvpxdec.c | 69 +++--- 1 file changed, 60 insertions(+), 9 deletions(-) diff --git a/libavcodec/libvpxdec.c

Re: [FFmpeg-devel] [PATCH] Adds support for setting aq_mode in libvpx encoder

2014-08-22 Thread James Almer
On 22/08/14 3:25 PM, Deb Mukherjee wrote: @@ -803,6 +807,11 @@ static const AVOption vp9_options[] = { { tile-columns,Number of tile columns to use, log2, OFFSET(tile_columns),AV_OPT_TYPE_INT, {.i64 = -1}, -1, 6, VE}, { tile-rows, Number of tile rows to use,

[FFmpeg-devel] [PATCH] lavc/tiff: add support for LZMA compression

2014-08-22 Thread James Almer
Derived from deflate code. Requires liblzma. Signed-off-by: James Almer jamr...@gmail.com --- Changelog | 1 + configure | 5 +++- libavcodec/tiff.c | 85 +-- 3 files changed, 88 insertions(+), 3 deletions(-) diff --git

Re: [FFmpeg-devel] [PATCH 0/2] x86: hevc_mc: port to SSSE3

2014-08-23 Thread James Almer
On 23/08/14 11:07 AM, Mickaël Raulet wrote: For 10bits and 12bits, they should stay sse4 as well because of packusdw. You need some instructions to convert it to ssse3 see below static av_always_inline __m128i _MM_PACKUS_EPI32( __m128i a, __m128i b ) { a = _mm_slli_epi32 (a, 16);

Re: [FFmpeg-devel] [PATCH 2/2] x86: hevc_mc: convert to ssse3

2014-08-23 Thread James Almer
On 23/08/14 10:22 AM, Christophe Gisquet wrote: The only sse4 instruction is pextrw, which is used on rather minor functions for small blocks. Therefore use whichever GPR is available to extract the output word. Before (sse4), for block_w == 6: 4627 decicycles in epel_uni, 16377 runs, 7

Re: [FFmpeg-devel] [PATCH 2/2] x86: hevc_mc: convert to ssse3

2014-08-23 Thread James Almer
On 23/08/14 12:11 PM, Christophe Gisquet wrote: Hi, 2014-08-23 16:52 GMT+02:00 James Almer jamr...@gmail.com: -QPEL_TABLE 8, 8, b, sse4 -QPEL_TABLE 10, 4, w, sse4 -QPEL_TABLE 12, 4, w, sse4 +QPEL_TABLE 8, 8, b, ssse3 +QPEL_TABLE 10, 4, w, ssse3 +QPEL_TABLE 12, 4, w, ssse3 Do

Re: [FFmpeg-devel] [PATCH 0/2] x86: hevc_mc: port to SSSE3

2014-08-23 Thread James Almer
On 23/08/14 12:15 PM, Christophe Gisquet wrote: Hi, 2014-08-23 17:01 GMT+02:00 James Almer jamr...@gmail.com: There's a PACK macro in lavfi/x86/yasm-16.asm that does this without intrinsics. You meant yadif-16, right? Timothy Oops, yes i meant that :P I expect it to be needed

Re: [FFmpeg-devel] [PATCH] lavc/tiff: add support for LZMA compression

2014-08-23 Thread James Almer
On 23/08/14 8:31 AM, Michael Niedermayer wrote: On Fri, Aug 22, 2014 at 11:39:57PM -0300, James Almer wrote: Derived from deflate code. Requires liblzma. Signed-off-by: James Almer jamr...@gmail.com how can this be tested ? do you have a testcase / sample ? libtiff can create lzma

Re: [FFmpeg-devel] [PATCH] Adds support for setting aq_mode in libvpx encoder

2014-08-25 Thread James Almer
On 25/08/14 10:39 PM, Michael Niedermayer wrote: On Mon, Aug 25, 2014 at 05:17:39PM -0700, Deb Mukherjee wrote: Sets aq_mode in the [0, 3] range for the libvpx encode wrapper. 0: none 1: variance aq 2: complexity aq 3: cyclic refresh aq --- doc/encoders.texi | 5 -

[FFmpeg-devel] [PATCH] configure: update libvpx_vp9_encoder check

2014-08-25 Thread James Almer
Required to add support for the aq_mode setting. Any libvpx snapshot prior to 1.3.0 is not recommended for vp9 encoding for that matter. Signed-off-by: James Almer jamr...@gmail.com --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index

Re: [FFmpeg-devel] [PATCH] configure: update libvpx_vp9_encoder check

2014-08-25 Thread James Almer
On 26/08/14 12:32 AM, James Zern wrote: On Mon, Aug 25, 2014 at 8:28 PM, James Almer jamr...@gmail.com wrote: Required to add support for the aq_mode setting. Any libvpx snapshot prior to 1.3.0 is not recommended for vp9 encoding for that matter. lgtm. Pushed. Thanks

Re: [FFmpeg-devel] [PATCH] tests: switch to a test image that is under public domain

2014-08-26 Thread James Almer
On 26/08/14 9:39 AM, Michael Niedermayer wrote: either way, i suggest that until we have a consensus, andreas should probably pick any of the solutions for debian so theres no delay on the debian side How is this a problem for Debian? lena.pnm is also available on Libav's git tree and it

Re: [FFmpeg-devel] [PATCH] Adds support for setting aq_mode in libvpx encoder

2014-08-26 Thread James Almer
On 25/08/14 9:17 PM, Deb Mukherjee wrote: Sets aq_mode in the [0, 3] range for the libvpx encode wrapper. 0: none 1: variance aq 2: complexity aq 3: cyclic refresh aq --- doc/encoders.texi | 5 - libavcodec/libvpxenc.c | 9 + 2 files changed, 13 insertions(+), 1

[FFmpeg-devel] [PATCH] lavf/mp3enc: don't abort if audio packets can't be buffered

2014-08-26 Thread James Almer
Instead skip the picture streams and flush the queued audio packets. Should address ticket #3851. Signed-off-by: James Almer jamr...@gmail.com --- This is more a workaround than a fix to the issue, with the intent of not aborting the entire muxing process just because a picture couldn't

[FFmpeg-devel] [PATCH] lavc/libwebpenc: use WebPMemoryWriterClear()

2014-08-26 Thread James Almer
WebPMemoryWriterClear() must be used instead of free() when libwebp ABI version is 0x0202. Signed-off-by: James Almer jamr...@gmail.com --- Untested. Latest stable libwebp release (0.4.1) is still 0x0202. libavcodec/libwebpenc.c | 4 1 file changed, 4 insertions(+) diff --git

Re: [FFmpeg-devel] [PATCH] lavc/libwebpenc: use WebPMemoryWriterClear()

2014-08-27 Thread James Almer
On 27/08/14 2:37 PM, Pascal Massimino wrote: Hi, On Wed, Aug 27, 2014 at 10:06 AM, Michael Niedermayer michae...@gmx.at wrote: On Wed, Aug 27, 2014 at 12:57:47AM -0300, James Almer wrote: WebPMemoryWriterClear() must be used instead of free() when libwebp ABI version is 0x0202

Re: [FFmpeg-devel] [PATCH] lavc/libwebpenc: use WebPMemoryWriterClear()

2014-08-27 Thread James Almer
On 27/08/14 2:55 PM, James Zern wrote: On Wed, Aug 27, 2014 at 10:49 AM, James Almer jamr...@gmail.com wrote: On 27/08/14 2:37 PM, Pascal Massimino wrote: Hi, On Wed, Aug 27, 2014 at 10:06 AM, Michael Niedermayer michae...@gmx.at wrote: On Wed, Aug 27, 2014 at 12:57:47AM -0300, James

Re: [FFmpeg-devel] [PATCH] tests: Download lena.pnm if its missing from the source tree

2014-08-27 Thread James Almer
On 26/08/14 8:41 AM, Michael Niedermayer wrote: Signed-off-by: Michael Niedermayer michae...@gmx.at --- tests/Makefile |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 07557f9..2f095df 100644 --- a/tests/Makefile +++

Re: [FFmpeg-devel] [PATCH] configure: disallow OpenCL with shared libs

2014-08-27 Thread James Almer
On 27/08/14 11:53 PM, Wei Gao wrote: 2014-08-13 9:45 GMT+08:00 Timothy Gu timothyg...@gmail.com: On Aug 12, 2014 6:43 PM, highgod0401 highgod0...@gmail.com wrote: Hi Warning is OK for me. Do you plan to change the API? Hi Sorry for the late reply, could you tell me more details?

Re: [FFmpeg-devel] [FFmpeg-cvslog] fate: Add basic tests for WebM Dash Manifest

2014-08-28 Thread James Almer
diff --git a/tests/fate/vpx.mak b/tests/fate/vpx.mak index 54be950..77c7c76 100644 --- a/tests/fate/vpx.mak +++ b/tests/fate/vpx.mak @@ -28,6 +28,15 @@ fate-vp6f: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/flash-vp6/clip10 FATE_VP8-$(call DEMDEC, FLV, VP8) += fate-vp8-alpha

Re: [FFmpeg-devel] [PATCH] Fix MSVC warnings about possible value truncation.

2014-08-29 Thread James Almer
On 29/08/14 8:26 PM, Reimar Döffinger wrote: On 30.08.2014, at 00:44, Peter Kasting pkast...@google.com wrote: Hi FFMPEG devs, please forgive any errors here as I'm normally a Chromium developer and this is my first submission to FFMPEG. The attached patch fixes instances of MSVC warning

[FFmpeg-devel] [PATCH] x86/hevc_res_add: add ff_hevc_transform_add32_8_avx2

2014-08-31 Thread James Almer
~20% faster than AVX. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_res_add.asm | 31 +++ libavcodec/x86/hevcdsp.h| 2 ++ libavcodec/x86/hevcdsp_init.c | 2 ++ 3 files changed, 31 insertions(+), 4 deletions(-) diff --git

Re: [FFmpeg-devel] [PATCH] x86/hevc_res_add: add ff_hevc_transform_add32_8_avx2

2014-09-04 Thread James Almer
On 04/09/14 5:18 PM, Michael Niedermayer wrote: On Sun, Aug 31, 2014 at 11:46:13PM -0300, James Almer wrote: ~20% faster than AVX. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/hevc_res_add.asm | 31 +++ libavcodec/x86/hevcdsp.h| 2

Re: [FFmpeg-devel] [PATCH] av_filter/x86/idet: MMX/SSE2 implementation of 16bits filter_line()

2014-09-09 Thread James Almer
On 09/09/14 9:52 AM, Pascal Massimino wrote: +mova m2, m_sum +%if mmsize == 16 +psrldqm2, 4 +paddd m_sum, m2 +psrldqm2, 4 +paddd m_sum, m2 +psrldqm2, 4 +paddd m_sum, m2 +%else +psrlq m2, 32 +paddd m_sum, m2

Re: [FFmpeg-devel] [PATCH] av_filter/x86/idet: use HADDD where appropriate

2014-09-09 Thread James Almer
On 09/09/14 5:53 PM, Pascal Massimino wrote: Hi James, as suggested. /skal Pushed. Thanks! ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH] x86/motion_est: port mmxext and sse2 sad functions to yasm

2014-09-11 Thread James Almer
Also add sse2 versions of sad16_x2, sad16_y2 and sad16_xy2, and a missing c-pix_abs[0][0] initialization. Signed-off-by: James Almer jamr...@gmail.com --- Not benched. TODO: Port mmx. libavcodec/x86/me_cmp.asm| 229 +++ libavcodec/x86/me_cmp_init.c

Re: [FFmpeg-devel] [PATCH] avcodec: remove dead dsputil compat code

2014-09-14 Thread James Almer
On 14/09/14 9:38 PM, Michael Niedermayer wrote: On Sun, Sep 14, 2014 at 08:47:11PM -0300, James Almer wrote: Signed-off-by: James Almer jamr...@gmail.com --- should be ok Pushed. Thanks. This should have been done before 2.4 was cut since the two files are pretty much bloat

[FFmpeg-devel] [PATCH 2/18] avutil: remove obsolete FF_API_GET_BITS_PER_SAMPLE_FMT cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavutil/samplefmt.c | 8 libavutil/samplefmt.h | 8 libavutil/version.h | 3 --- 3 files changed, 19 deletions(-) diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c index a198698..3d415a1 100644 --- a/libavutil

[FFmpeg-devel] [PATCH 4/18] avutil: remove obsolete FF_API_SAMPLES_UTILS_RETURN_ZERO cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavutil/samplefmt.c | 8 libavutil/version.h | 3 --- 2 files changed, 11 deletions(-) diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c index 3d415a1..c605b5e 100644 --- a/libavutil/samplefmt.c +++ b/libavutil/samplefmt.c

[FFmpeg-devel] [PATCH 5/18] avutil: remove obsolete FF_API_LLS1 cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavutil/version.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavutil/version.h b/libavutil/version.h index d6f8fe1..0e8bdc3 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -104,9 +104,6 @@ #ifndef FF_API_LLS_PRIVATE

[FFmpeg-devel] [PATCH 3/18] avutil: remove obsolete FF_API_FIND_OPT cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavutil/opt.c | 14 -- libavutil/opt.h | 19 --- libavutil/version.h | 3 --- 3 files changed, 36 deletions(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index ca4edb8..16828e2 100644 --- a/libavutil

[FFmpeg-devel] [PATCH 7/18] avutil: remove obsolete FF_API_INTFLOAT cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavutil/Makefile | 1 - libavutil/intfloat_readwrite.c | 101 - libavutil/intfloat_readwrite.h | 44 -- libavutil/version.h| 3 -- 4 files changed, 149 deletions

[FFmpeg-devel] [PATCH 08/18] avformat: remove obsolete FF_API_ALLOC_OUTPUT_CONTEXT cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavformat/avformat.h | 10 -- libavformat/mux.c | 10 -- libavformat/version.h | 3 --- 3 files changed, 23 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index b915148..1c553a1 100644

[FFmpeg-devel] [PATCH 09/18] avformat: remove obsolete FF_API_FORMAT_PARAMETERS cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavformat/avformat.h | 20 libavformat/utils.c| 7 --- libavformat/version.h | 3 --- 3 files changed, 30 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 1c553a1..43d036d 100644

[FFmpeg-devel] [PATCH 12/18] avformat: remove obsolete FF_API_CLOSE_INPUT_FILE cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavformat/avformat.h | 11 --- libavformat/utils.c| 7 --- libavformat/version.h | 3 --- 3 files changed, 21 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index d1959e9..7663c0d 100644

[FFmpeg-devel] [PATCH 13/18] avformat: remove obsolete FF_API_READ_PACKET cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavformat/avformat.h | 18 -- libavformat/utils.c| 7 --- libavformat/version.h | 3 --- 3 files changed, 28 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 7663c0d..777c47e 100644

[FFmpeg-devel] [PATCH 11/18] avformat: remove obsolete FF_API_SET_PTS_INFO cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavformat/avformat.h | 9 - libavformat/utils.c| 8 libavformat/version.h | 3 --- 3 files changed, 20 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 0a33bc1..d1959e9 100644

[FFmpeg-devel] [PATCH 15/18] avfilter: remove obsolete FF_API_BUFFERSRC_BUFFER cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavfilter/version.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavfilter/version.h b/libavfilter/version.h index 4b1a359..f46cf88 100644 --- a/libavfilter/version.h +++ b/libavfilter/version.h @@ -55,9 +55,6 @@ #ifndef

[FFmpeg-devel] [PATCH 14/18] avfilter: remove obsolete FF_API_FILL_FRAME cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavfilter/avcodec.c | 20 libavfilter/avcodec.h | 41 - libavfilter/version.h | 3 --- 3 files changed, 64 deletions(-) diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c

[FFmpeg-devel] [PATCH 16/18] avfilter: remove obsolete FF_API_ACONVERT_FILTER cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- configure | 2 - libavfilter/Makefile | 1 - libavfilter/af_aconvert.c | 196 -- libavfilter/allfilters.c | 3 - libavfilter/version.h | 3 - 5 files changed, 205

[FFmpeg-devel] [PATCH 17/18] avfilter: remove obsolete FF_API_DRAWTEXT_OLD_TIMELINE cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libavfilter/version.h | 3 --- libavfilter/vf_drawtext.c | 43 --- 2 files changed, 46 deletions(-) diff --git a/libavfilter/version.h b/libavfilter/version.h index 2509dc9..4e347c9 100644

[FFmpeg-devel] [PATCH 18/18] swscale: remove obsolete FF_API_SWS_FORMAT_NAME cruft

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- libswscale/swscale_internal.h | 8 libswscale/utils.c| 11 --- libswscale/version.h | 3 --- 3 files changed, 22 deletions(-) diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index

Re: [FFmpeg-devel] [PATCH 7/18] avutil: remove obsolete FF_API_INTFLOAT cruft

2014-09-14 Thread James Almer
On 14/09/14 11:15 PM, Michael Niedermayer wrote: On Sun, Sep 14, 2014 at 10:46:09PM -0300, James Almer wrote: Signed-off-by: James Almer jamr...@gmail.com --- libavutil/Makefile | 1 - libavutil/intfloat_readwrite.c | 101 - libavutil

[FFmpeg-devel] [PATCH] RELEASE: update to 2.4.git

2014-09-14 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- RELEASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE b/RELEASE index c6266be..5360d2e 100644 --- a/RELEASE +++ b/RELEASE @@ -1 +1 @@ -2.3.git +2.4.git -- 1.8.5.5

[FFmpeg-devel] [PATCH] x86/me_cmp: port mmxext and sse2 sad functions to yasm

2014-09-16 Thread James Almer
Also add a missing c-pix_abs[0][0] initialization, and sse2 versions of sad16_x2, sad16_y2 and sad16_xy2 (%15 to %20 faster than mmxext). Since the _xy2 versions are not bitexact, they are accordingly marked as approximate. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86

Re: [FFmpeg-devel] [FFmpeg-cvslog] x86/me_cmp: port mmxext and sse2 sad functions to yasm

2014-09-17 Thread James Almer
On 17/09/14 9:07 AM, Michael Niedermayer wrote: On Wed, Sep 17, 2014 at 01:18:12PM +0200, Clément Bœsch wrote: On Wed, Sep 17, 2014 at 11:41:32AM +0200, James Almer wrote: ffmpeg | branch: master | James Almer jamr...@gmail.com | Tue Sep 16 21:41:47 2014 -0300

Re: [FFmpeg-devel] [PATCH 14/18] avfilter: remove obsolete FF_API_FILL_FRAME cruft

2014-09-17 Thread James Almer
On 17/09/14 4:40 AM, Paul B Mahol wrote: On 9/15/14, James Almer jamr...@gmail.com wrote: Signed-off-by: James Almer jamr...@gmail.com --- libavfilter/avcodec.c | 20 libavfilter/avcodec.h | 41 - libavfilter/version.h | 3

[FFmpeg-devel] [PATCH] x86/me_cmp: combine sad functions into a single macro

2014-09-17 Thread James Almer
No point in having the sad8 functions separate now that the loop is no longer unrolled. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/me_cmp.asm | 221 +++--- 1 file changed, 93 insertions(+), 128 deletions(-) diff --git a/libavcodec

Re: [FFmpeg-devel] [PATCH] x86/me_cmp: combine sad functions into a single macro

2014-09-17 Thread James Almer
On 17/09/14 11:44 PM, Michael Niedermayer wrote: On Wed, Sep 17, 2014 at 10:15:30PM -0300, James Almer wrote: No point in having the sad8 functions separate now that the loop is no longer unrolled. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/me_cmp.asm | 221

[FFmpeg-devel] [PATCH] avcodec/dv_profile: deprecate internal function that shouldn't be public

2014-09-18 Thread James Almer
Signed-off-by: James Almer jamr...@gmail.com --- Unlike us, libav got rid of the internal symbols before the header became public on an actual relase, so we're stuck with it until next bump. I renamed the function to ff_ since it's only used outside libavcodec when called with the public symbol

[FFmpeg-devel] [PATCH] x86/me_cmp: port mmxext vsad functions to yasm

2014-09-19 Thread James Almer
Also add mmxext versions of vsad8 and vsad_intra8, and sse2 versions of vsad16 and vsad_intra16. Since vsad8 and vsad16 are not bitexact, they are accordingly marked as approximate. Signed-off-by: James Almer jamr...@gmail.com --- libavcodec/x86/me_cmp.asm| 161

  1   2   3   4   5   6   7   8   9   10   >