Jim Bankoski [Mon, 20 Aug 2012 20:04:53 +0000 (13:04 -0700)]
realtime turndown loopfilter for 00
Loop filter producing wierd artifacts when
repeatedly applied in noisy video. This
mitigates the effect.
Change-Id: If4b1a8543912d186a486f84e11d8b01f7436fa5f
Mike Frysinger [Wed, 15 Aug 2012 15:55:31 +0000 (11:55 -0400)]
Parse out arm isa targets from dumpmachine
The current parsing logic of the dumpmachine tuple lacks any arm
cases which means tgt_isa never gets set, so for all arm targets,
we get detected as generic-gnu. Add some basic arm checks here
so the automatic detection logic works.
Change-Id: Ie5e98142876025c6708604236bc519c0bdb09319
Mike Frysinger [Tue, 14 Aug 2012 18:24:28 +0000 (14:24 -0400)]
do not error out on generic-gnu + --enable-shared
If you build with --enabled-shared on a Linux arch not explicitly
listed, the configure script will abort because it didn't detect
"linux" in the fallback generic-gnu tuple.
Since this is the fallback tuple and people are passing
--enable-shared, assume the user knows what they're in for.
Change-Id: Ia35b657e7247c8855e3a94fca424c9884d4241e3
John Koleszar [Thu, 9 Aug 2012 16:10:55 +0000 (09:10 -0700)]
Merge "vpx.pc: add missing library for static links"
Andoni Morales Alastruey [Thu, 9 Aug 2012 10:54:09 +0000 (12:54 +0200)]
configure: check for pthreads building on windows with gcc
Change-Id: I737361fa9911c11017af971a80c2ffad20b01d03
Andoni Morales Alastruey [Thu, 9 Aug 2012 10:29:16 +0000 (12:29 +0200)]
vpx.pc: add missing library for static links
Change-Id: Ic4be3145e8a90d66aa4499416094bd08a9e09af4
James Zern [Wed, 8 Aug 2012 00:12:10 +0000 (17:12 -0700)]
fix timestamp calculation rollover w/altref
using large values for the timebase, e.g., {33333, 1000000} could
rollover the timestamp calculation in vp8e_encode as it was not using
64-bit math.
originally reported on ffmpeg's trac:
https://ffmpeg.org/trac/ffmpeg/ticket/1014
BUG=468
Change-Id: Iedb4e11de086a3dda75097bfaf08f2488e2088d8
James Zern [Wed, 8 Aug 2012 21:16:08 +0000 (14:16 -0700)]
EncoderTest: check that timestamps are monotonic
Change-Id: I813fa94c83df6282f382b24bbaccb1fe2fa94276
John Koleszar [Wed, 8 Aug 2012 18:24:42 +0000 (11:24 -0700)]
Merge "tests: fix Continue() signatures"
John Koleszar [Wed, 8 Aug 2012 18:23:49 +0000 (11:23 -0700)]
Merge "keyframe_test: use a fixed speed step for realtime"
Johann [Thu, 2 Aug 2012 23:09:12 +0000 (16:09 -0700)]
Update armv6 vp8_intra4x4_predict
Change-Id: I52a3b0a4a42e5af91b987e19523df07c8f467847
James Zern [Wed, 8 Aug 2012 00:44:33 +0000 (17:44 -0700)]
tests: fix Continue() signatures
they're const member functions, they need to match the base class to be
called
Change-Id: Id0580c5078b5876ead6731d95d8b86fef4029c40
Attila Nagy [Fri, 3 Aug 2012 05:29:51 +0000 (22:29 -0700)]
Merge "Fix encoder mem allocation when picture size is changed"
Attila Nagy [Fri, 3 Aug 2012 05:29:38 +0000 (22:29 -0700)]
Merge "Fix potential encoder dead-lock after picture resize"
Johann [Thu, 2 Aug 2012 21:26:04 +0000 (14:26 -0700)]
Pass B_PREDICTION_MODE to intra4x4_predict
Use the correct type when calling and inside the function.
Change-Id: Idbaf1bf58b9574f0cba73d78780e9aedd8889dfd
Johann [Thu, 2 Aug 2012 21:05:01 +0000 (14:05 -0700)]
Match declaration to definition
Change-Id: Ic6a0c42b195d6aee0e981331c994b6007dfdc6be
Johann [Wed, 1 Aug 2012 18:17:57 +0000 (11:17 -0700)]
Rename vp8_intra4x4_predict_d
predict_d has become canonical. Remove previous helper function.
Disable ARM assembly pending update.
Change-Id: Idd84ac8a28f9b0221ea97904a77de1e705d06a7d
Johann [Wed, 1 Aug 2012 18:01:46 +0000 (11:01 -0700)]
Use intra4x4_predict_d parameter names
Rename the local variables for consistency.
Change-Id: Ic202ff54551332f706d97da9b67b2e0959ee7f61
Johann [Tue, 31 Jul 2012 21:21:55 +0000 (14:21 -0700)]
Change vp8_intra4x4_predict call sites
Use the _d variant from the decoder. It moves the pointer calculations
to the caller.
Change-Id: Iae2a793433ef082980a3ffa0a1cabf0264a6a24d
Johann [Tue, 31 Jul 2012 21:12:32 +0000 (14:12 -0700)]
use RTCD pointer for intra4x4_predict
Change-Id: I4161389ff02aa37636540ac0fe0fe9763d52ebdc
Attila Nagy [Tue, 31 Jul 2012 11:04:45 +0000 (14:04 +0300)]
Fix potential encoder dead-lock after picture resize
The sync interval for the multithreaded encoder was considered as not changing
during the encoding. This is not true if picture size is changed.
The encoder could dead-lock because the main thread and the other threads were
using different sync interval.
Change-Id: I75232bbdbc6c02d77f830d870fd8b4e96697c64e
Attila Nagy [Tue, 31 Jul 2012 08:52:10 +0000 (11:52 +0300)]
Fix encoder mem allocation when picture size is changed
After the picture size was changed to a bigger one, the internal memory was
corrupted and multithreaded encoder was deadlocking.
Memory for last frame's MVs, segmentation map and active map were allocated when
the compressor was created (vp8_create_compressor). Buffers need to be
reallocated when picture size is changed, so, the allocation was moved to
vp8_alloc_compressor_data, which is called every time the picture is resized.
Change-Id: I7ce16b8e69bbf0386d7997df57add155aada2240
Johann [Tue, 31 Jul 2012 17:21:57 +0000 (10:21 -0700)]
Merge "Be consistent with SAD values"
Attila Nagy [Tue, 31 Jul 2012 06:45:54 +0000 (23:45 -0700)]
Merge "Avoid warnings about redefining _FORTIFY_SOURCE"
Jim Bankoski [Sat, 28 Jul 2012 04:22:15 +0000 (21:22 -0700)]
Merge "Remove the resetting of qp params for temporal layers."
Marco Paniconi [Sat, 28 Jul 2012 00:24:29 +0000 (17:24 -0700)]
Remove the resetting of qp params for temporal layers.
The ambient qp and active worse/best qp were reset for every frame
when temporal layers is on. This change removes this reset.
As this affects the target size for forced key frames
(it will actually lower the size somewhat), we increased the
inital boost factor to compensate.
Change-Id: Ie38d95f5c99ab3d447469c49e2177bc3fcc4ad28
Johann [Tue, 26 Jun 2012 18:37:33 +0000 (11:37 -0700)]
Be consistent with SAD values
SAD returns unsigned values. Make all the declarations the same.
Remove bestsad initialization and check. It is always set to the
result of a SAD call so it will never remain UINT_MAX
Use ja instead of jg to test unsigned comparison instead of signed.
Update test.
Change-Id: I46336ab45f4e60fc37caf20bd36bc5782079c7a5
Johann [Fri, 27 Jul 2012 23:05:12 +0000 (16:05 -0700)]
Merge "SAD cosmetic cleanup"
Attila Nagy [Fri, 27 Jul 2012 06:40:05 +0000 (09:40 +0300)]
Avoid warnings about redefining _FORTIFY_SOURCE
Undefine the macro befor redefining it.
Change-Id: I31187307273c138f8d5380c74f9e0619af15cdd9
Attila Nagy [Tue, 24 Apr 2012 12:17:28 +0000 (15:17 +0300)]
Optimizes updates of encoder block ptrs
Precalculated block ptrs do not need updates during encoding.
Set these at init stage.
Moved the allocation of 'mt_current_mb_col' (last encoded MB on each
row) to vp8_alloc_compressor_data(), so that it is correctly
reallocated when frame size is changing.
Change-Id: Idcdaa2d0cf3a7f782b7d888626b7cf22a4ffb5c1
Johann [Fri, 27 Jul 2012 00:18:47 +0000 (17:18 -0700)]
Merge "Add tests for SAD functions"
Johann [Tue, 26 Jun 2012 17:06:08 +0000 (10:06 -0700)]
SAD cosmetic cleanup
Change-Id: Iae915f2988081697cca6b65943afaca1d8de8df3
Yunqing Wang [Thu, 26 Jul 2012 15:59:12 +0000 (08:59 -0700)]
Merge "multi-res: add drop_frame support"
Yunqing Wang [Fri, 8 Jun 2012 15:17:50 +0000 (11:17 -0400)]
multi-res: add drop_frame support
Added drop_frame support in multi-resolution encoder.
If one frame is dropped at a lower-resolution level, the next
upper-resolution level encoder needs to encode that frame
independently without any lower-resolution level motion
information.
Another issue is that if one frame is dropped at some but not all
resolution levels, a frame after that one may use different set
of reference frames at different resolution levels. This reference
frame asynchronization could degrade motion search precision in
upper-resolution level encoding, which uses lower-resolution level
motion result. This change compares the lower-resolution and upper-
resolution level's reference frames. If they are not the same, the
upper-resolution level encoder can not use lower-resolution level
motion result.
Change-Id: I61afa4f313630e75b7cbdd5742e230e8724a988a
Johann [Thu, 28 Jun 2012 18:43:58 +0000 (11:43 -0700)]
Add tests for SAD functions
Change-Id: I018335a08cbb1eca55896c21e36918ed45a4b2a8
Ronald S. Bultje [Tue, 24 Jul 2012 22:46:49 +0000 (15:46 -0700)]
Add comment for use of shift/mul instead of div.
Change-Id: Ia6a0090da2097ca9337f8179a6d7b6a09e12f2e6
Ronald S. Bultje [Tue, 24 Jul 2012 22:22:14 +0000 (15:22 -0700)]
Replace x*155/100 by x*101581>>16.
Idea stolen from webp - because it's cool.
Change-Id: Ic6e55e026e6533fbd2524ef090e3cbccf8af50dd
Johann [Tue, 24 Jul 2012 17:19:44 +0000 (10:19 -0700)]
Use vpx_integer.h instead of stdint.h
vpx_integer accounts for win32, which does not have stdint.h
Change-Id: I0ecf243ba56ed2e920e1293a6876c2e1ef1af99e
Johann [Tue, 24 Jul 2012 16:35:50 +0000 (09:35 -0700)]
Merge "Use ACMRandom for all tests"
Johann [Tue, 24 Jul 2012 16:35:37 +0000 (09:35 -0700)]
Merge "Allow specifying the seed"
Johann [Tue, 24 Jul 2012 16:35:23 +0000 (09:35 -0700)]
Merge "Make random streams consistant"
Paul Wilkins [Fri, 20 Jul 2012 14:55:07 +0000 (15:55 +0100)]
Added unit test of vp8_set_roimap()
Change-Id: I99937cbdd6bfe52b7c8ae42f05526dfc06a602f4
Johann [Mon, 23 Jul 2012 22:09:51 +0000 (15:09 -0700)]
Use ACMRandom for all tests
Change-Id: I3bfa40cbc04828fd1d6b61f138c92a2159a67570
Johann [Mon, 23 Jul 2012 22:06:12 +0000 (15:06 -0700)]
Allow specifying the seed
Change-Id: Ie933998b08cd2b3f0e379b8fa7d394c95bd08cac
Johann [Mon, 23 Jul 2012 21:55:32 +0000 (14:55 -0700)]
Make random streams consistant
Reset the seed so the second pass stream matches the first
Change-Id: Id0c0f73abb835b5ca92d76b14e0b02f6239a6ee3
Johann [Fri, 20 Jul 2012 18:51:06 +0000 (11:51 -0700)]
Move ACMRandom to acm_random.h
Change-Id: I1d99c56d1e1f521507978737fc661ca90af72507
Johann [Fri, 20 Jul 2012 18:45:23 +0000 (11:45 -0700)]
Remove unused macros
Also available in util.h
Change-Id: I4745d72f57c11c55772d3bf0ef15c09bd86eb5bf
Johann [Fri, 20 Jul 2012 18:41:06 +0000 (11:41 -0700)]
bash uses curly braces
Change-Id: I2799c766008dc9016d2e55e6e40ae2c4ae4b37d2
Dragan Mrdjan [Fri, 20 Jul 2012 16:10:52 +0000 (09:10 -0700)]
Disabling MIPS optimizations for big endian platforms
Change-Id: Idae399ecbd10e287ef30b2e0b95822dc9175ce0a
John Koleszar [Mon, 16 Jul 2012 23:05:20 +0000 (16:05 -0700)]
Merge "examples: fix memory leak"
Yunqing Wang [Wed, 11 Jul 2012 18:43:51 +0000 (11:43 -0700)]
multi-res: add parameter validity checking
Added validity checking in multi-res encoder. Disable spatial
resampling and frame dropping before we have those supports.
Also, deallocate the memory for all resolution levels once error
occurs.
Change-Id: Ia5d65a645381cad1a49940ab3a19bb5696c39c09
John Koleszar [Sat, 14 Jul 2012 00:11:21 +0000 (17:11 -0700)]
examples: fix memory leak
Free used resources before exiting.
Change-Id: If6cde6541615fbf17bf56ed335b76e676eabba93
Yunqing Wang [Thu, 12 Jul 2012 15:23:12 +0000 (08:23 -0700)]
Remove unused parameter in encoder interface code
Removed encoding_mode, which is not used anymore.
Change-Id: I569b2d4afe4d2f57bda8248615108c7cfc40134c
John Koleszar [Fri, 13 Jul 2012 16:44:25 +0000 (09:44 -0700)]
unset executable bit on source code
Change-Id: I0ddc849495c34f44c0b315cd7d58ad3d563f45e5
Dragan Mrdjan [Wed, 11 Jul 2012 15:56:53 +0000 (08:56 -0700)]
Fix to compile properly on MIPS
Change-Id: I816d903e36605db2af691ccea9e68d7390942baa
Johann [Tue, 10 Jul 2012 23:01:41 +0000 (16:01 -0700)]
Merge "VP8 optimizations for MIPS dspr2"
John Koleszar [Tue, 10 Jul 2012 22:43:44 +0000 (15:43 -0700)]
keyframe_test: use a fixed speed step for realtime
The lower complexity modes may not generate a keyframe automatically.
This behavior was found when running under Valgrind, as the slow
performance caused the speed selection to pick lower complexities than
when running natively. Instead, use a fixed complexity for the
realtime auto keyframe test.
Affected tests:
AllModes/KeyframeTest.TestAutoKeyframe/0
Change-Id: I44e3f44e125ad587c293ab5ece29511d7023be9b
Yunqing Wang [Tue, 10 Jul 2012 18:19:14 +0000 (11:19 -0700)]
Merge "Add unit test for vp8_sixtap_predict functions"
John Koleszar [Tue, 10 Jul 2012 18:04:46 +0000 (11:04 -0700)]
Merge "I420VideoSource: add members to ctor initialization"
Dragan Mrdjan [Wed, 11 Apr 2012 16:53:15 +0000 (09:53 -0700)]
VP8 optimizations for MIPS dspr2
Signed-off-by: Raghu Gandham <raghu@mips.com>
Change-Id: I3a8bca425cd3dab746a6328c8fc8843c8e87aea6
Yunqing Wang [Thu, 28 Jun 2012 17:37:53 +0000 (10:37 -0700)]
Add unit test for vp8_sixtap_predict functions
This unit test tests vp8_sixtap_predict function against preset
data and random generated data. The test against preset data
checks the correctness of the functions, and the test against
random data checks if the optimized six-tap predictor functions
generate matching result as the c functions. It tests the
following functions:
vp8_sixtap_predict16x16_c
vp8_sixtap_predict16x16_mmx
vp8_sixtap_predict16x16_sse2
vp8_sixtap_predict16x16_ssse3
vp8_sixtap_predict8x8_c
vp8_sixtap_predict8x8_mmx
vp8_sixtap_predict8x8_sse2
vp8_sixtap_predict8x8_ssse3
vp8_sixtap_predict8x4_c
vp8_sixtap_predict8x4_mmx
vp8_sixtap_predict8x4_sse2
vp8_sixtap_predict8x4_ssse3
vp8_sixtap_predict4x4_c
vp8_sixtap_predict4x4_mmx
vp8_sixtap_predict4x4_ssse3
Change-Id: I6de097898ebca34a4c8020aed1e8dde5cd3e493b
Yunqing Wang [Tue, 10 Jul 2012 16:19:37 +0000 (09:19 -0700)]
Merge "Remove goldfreq in VP8_COMP"
James Zern [Tue, 10 Jul 2012 00:36:01 +0000 (17:36 -0700)]
I420VideoSource: add members to ctor initialization
silences valgrind warnings about uninitialized values in SetSize()
Change-Id: I54c4fdcc246687793393735b213c8777e79e47da
Yunqing Wang [Tue, 3 Jul 2012 22:55:02 +0000 (15:55 -0700)]
Merge "Add 0 offsets handling in SSSE3 sixtap_predict functions"
Yunqing Wang [Tue, 3 Jul 2012 22:22:00 +0000 (15:22 -0700)]
Merge "Fix subpixel_predict initialization"
Yunqing Wang [Mon, 2 Jul 2012 23:50:48 +0000 (16:50 -0700)]
Add 0 offsets handling in SSSE3 sixtap_predict functions
This patch fixed issue 458 by calling copy function when both
offsets are 0, which guarantees the SSSE3 functions output
same result as the c function for all possible offsets.
Change-Id: I209aec7a4c6b3362db2646a8887c1038493b6496
Yunqing Wang [Mon, 2 Jul 2012 21:47:47 +0000 (14:47 -0700)]
Fix subpixel_predict initialization
xd->subpixel_predict16x16 is called in first pass, but isn't
initialized in first pass, which causes segfault. This patch
fixed that problem.
Change-Id: Ibd2cad4e2d32ea589fc3e0876d60d3079ae836e7
John Koleszar [Fri, 29 Jun 2012 19:15:00 +0000 (12:15 -0700)]
Build unit test driver from the default target
We need an easy way to build the unit test driver without running the
tests. This enables passing options like --gtest_filter to the
executable, which can't be done very cleanly when running under
`make test`.
Fixed a number of compiler errors/warnings when building the tests
in various configurations by Jenkins.
Change-Id: I9198122600bcf02520688e5f052ab379f963b77b
John Koleszar [Fri, 29 Jun 2012 19:09:02 +0000 (12:09 -0700)]
fdct4x4_test: remove unnecessary includes
Removes compiler warnings stemming from compiling C as C++.
Change-Id: I84ec60d04fcc6281b6f2ea75af6a22fa3232d95f
Yunqing Wang [Fri, 29 Jun 2012 17:57:39 +0000 (10:57 -0700)]
Merge "Fix decimation_count in drop_frame"
James Zern [Thu, 28 Jun 2012 06:45:56 +0000 (23:45 -0700)]
fix permissions on regular files
Change-Id: I731354b3cf3405eba2dfffcb47d174b5fa9df21a
Yaowu Xu [Tue, 26 Jun 2012 00:24:15 +0000 (17:24 -0700)]
fixed a build problem with target=x86_64-win64-vs9
Change-Id: I9c56216d22212c4fc13a5e2ed02f30f5b373b94c
Yaowu Xu [Mon, 18 Jun 2012 20:41:17 +0000 (13:41 -0700)]
Added unit test for 4x4 forward dct
Change-Id: I1607676879c29adc0173a3c0355a0e5d8a84fc3b
Jim Bankoski [Mon, 25 Jun 2012 21:46:45 +0000 (14:46 -0700)]
Merge "Add unit test for intra prediction."
John Koleszar [Mon, 25 Jun 2012 19:52:02 +0000 (12:52 -0700)]
Merge changes I94a061eb,If6910fe3
* changes:
add auto keyframe unit test
Add support for downloading test data
John Koleszar [Mon, 25 Jun 2012 17:09:05 +0000 (10:09 -0700)]
gen_asm_deps.sh: regex fix
Fixed the quantifier that optionally matches a quote before the
filename. This was originally reported in the homebrew project[1].
Note that this fix is different than patch posted there, as there are
some platforms that don't have the quote, so it needs to be included
in the expression optionally.
[1]: https://github.com/mxcl/homebrew/issues/12567#issuecomment-6434000
Change-Id: Ibf2ed93ce169d80932e877f942dc4eeb03867f8b
Ronald S. Bultje [Mon, 25 Jun 2012 16:34:10 +0000 (09:34 -0700)]
Add unit test for intra prediction.
Change-Id: I7dadadeb99bee5a51219f46fe11c760fc294c735
Jim Bankoski [Sat, 23 Jun 2012 18:20:41 +0000 (11:20 -0700)]
add auto keyframe unit test
To do so we add a framework for encoding a yv12 file..
Change-Id: I94a061eb916beaf6cde920cf1aaadb6eed10a717
Paul Wilkins [Wed, 20 Jun 2012 14:20:53 +0000 (15:20 +0100)]
Alter comment on range of delta_q and delta_lf
Update the comment that defines the allowed ranges for
delta_q and delta_lf that can be used with segmentation.
Change-Id: Ie56ad6f946704259e03ffd49921a4cfb7e1e2f1f
John Koleszar [Fri, 22 Jun 2012 22:13:39 +0000 (15:13 -0700)]
Merge "Cosmetics: test/test_libvpx.cc"
Johann [Fri, 22 Jun 2012 19:56:01 +0000 (12:56 -0700)]
Merge "Clean Android build defaults"
John Koleszar [Fri, 22 Jun 2012 18:53:04 +0000 (11:53 -0700)]
Cosmetics: test/test_libvpx.cc
Itchy submit finger, incorporate review comments.
Change-Id: I7754ad825da32389510d1bfc967f542f0b1033ed
John Koleszar [Fri, 22 Jun 2012 18:47:02 +0000 (11:47 -0700)]
Merge "Runtime CPU detection for unit tests"
John Koleszar [Fri, 22 Jun 2012 17:57:05 +0000 (10:57 -0700)]
Runtime CPU detection for unit tests
Filter out tests that require SIMD extensions if the host doesn't
support them.
Change-Id: Ifac4b73e98e64f9f1b082cc0ffbf5c2faffb0834
John Koleszar [Wed, 20 Jun 2012 21:45:22 +0000 (14:45 -0700)]
Add support for downloading test data
The commit introduces a make target 'testdata' that downloads the
required test data from the WebM project website. The data will also
be downloaded if invoking `make test` but is not a strict requirement
for only building the test executable.
The download directory is taken from the LIBVPX_TEST_DATA_PATH
environment variable, or may be specified as part of the make command.
If unset, it defaults to the current directory. It's expected that
most developers will want to set this environment variable to a place
outside their source/build trees, to avoid having to download the data
more than once.
To add test data file:
1) add a line to test/test.mk:
LIBVPX_TEST_DATA-yes += foo-bar-file.y4m
2) add its sha1sum to the test/test-data.sha1 file in the following
format:
528cc88c821e5f5b133c2b40f9c8e3f22eaacc4c foo-bar-file.y4m
3) upload the file to the website
$ gsutil cp foo-bar-file.y4m gs://downloads.webmproject.org/test_data/libvpx
This implementation will check the integrity of the test data
automatically if the `sha1sum` executable is available.
Change-Id: If6910fe304bb3f5cdcc5cb9e5f9afa5be74720d2
Adrian Grange [Tue, 19 Jun 2012 19:03:36 +0000 (12:03 -0700)]
Added unit test for vp8_post_proc_down_and_across
This is a unit test for the post-processing functions:
- vp8_post_proc_down_and_across_c
- vp8_post_proc_down_and_across_mmx
- vp8_post_proc_down_and_across_xmm
Change-Id: Iec3e690327b17470209c00417835473f6d9a35d6
Paul Wilkins [Wed, 20 Jun 2012 17:34:28 +0000 (10:34 -0700)]
Merge "Fix segmentation updates with vp8_set_roimap()"
John Koleszar [Wed, 20 Jun 2012 04:05:36 +0000 (21:05 -0700)]
Fix compilation with -werror
Fix a last few warnings with multithread, arm, 32 bit
Change-Id: Ic7c67616c370d0ff87562a232fb1e5df0702dc86
Johann [Tue, 12 Jun 2012 15:58:11 +0000 (08:58 -0700)]
Clean Android build defaults
Disable unit-tests. The logging in GTest would need to be adjusted.
Restructure ARM cpu detection. Flatten if-else logic.
Change #if defined(HAVE_*) to #if HAVE_* because we only need to check
for features that the library was actually built with. This should have
been harmless, as disabled feature sets wouldn't have any features to
call.
Change-Id: Iea21aa42ce5f049c53ca0376d25bcd0f36f38284
Paul Wilkins [Thu, 14 Jun 2012 15:26:07 +0000 (16:26 +0100)]
Fix segmentation updates with vp8_set_roimap()
Changes relating to Issue 411
Removed code that was clearing down the segmentation data each
frame.
Added range/parameter checking in vp8_set_roimap(); Return error
if called when cyclic_refresh is enabled.
Correct setup_features() so that it sets or clears the segment update
flags as appropriate.
Change-Id: Ib31ac53006640ddf1ba7b9ec8f8b952e3eff860a
Attila Nagy [Thu, 12 Apr 2012 09:50:19 +0000 (12:50 +0300)]
Enables building examples with Android NDK
Soft enable runtime cpu detect for armv7-android target, so that it
can be disabled and remove dependency on 'cpufeatures' lib.
Change the arm_cpu_caps implementation selection such that 'no rtcd' takes
precedence over system type.
Switch to use -mtune instead of -mcpu. NDK was complaining about
-mcpu=cortex-a8 conflicting with -march=armv7-a, not sure why.
Add a linker flag to fix some cortex-a8 bug, as suggested by NDK Dev
Guide.
Examples:
Configure for armv7+neon:
./configure --target=armv7-android-gcc \
--sdk-path=/path/to/android/ndk \
--disable-runtime-cpu-detect \
--enable-realtime-only \
--disable-unit-tests
...armv7 w/o neon:
./configure --target=armv7-android-gcc \
--sdk-path=/path/to/android/ndk \
--disable-runtime-cpu-detect \
--enable-realtime-only \
--disable-neon \
--cpu=cortex-a9 \
--disable-unit-tests
Change-Id: I37e2c0592745208979deec38f7658378d4bd6cfa
John Koleszar [Tue, 19 Jun 2012 21:50:46 +0000 (14:50 -0700)]
Merge "disable lagged encoding in one-pass"
Adrian Grange [Tue, 19 Jun 2012 18:19:40 +0000 (11:19 -0700)]
Corrected usage of image strides
The function vp8_post_proc_down_and_across_c takes the
stride of both the src and dst images as parameters, but
assumes that they are the same.
I modified the code to use the correct strides, as the
assembler versions of these functions do.
Change-Id: I222715b774cd071b21c15a4b0d2f4aef64a520de
John Koleszar [Sat, 16 Jun 2012 00:03:21 +0000 (17:03 -0700)]
Merge "Fix pkg-config file to pull in libm"
Rob Bradford [Mon, 28 May 2012 12:00:24 +0000 (13:00 +0100)]
Fix pkg-config file to pull in libm
vpx uses symbols in libm and thus we need to provide an indication to
the user of libvpx that if they want to link against libvpx they must
also link against libm.
Change-Id: I31d4068bf7f6f5b1fd222bcdf9e6a1a92fb6696f
John Koleszar [Fri, 15 Jun 2012 22:40:13 +0000 (15:40 -0700)]
Remove threading dependencies with --disable-multithread
Avoid a pthreads dependency via pthread_once() when compiled with
--disable-multithread.
In addition, this synchronization is disabled for Win32 as well, even
though we can be sure that the required primatives exist, so that the
requirements on the application when built with --disable-multithread
are consistent across platforms.
Users using libvpx built with --disable-multithread in a multithreaded
context should provide their own synchronization. Updated the
documentation to vpx_codec_enc_init_ver() and vpx_codec_dec_init_ver()
to note this requirement. Moved the RTCD initialization call to match
this description, as previously it didn't happen until the first
frame.
Change-Id: Id576f6bce2758362188278d3085051c218a56d4a
James Zern [Wed, 13 Jun 2012 18:59:12 +0000 (11:59 -0700)]
disable lagged encoding in one-pass
This currently has no effect and can create an artificial lag in e.g.,
realtime.
Change-Id: Ia1c7c6dbe7c6fe82a944f087f1b0d1dbbc0aa1b6
Yunqing Wang [Tue, 12 Jun 2012 15:57:26 +0000 (11:57 -0400)]
Remove goldfreq in VP8_COMP
goldfreq can be replaced by DEFAULT_GF_INTERVAL.
Change-Id: I3659a9e7b9a6be9cb1952a1838e02c20d656e369
John Koleszar [Mon, 21 May 2012 21:30:56 +0000 (14:30 -0700)]
Fix pedantic compiler warnings
Allows building the library with the gcc -pedantic option, for improved
portabilty. In particular, this commit removes usage of C99/C++ style
single-line comments and dynamic struct initializers. This is a
continuation of the work done in commit
97b766a46, which removed most
of these warnings for decode only builds.
Change-Id: Id453d9c1d9f44cc0381b10c3869fabb0184d5966
John Koleszar [Mon, 11 Jun 2012 20:52:28 +0000 (13:52 -0700)]
Merge "Fix MSVS builds for unit test changes"