[libav-devel] [PATCH v3] utvideoenc: Enable support for multiple slices and use them

2014-02-14 Thread Jan Ekström
The official Ut Video decoder only threads with slices, thus until now any files encoded by the libavcodec encoder have only been decodable with a single thread. The default slice count is now set to subsampled_height / 120. Also sets slices to 1 for the Ut Video encoder tests to keep them green.

[libav-devel] [PATCH] utvideoenc: Enable support for multiple slices and use them

2014-02-13 Thread Jan Ekström
The official Ut Video encoder only threads with slices, thus until now any files encoded by the libavcodec encoder have only been decode'able with a single thread. The default slice count is now set to subsampled_height / 120. Also sets slices to 1 for the Ut Video encoder tests to keep them

[libav-devel] [PATCH v2] utvideoenc: Enable support for multiple slices and use them

2014-02-13 Thread Jan Ekström
The official Ut Video decoder only threads with slices, thus until now any files encoded by the libavcodec encoder have only been decodable with a single thread. The default slice count is now set to subsampled_height / 120. Also sets slices to 1 for the Ut Video encoder tests to keep them green.

[libav-devel] [PATCH] utvideoenc: Add support for the new BT.709 FourCCs for YCbCr

2014-02-02 Thread Jan Ekström
With cli usage the decoder might have not set the colorspace during encoder init, manual colorspace override might be needed in such cases. --- libavcodec/utvideoenc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c

[libav-devel] [PATCH] atrac3plus: Make initialization dependant on channel count rather than channel map

2014-01-30 Thread Jan Ekström
Makes it easier to recreate an AVCodecContext for ATRAC3+ decoding, which is needed in multimedia frameworks, as well as in general cases where demuxing and decoding are separate entities. --- libavcodec/atrac3plusdec.c | 28 ++-- 1 file changed, 18 insertions(+), 10

[libav-devel] [PATCH v2] lavc: Add colorimetry values for BT.2020, other non-included ones

2013-11-04 Thread Jan Ekström
--- doc/APIchanges |4 libavcodec/avcodec.h | 42 +++--- libavcodec/version.h |2 +- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 561c828..519709e 100644 --- a/doc/APIchanges +++

[libav-devel] [PATCH v4] aacdec: Set the profile during decoding

2013-11-03 Thread Jan Ekström
From: Gian-Carlo Pascutto g...@sjeng.org Previously the profile would not be set if the bitstream needs to be decoded to know the profile. --- libavcodec/aacdec.c | 10 ++ libavcodec/aacsbr.c |1 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/libavcodec/aacdec.c

[libav-devel] [PATCH 2/2] hevc: Use parsed VUI colorimetry in avcodec

2013-11-03 Thread Jan Ekström
--- libavcodec/hevc.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 276f3fd..09bc4eb 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -401,6 +401,16 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps)

[libav-devel] HEVC colorimetry related changes

2013-11-03 Thread Jan Ekström
Mostly based on how the H.264 decoder works. First one limits the parsed VUI values to known valid ones, and the second one passes the parsed values to libavcodec's according fields. ___ libav-devel mailing list libav-devel@libav.org

[libav-devel] [PATCH] lavc: Add colorimetry values for BT.2020, other non-included ones

2013-11-03 Thread Jan Ekström
--- doc/APIchanges |4 libavcodec/avcodec.h | 42 +++--- libavcodec/version.h |2 +- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 561c828..519709e 100644 --- a/doc/APIchanges +++

[libav-devel] [PATCH] hevc: Use parsed VUI colorimetry in avcodec

2013-11-03 Thread Jan Ekström
Also limit the parsed VUI values to known valid ones. --- libavcodec/hevc.c| 16 libavcodec/hevc_ps.c |8 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 276f3fd..e01db16 100644 --- a/libavcodec/hevc.c

[libav-devel] [PATCH] aacdec: Set the profile during decoding

2013-11-02 Thread Jan Ekström
From: Gian-Carlo Pascutto g...@sjeng.org Removes some cases where the profile might be not be set if it is needed to decode some data to be sure of the profile. --- libavcodec/aacdec.c | 10 ++ libavcodec/aacsbr.c |1 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git

[libav-devel] [PATCH v2] aacdec: Set the profile during decoding

2013-11-02 Thread Jan Ekström
From: Gian-Carlo Pascutto g...@sjeng.org Removes some cases where the profile might be not be set if it is needed to decode some data to be sure of the profile. --- libavcodec/aacdec.c | 13 + libavcodec/aacsbr.c |1 + 2 files changed, 14 insertions(+), 0 deletions(-) diff

[libav-devel] [PATCH v3] aacdec: Set the profile during decoding

2013-11-02 Thread Jan Ekström
From: Gian-Carlo Pascutto g...@sjeng.org Removes some cases where the profile might be not be set if it is needed to decode some data to be sure of the profile. --- libavcodec/aacdec.c | 24 libavcodec/aacsbr.c |1 + 2 files changed, 25 insertions(+), 0

[libav-devel] [PATCH 1/7] utvideoenc: optimize and simplify mangle_rgb_planes

2012-08-25 Thread Jan Ekström
From: Michael Niedermayer michae...@gmx.at Signed-off-by: Michael Niedermayer michae...@gmx.at --- libavcodec/utvideoenc.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index 4a82046..562113f 100644 ---

[libav-devel] [PATCH 2/7] huffman/huffyuv: Move huffman length gen to common huffman.c/h

2012-08-25 Thread Jan Ekström
From: Michael Niedermayer michae...@gmx.at Loren had already created an optimized algorithm, and it is now also needed by Ut Video. This enables its usage generally. Signed-off-by: Michael Niedermayer michae...@gmx.at --- configure|2 + libavcodec/Makefile |4 +-

[libav-devel] [PATCH 5/7] utvideoenc: Drop the step variable

2012-08-25 Thread Jan Ekström
From: Michael Niedermayer michae...@gmx.at Signed-off-by: Michael Niedermayer michae...@gmx.at --- libavcodec/utvideoenc.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index

[libav-devel] [PATCH 4/7] utvideoenc: Avoid writing into the input picture

2012-08-25 Thread Jan Ekström
From: Michael Niedermayer michae...@gmx.at Signed-off-by: Michael Niedermayer michae...@gmx.at --- libavcodec/utvideo.h|2 +- libavcodec/utvideoenc.c | 61 ++ 2 files changed, 41 insertions(+), 22 deletions(-) diff --git

[libav-devel] [PATCH 6/7] utvideoenc: Align the mangled buffer.

2012-08-25 Thread Jan Ekström
From: Michael Niedermayer michae...@gmx.at This is essential for fast SIMD access. The same should be done with the prediction output. Signed-off-by: Michael Niedermayer michae...@gmx.at --- libavcodec/utvideo.h|1 + libavcodec/utvideoenc.c | 18 ++ 2 files changed, 11

[libav-devel] [PATCH 7/7] utvideoenc: Switch to dsputil's median prediction

2012-08-25 Thread Jan Ekström
From: Michael Niedermayer michae...@gmx.at Signed-off-by: Michael Niedermayer michae...@gmx.at --- libavcodec/utvideoenc.c | 28 +++- 1 files changed, 7 insertions(+), 21 deletions(-) diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index d2f32bf..ae87bac

[libav-devel] [PATCH v3] fate: Add a single symbol Ut Video decoder test

2012-08-24 Thread Jan Ekström
--- tests/fate/utvideo.mak|3 +++ tests/ref/fate/utvideo_rgba_single_symbol |2 ++ 2 files changed, 5 insertions(+), 0 deletions(-) create mode 100644 tests/ref/fate/utvideo_rgba_single_symbol diff --git a/tests/fate/utvideo.mak b/tests/fate/utvideo.mak index

[libav-devel] [PATCH] utvideodec: Fix single symbol mode decoding

2012-08-23 Thread Jan Ekström
Put the zero length check in place of code that was never used during decoding, as zero-length slices were generally refused in decode_frame(). --- libavcodec/utvideodec.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/libavcodec/utvideodec.c

Re: [libav-devel] [PATCH] utvideodec: Fix single symbol mode decoding

2012-08-23 Thread Jan Ekström
On 2012/08/23 20:43, Kostya Shishkov wrote: On Thu, Aug 23, 2012 at 08:35:51PM +0300, Jan Ekström wrote: +av_log(c-avctx, AV_LOG_ERROR, Incorrect slice size. Plane has + more than one symbol yet a slice has a length of zero.\n); First sentence is unneeded

[libav-devel] [PATCH v2] utvideodec: Fix single symbol mode decoding

2012-08-23 Thread Jan Ekström
Put the zero length check in place of code that was never used during decoding, as zero-length slices were generally refused in decode_frame(). --- libavcodec/utvideodec.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/libavcodec/utvideodec.c

Re: [libav-devel] [PATCH v2] utvideodec: Fix single symbol mode decoding

2012-08-23 Thread Jan Ekström
On 2012/08/23 23:35, Derek Buitenhuis wrote: On 23/08/2012 4:32 PM, Jan Ekström wrote: Put the zero length check in place of code that was never used during decoding, as zero-length slices were generally refused in decode_frame(). --- libavcodec/utvideodec.c | 11 --- 1 files

[libav-devel] [PATCH] fate: Add a single symbol Ut Video decoder test

2012-08-23 Thread Jan Ekström
--- tests/fate/utvideo.mak|3 ++ tests/ref/fate/utvideo_rgba_single_symbol | 51 + 2 files changed, 54 insertions(+), 0 deletions(-) create mode 100644 tests/ref/fate/utvideo_rgba_single_symbol diff --git a/tests/fate/utvideo.mak

Re: [libav-devel] [PATCH] fate: Add a single symbol Ut Video decoder test

2012-08-23 Thread Jan Ekström
On 2012/08/24 0:37, Måns Rullgård wrote: Jan Ekström jee...@gmail.com writes: ... Since all the frames are the same, a shorter file would suffice. OK. It's just 60 kilobytes but I guess I'll cut it to three frames or so. Jan ___ libav-devel

[libav-devel] [PATCH] fate: Add a single symbol Ut Video decoder test

2012-08-23 Thread Jan Ekström
--- tests/fate/utvideo.mak|3 +++ tests/ref/fate/utvideo_rgba_single_symbol |4 2 files changed, 7 insertions(+), 0 deletions(-) create mode 100644 tests/ref/fate/utvideo_rgba_single_symbol diff --git a/tests/fate/utvideo.mak b/tests/fate/utvideo.mak index

Re: [libav-devel] [PATCH] fate: Add a single symbol Ut Video decoder test

2012-08-23 Thread Jan Ekström
On 2012/08/24 0:57, Jan Ekström wrote: ... Whoops. This is v2, and I'm clearly getting too tired for my own good. Jan ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH] fate: Add a single symbol Ut Video decoder test

2012-08-23 Thread Jan Ekström
On 2012/08/24 0:57, Jan Ekström wrote: ... As IRC didn't point out where to send/push the actual test file to, I will link it here: http://fushizen.eu/samples/utvideo/utvideo_rgba_single_symbol.avi md5sum 98613067be9291b4ffd8e2aa0c941fc6 Jan

[libav-devel] [PATCH] fate: Fix a memleak in Ut Video tests by removing a double format

2012-08-22 Thread Jan Ekström
A -f avi was left over from the old file hashing test base. This should fix the failing tests on the valgrinding fate machines. --- tests/fate/utvideo.mak |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/fate/utvideo.mak b/tests/fate/utvideo.mak index

[libav-devel] [PATCH 1/2 v6] Ut Video encoder

2012-08-20 Thread Jan Ekström
@@ -0,0 +1,735 @@ +/* + * Ut Video encoder + * Copyright (c) 2012 Jan Ekström + * + * 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

[libav-devel] [PATCH] fate: make Ut Video encoder tests use bitexact swscale flags

2012-08-20 Thread Jan Ekström
The failures on various architectures and compilers on the RGB(A) tests seem to have been because of one-off YCbCr-RGB conversion results. This should make the conversion results match on most if not all code paths. --- tests/fate/utvideo.mak|2 +-

Re: [libav-devel] [PATCH 2/2 v3] fate: Add FATE tests for the Ut Video encoder

2012-08-19 Thread Jan Ekström
On 2012/08/19 19:14, Diego Biurrun wrote: On Sat, Aug 18, 2012 at 04:46:40PM +0300, Jan Ekström wrote: --- a/tests/fate/utvideo.mak +++ b/tests/fate/utvideo.mak @@ -1,3 +1,6 @@ +fate-utvideoenc%: CMD = framemd5 -f image2 -vcodec pgmyuv -i $(TARGET_PATH)/tests/vsynth1/%02d.pgm -vcodec

[libav-devel] [PATCH 2/2 v4] fate: Add FATE tests for the Ut Video encoder

2012-08-19 Thread Jan Ekström
--- tests/fate/utvideo.mak | 39 +++ tests/ref/fate/utvideoenc_rgb_left | 51 +++ tests/ref/fate/utvideoenc_rgb_median| 51 +++ tests/ref/fate/utvideoenc_rgb_none | 51

[libav-devel] [PATCH 2/2 v5] fate: Add FATE tests for the Ut Video encoder

2012-08-19 Thread Jan Ekström
--- tests/fate/utvideo.mak | 42 + tests/ref/fate/utvideoenc_rgb_left | 51 +++ tests/ref/fate/utvideoenc_rgb_median| 51 +++ tests/ref/fate/utvideoenc_rgb_none | 51

[libav-devel] [PATCH 2/2 v2] fate: Add FATE tests for the Ut Video encoder

2012-08-18 Thread Jan Ekström
--- tests/fate/utvideo.mak | 50 ++ tests/ref/fate/utvideoenc_rgb_left | 51 +++ tests/ref/fate/utvideoenc_rgb_median| 51 +++ tests/ref/fate/utvideoenc_rgb_none | 51

Re: [libav-devel] [PATCH 2/2 v2] fate: Add FATE tests for the Ut Video encoder

2012-08-18 Thread Jan Ekström
On 2012/08/18 16:20, Måns Rullgård wrote: Better way: fate-utvideoenc%: CMD = framemd5 -f image2 -vcodec pgmyuv -i $(TARGET_PATH)/tests/vsynth1/%02d.pgm -flags +bitexact -vcodec utvideo -f avi $(OPTS) fate-utvideoenc%: tests/vsynth1/00.pgm fate-utvideoenc_rgba_none: OPTS = -pix_fmt rgba

[libav-devel] [PATCH 2/2 v3] fate: Add FATE tests for the Ut Video encoder

2012-08-18 Thread Jan Ekström
--- tests/fate/utvideo.mak | 39 +++ tests/ref/fate/utvideoenc_rgb_left | 51 +++ tests/ref/fate/utvideoenc_rgb_median| 51 +++ tests/ref/fate/utvideoenc_rgb_none | 51

[libav-devel] [PATCH] utvideo: Rename utvideo.c to utvideodec.c

2012-08-17 Thread Jan Ekström
--- libavcodec/Makefile|2 +- libavcodec/{utvideo.c = utvideodec.c} |0 2 files changed, 1 insertions(+), 1 deletions(-) rename libavcodec/{utvideo.c = utvideodec.c} (100%) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index aaafa03..51a45bd 100644 ---

[libav-devel] [PATCH 2/3] Ut Video encoder

2012-08-17 Thread Jan Ekström
/utvideoenc.c new file mode 100644 index 000..8a80edb --- /dev/null +++ b/libavcodec/utvideoenc.c @@ -0,0 +1,735 @@ +/* + * Ut Video encoder + * Copyright (c) 2012 Jan Ekström + * + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * modify it under

Re: [libav-devel] [PATCH 2/3] Ut Video encoder

2012-08-17 Thread Jan Ekström
On 2012/08/17 14:39, Jan Ekström wrote: [...] Sorry for the commotion, forgot to save the patch in editor, this is 1/2 v4. Patch itself is correct. Jan ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav

[libav-devel] [PATCH 1/2 v5] Ut Video encoder

2012-08-17 Thread Jan Ekström
@@ -0,0 +1,735 @@ +/* + * Ut Video encoder + * Copyright (c) 2012 Jan Ekström + * + * 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

[libav-devel] utvideo: Ut Video encoder

2012-08-16 Thread Jan Ekström
These patches contain both a Ut Video encoder that creates files that the official reference implementation likes, and that in most cases decode just fine on the libavcodec decoder as well (more on this later*), as well as FATE tests for the encoder. All colorspaces are supported (4:2:0/4:2:2

[libav-devel] [PATCH 1/2] utvideo: Ut Video encoder

2012-08-16 Thread Jan Ekström
000..29945db --- /dev/null +++ b/libavcodec/utvideoenc.c @@ -0,0 +1,748 @@ +/* + * Ut Video encoder + * Copyright (c) 2012 Jan Ekström + * + * 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

[libav-devel] [PATCH 2/2] fate: Add FATE tests for the Ut Video encoder

2012-08-16 Thread Jan Ekström
--- tests/fate/utvideo.mak | 48 +++ tests/ref/fate/utvideoenc_rgb_left |1 + tests/ref/fate/utvideoenc_rgb_median|1 + tests/ref/fate/utvideoenc_rgb_none |1 + tests/ref/fate/utvideoenc_rgba_left |1 +

[libav-devel] [PATCH 1/2 v2] Ut Video encoder

2012-08-16 Thread Jan Ekström
@@ -0,0 +1,736 @@ +/* + * Ut Video encoder + * Copyright (c) 2012 Jan Ekström + * + * 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

Re: [libav-devel] [PATCH] w32pthreads: Add missing #includes to make header compile standalone

2012-08-14 Thread Jan Ekström
On 2012/08/15 0:21, Diego Biurrun wrote: --- libavcodec/w32pthreads.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libavcodec/w32pthreads.h b/libavcodec/w32pthreads.h index ae6ceb9..8489f71 100644 --- a/libavcodec/w32pthreads.h +++ b/libavcodec/w32pthreads.h @@

[libav-devel] [PATCH] libx264: support aspect ratio switching

2012-07-08 Thread Jan Ekström
From: JULIAN GARDNER joo...@btinternet.com --- libavcodec/libx264.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 35c0030..adda881 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -148,6 +148,12 @@

[libav-devel] [PATCH 1/2] utvideo: Fix interlaced prediction for RGB utvideo.

2012-06-21 Thread Jan Ekström
From: Carl Eugen Hoyos ceho...@ag.or.at --- libavcodec/utvideo.c | 15 +++ 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c index a3b0d7c..e5efa4a 100644 --- a/libavcodec/utvideo.c +++ b/libavcodec/utvideo.c @@ -439,10

[libav-devel] [PATCH 2/2] utvideo: mark interlaced frames as such

2012-06-21 Thread Jan Ekström
From: Hendrik Leppkes h.lepp...@gmail.com Signed-off-by: Michael Niedermayer michae...@gmx.at --- libavcodec/utvideo.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c index e5efa4a..471d85a 100644 --- a/libavcodec/utvideo.c

[libav-devel] Two small utvideo patches

2012-06-21 Thread Jan Ekström
Two fixes for the utvideo decoder, both regarding interlaced footage. ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH] utvideo: general cosmetics

2012-04-20 Thread Jan Ekström
General cosmetics, such as keeping lines under 80 characters, fixing a couple of typos (predition - prediction) and a general style fix that was pointed out by Derek when I was having my sliced multithreading patch in review by him. --- libavcodec/utvideo.c | 103

[libav-devel] [PATCH] utvideo: general cosmetics

2012-04-20 Thread Jan Ekström
General cosmetics, such as keeping lines under 80 characters, fixing a couple of typos (predition - prediction) and a general style fix that was pointed out by Derek when I was having my sliced multithreading patch in review by him. --- libavcodec/utvideo.c | 103

[libav-devel] [PATCH] utvideo: general cosmetics

2012-04-20 Thread Jan Ekström
General cosmetics, such as keeping lines under 80 characters, fixing a couple of typos (predition - prediction) and a general style fix that was pointed out by Derek when I was having my sliced multithreading patch in review by him. --- libavcodec/utvideo.c | 100

[libav-devel] [PATCH] utvideo: Implement and switch to slice-based multithreading.

2012-04-18 Thread Jan Ekström
This patch is a GSoC qualification task of mine, which was to implement slice-based multithreading for the Ut Video lossless video format. Unfortunately, having had this patch tested speed-wise by Kostya Shishkov, it seems like slice-based multithreading ends up slower than frame-based, and thus

Re: [libav-devel] [PATCH 7/7] aacdec: only overwrite configuration if theres a actual change

2011-10-21 Thread Jan Ekström
. Thank you for devoting the time to taking a look at these patches. Jan Ekström ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 6/7] aacdec: support chan config =1 stereo files

2011-10-21 Thread Jan Ekström
Fixes such samples as http://www.cccp-project.net/beta/test_files/gg_moshidora01_sample.mkv Worked with faad2 because it seemingly decides to jump bytes? Jan Ekström ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman

Re: [libav-devel] [PATCH] Ut Video decoder

2011-10-17 Thread Jan Ekström
this so quickly. Jan Ekström ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel