platform/upstream/libvpx.git
11 years agoMerge "Add option to disable documentation"
John Koleszar [Thu, 11 Oct 2012 16:55:06 +0000 (09:55 -0700)]
Merge "Add option to disable documentation"

11 years agoClean up error return code in alloccommon.c
Yunqing Wang [Thu, 11 Oct 2012 15:46:23 +0000 (08:46 -0700)]
Clean up error return code in alloccommon.c

Clean up the duplicate code as Pascal suggested.

Change-Id: I685fcbb488502e969f6cb73a46db3ea79b90910d

11 years agopost-proc: fix 0 or negative threshold handling
Yunqing Wang [Wed, 10 Oct 2012 18:27:11 +0000 (11:27 -0700)]
post-proc: fix 0 or negative threshold handling

If the threshold(limits) <= 0, skipped filtering and copied the
frame directly. Also, fixed memory allocation checking.

Change-Id: If3d79d5b2bcb71b9777e6eb5cba1384585131e22

11 years agoAdd option to disable documentation
Johann [Wed, 10 Oct 2012 16:16:37 +0000 (09:16 -0700)]
Add option to disable documentation

Documentation is typically auto-detected by checking for php and
doxygen. Add an option to explicitly disable it.

Remove toggle keywords from libraries, examples, documentation and
unit tests. They were not consistent with the default status.

Change-Id: I21049675ccfd8e58ac612cd058641b197db5c0eb

11 years agomulti-res: disable intra on forced ref frames
John Koleszar [Mon, 8 Oct 2012 22:58:04 +0000 (15:58 -0700)]
multi-res: disable intra on forced ref frames

If a reference frame is forced because of low dissimilarity, then
shut off the search of intra modes. This change has mixed results. On
one clip (QVGA), it hurt quality by ~1.5% with negligible speed impact.
On another (VGA) it had negligible affect on quality, but a ~0.2% speed
impact.

Change-Id: Ic8b07648979d732f489de5f094957e140f84d2eb

11 years agoMerge "multi-res: add parent_ref_valid flag"
John Koleszar [Tue, 9 Oct 2012 17:24:37 +0000 (10:24 -0700)]
Merge "multi-res: add parent_ref_valid flag"

11 years agomulti-res: add parent_ref_valid flag
John Koleszar [Mon, 8 Oct 2012 22:54:24 +0000 (15:54 -0700)]
multi-res: add parent_ref_valid flag

Rather than overloading the parent_ref_frame value to shut off the
search in some cases, add a new validity flag. This cleans up some
of the duplicated mr_encoder_id && mr_low_res_mv_avail checks as
well, for readability.

Change-Id: Iddad93a27066c3d85ff2f25a361ac113b288ab7b

11 years agoMerge "post-proc: deblock filter optimization"
Yunqing Wang [Tue, 9 Oct 2012 16:26:36 +0000 (09:26 -0700)]
Merge "post-proc: deblock filter optimization"

11 years agoMerge "multi-res: work around reference mismatch"
John Koleszar [Mon, 8 Oct 2012 22:48:25 +0000 (15:48 -0700)]
Merge "multi-res: work around reference mismatch"

11 years agopost-proc: deblock filter optimization
Yunqing Wang [Fri, 28 Sep 2012 17:13:07 +0000 (10:13 -0700)]
post-proc: deblock filter optimization

1. Algorithm modification:
Instead of having same filter threshold for a whole frame, now we
allow the thresholds to be adjusted for each macroblock. In current
implementation, to avoid excessive blur on background as reported
in issue480(http://code.google.com/p/webm/issues/detail?id=480), we
reduce the thresholds for skipped macroblocks.

2. SSE2 optimization:
As started in issue479(http://code.google.com/p/webm/issues/detail?id=479),
the filter calculation was adjusted for better performance. The c
code was also modified accordingly. This made the deblock filter
2x faster, and the decoder was 1.2x faster overall.

Next, the demacroblock filter will be modified similarly.

Change-Id: I05e54c3f580ccd427487d085096b3174f2ab7e86

11 years agomulti-res: work around reference mismatch
John Koleszar [Mon, 8 Oct 2012 15:39:47 +0000 (08:39 -0700)]
multi-res: work around reference mismatch

In some situations, believed to be an interaction between temporal
scalability and dropped frames, the references available to an
encoder may not be the same references available to its parent.
Previously, the code tried to force the reference frame chosen by
the parent to be used on this frame, even if it was disabled. This
was preventing the pick mode loop from running even once, which led
to a crash.

Attempts to reproduce this bug locally were unsuccessful, so it is
still undetermined what the underlying cause of this issue is. In
the specific case that was failing, the application did not set
any flags which influenced the reference selection on that frame.
ref_frame_flags indicated that the golden frame was disabled,
believed to be because the last frame updated the last and golden
frames, so golden was shut off by default. It's not clear why this
wouldn't have also been true in the lower res encoder, ie, why the
lower res encoder decided to use and/or was allowed to use the
golden frame. We weren't able to debug into the non-crashing
lower res encoder as the crash couldn't be reproduced locally.

Change-Id: Ifb265253d26963ac2afde0e20cf6792788be6af7

11 years agoMerge "Unit Test for Error Resilience Mode"
Adrian Grange [Fri, 5 Oct 2012 00:33:55 +0000 (17:33 -0700)]
Merge "Unit Test for Error Resilience Mode"

11 years agoAdd a unit test for CQ mode.
Ronald S. Bultje [Thu, 4 Oct 2012 23:38:21 +0000 (16:38 -0700)]
Add a unit test for CQ mode.

Change-Id: I66c391987eabc5ea0159bf4a2a4fd8e8e163872f

11 years agoMerge "Added handler for PSNR packets to EncoderTest class"
Adrian Grange [Thu, 4 Oct 2012 17:38:35 +0000 (10:38 -0700)]
Merge "Added handler for PSNR packets to EncoderTest class"

11 years agoMerge "Add initialization and per frame flag members"
Adrian Grange [Thu, 4 Oct 2012 17:37:38 +0000 (10:37 -0700)]
Merge "Add initialization and per frame flag members"

11 years agoUnit Test for Error Resilience Mode
Adrian Grange [Tue, 2 Oct 2012 19:16:27 +0000 (12:16 -0700)]
Unit Test for Error Resilience Mode

This unit test compares the difference in quality with
error resilience enabled and disabled. The test runs
for all of the one-pass encoding modes.

The test ensures that the effect of turning on error
resilience makes less than a 10% difference in PSNR.

Further cases should be added to do a more comprehensive
test.

Change-Id: I1fc747fc78c9459bc6c74494f4b38308dbed0c32

11 years agofix uninitialized value in multi-res encoding
John Koleszar [Wed, 3 Oct 2012 21:52:56 +0000 (14:52 -0700)]
fix uninitialized value in multi-res encoding

If a parent mb is available but is intra coded, then parent_ref_mv is
invalid. Check that the parent is inter coded before trying to access
the parent_ref_mv. Previously the parent_ref_mv was being read from
an uninitialized stack allocation, causing potential OOB reads and
other undefined behavior.

Change-Id: I0c93cd412a19c3a184bcf6decaa145b3a036a6c0

11 years agoAdded handler for PSNR packets to EncoderTest class
Adrian Grange [Tue, 2 Oct 2012 18:27:29 +0000 (11:27 -0700)]
Added handler for PSNR packets to EncoderTest class

Added a virtual function to handle PSNR packets.

Change-Id: Id2a6372c691a14f19bbeed217a93a9df03e81e75

11 years agoAdd initialization and per frame flag members
Adrian Grange [Tue, 2 Oct 2012 18:03:09 +0000 (11:03 -0700)]
Add initialization and per frame flag members

Modified EncoderTest class to have separate member variables
for initialization time and per-frame.

Change-Id: I08a1901f8f3ec16e45f96297e08e7f6df0f4aa0b

11 years agoMerge "Added Reset method to TwopassStatsStore"
Adrian Grange [Wed, 3 Oct 2012 20:45:46 +0000 (13:45 -0700)]
Merge "Added Reset method to TwopassStatsStore"

11 years agoMerge "rtcd/win32: use InitializeCriticalSection explicitly"
John Koleszar [Wed, 3 Oct 2012 19:51:29 +0000 (12:51 -0700)]
Merge "rtcd/win32: use InitializeCriticalSection explicitly"

11 years agoAdded Reset method to TwopassStatsStore
Adrian Grange [Tue, 2 Oct 2012 16:36:41 +0000 (09:36 -0700)]
Added Reset method to TwopassStatsStore

The stats buffer needs to be reset between runs of the
encoder. I added a Reset() function to TwopassStatsStore
and called it at the beginning of each encode.

This enables us to run multiple encodes which was
previously not possible since there was no way to reset
the stats between runs.

Change-Id: Iebb18dab83ba9331f009f764cc858609738a27f9

11 years agortcd/win32: use InitializeCriticalSection explicitly
John Koleszar [Mon, 24 Sep 2012 21:52:18 +0000 (14:52 -0700)]
rtcd/win32: use InitializeCriticalSection explicitly

Protect the call to {Initialize,Delete}CriticalSection() with an
Interlocked{Inc,Dec}rement() pair, rather than the previous static
initialization. This should play better with AppVerifier, and fix issue

  http://code.google.com/p/webm/issues/detail?id=467

Change-Id: I06eadbfac1b3b4414adb8eac862ef9bd14bbe4ad

11 years agoMerge "Added unit test for subtract functions"
John Koleszar [Wed, 3 Oct 2012 15:17:16 +0000 (08:17 -0700)]
Merge "Added unit test for subtract functions"

11 years agoDisable keyframe in real time that's placed one frame after a cut.
Jim Bankoski [Mon, 1 Oct 2012 21:17:43 +0000 (14:17 -0700)]
Disable keyframe in real time that's placed one frame after a cut.

The codec as it stood placed a keyframe one frame after a
real cut scene - and ignored datarate and other considerations.

TODO: Its possible that we should detect a keyframe and recode
the frame ( in certain circumstances) to improve quality.

Change-Id: Ia1fd6d90103f4da4d21ca5ab62897d22e0b888a8

11 years agoResetting of the cyclic_refresh_mode_index:
Marco Paniconi [Thu, 27 Sep 2012 21:30:40 +0000 (14:30 -0700)]
Resetting of the cyclic_refresh_mode_index:

Reset the cyclie refresh mode index in alloc_compressor_data().
This is needed to handle both cases of internal and
external spatial resizing.

Change-Id: I2697e12d45135eae2e8f0d45161811f24722312a

11 years agoReset the cyclic_refresh_mode_index to 0 on resize.
Marco Paniconi [Wed, 26 Sep 2012 22:42:36 +0000 (15:42 -0700)]
Reset the cyclic_refresh_mode_index to 0 on resize.

On an internal spatial resize, this mode index was not reset to 0,
and therefore could exceed dimensions of seg_map or cyclic_refresh_map.

Change-Id: I6fe85dbd2765eb0207a9d9f71fda8d8b8c34f075

11 years agoAdded unit test for subtract functions
Scott LaVarnway [Wed, 26 Sep 2012 20:45:53 +0000 (13:45 -0700)]
Added unit test for subtract functions

Patch Set 1: gain familiarity with unit tests... added simple
4x4 subtract test
Patch Set 2: fixed mistakes, parameterized as suggested
Patch Set 3: randomized the source/predictor data

Change-Id: I33432bdf7c9f2a9b8c2533a37106382c2a8209ee
Signed-off-by: Scott LaVarnway <slavarnway@google.com>
11 years agoMerge "check for x32 targets"
John Koleszar [Tue, 25 Sep 2012 18:32:11 +0000 (11:32 -0700)]
Merge "check for x32 targets"

11 years agoMerge "update gitignores"
John Koleszar [Tue, 25 Sep 2012 18:25:53 +0000 (11:25 -0700)]
Merge "update gitignores"

11 years agoupdate gitignores
Mike Frysinger [Tue, 25 Sep 2012 18:11:13 +0000 (14:11 -0400)]
update gitignores

Change-Id: I67bf154e35fa02b407a9b2c312a536d6bb2aaaf2

11 years agoMerge "disable segmentation on enhancement layers"
Jim Bankoski [Tue, 25 Sep 2012 17:49:25 +0000 (10:49 -0700)]
Merge "disable segmentation on enhancement layers"

11 years agocheck for x32 targets
Mike Frysinger [Tue, 25 Sep 2012 04:37:11 +0000 (00:37 -0400)]
check for x32 targets

Add configure detection of the new x32 ABI as well as support in asm.

Change-Id: Ic66a069599adeb81062090e3f11b71ee1fb97cb8

11 years agoMerge "Move frame allocations out of vp8_decode_frame()"
Scott LaVarnway [Mon, 24 Sep 2012 23:15:54 +0000 (16:15 -0700)]
Merge "Move frame allocations out of vp8_decode_frame()"

11 years agoMerge "Removed bc and bc2 vp8_readers from VP8D_COMP"
Scott LaVarnway [Mon, 24 Sep 2012 20:50:30 +0000 (13:50 -0700)]
Merge "Removed bc and bc2 vp8_readers from VP8D_COMP"

11 years agoMove frame allocations out of vp8_decode_frame()
Scott LaVarnway [Mon, 24 Sep 2012 19:44:45 +0000 (12:44 -0700)]
Move frame allocations out of vp8_decode_frame()

in order to make it easier to implement the frame-base multithreading.

Change-Id: Iea2fd05be34fa704848fdc7669bf167f2ed229c5

11 years agortcd/win32: prefer win32 primatives to pthreads
John Koleszar [Mon, 24 Sep 2012 18:47:35 +0000 (11:47 -0700)]
rtcd/win32: prefer win32 primatives to pthreads

Fixes some build issues for people building for win32 who have a
pthreads emulation layer installed.

Change-Id: I0e0003fa01f65020f6ced35d961dcb1130db37a8

11 years agodisable segmentation on enhancement layers
Jim Bankoski [Mon, 24 Sep 2012 14:53:26 +0000 (07:53 -0700)]
disable segmentation on enhancement layers

This should avoid problems with blocks gettings high quality
improvement despite having recently moved:

Change-Id: Ic0af0de2d6577807fa3c553f47b55d547ef36359

11 years agoUpdate to cyclic refresh:
Marco Paniconi [Mon, 24 Sep 2012 03:56:49 +0000 (20:56 -0700)]
Update to cyclic refresh:

Set the seg map to 0 for key frame.

In previous commit on cyclic refresh, the seg map for key frame
was not reset, and instead used the seg map from last frame.

Change-Id: I848eb2face420dfcd2f7daca6f070b9127ca938b

11 years agoUpdate to cyclic refresh.
Marco Paniconi [Sat, 22 Sep 2012 01:54:11 +0000 (18:54 -0700)]
Update to cyclic refresh.

-Increase the amount of mbs to be refreshed.
-Replace the delta qp with a fixed and reduced delta.
-Change to the mb update loop to try to always update same amount of mbs.

Change-Id: I93ac88002fd8dc677d2337f77998ff93f64e4ff9

11 years agoRemoved bc and bc2 vp8_readers from VP8D_COMP
Scott LaVarnway [Fri, 21 Sep 2012 18:00:29 +0000 (11:00 -0700)]
Removed bc and bc2 vp8_readers from VP8D_COMP

Used mbc instead.

Change-Id: If22136b4fee89b68ca2246265f3c27853701136c

11 years agoMoved vp8dx_get_raw_frame() call to vp8_get_frame()
Scott LaVarnway [Wed, 19 Sep 2012 19:30:44 +0000 (12:30 -0700)]
Moved vp8dx_get_raw_frame() call to vp8_get_frame()

This change is necessary for the frame-based multithreading
implementation.
Since the postproc occurs in this call, vpxdec was modified to time around
vpx_codec_get_frame()

Change-Id: I389acf78b6003cd35e41becc16c893f7d3028523

11 years agoMerge "Changed setup intra recon to be row based"
Scott LaVarnway [Mon, 17 Sep 2012 23:07:08 +0000 (16:07 -0700)]
Merge "Changed setup intra recon to be row based"

11 years agoMerge "Update to 2 layer case in vp8_scalable_patterns."
Adrian Grange [Mon, 17 Sep 2012 20:40:07 +0000 (13:40 -0700)]
Merge "Update to 2 layer case in vp8_scalable_patterns."

11 years agoMerge "Moved mb_no_coeff_skip flag read"
Scott LaVarnway [Mon, 17 Sep 2012 20:08:38 +0000 (13:08 -0700)]
Merge "Moved mb_no_coeff_skip flag read"

11 years agoMerge "Removed pre_mvc"
Scott LaVarnway [Mon, 17 Sep 2012 20:08:18 +0000 (13:08 -0700)]
Merge "Removed pre_mvc"

11 years agoUpdate to 2 layer case in vp8_scalable_patterns.
Marco Paniconi [Mon, 17 Sep 2012 18:57:51 +0000 (11:57 -0700)]
Update to 2 layer case in vp8_scalable_patterns.

Change-Id: I11aa90be41dd585c9784301f47a9d580fac09260

11 years agoUpdate to vp8_scalable_patters.
Marco Paniconi [Fri, 14 Sep 2012 19:07:02 +0000 (12:07 -0700)]
Update to vp8_scalable_patters.

Change-Id: I43ea65bf0a35ddb33a096a392e10b1869ea73f9a

11 years agoMerge "Updates to vp8_scalable_patterns.c."
Adrian Grange [Fri, 14 Sep 2012 16:49:06 +0000 (09:49 -0700)]
Merge "Updates to vp8_scalable_patterns.c."

11 years agoMoved mb_no_coeff_skip flag read
Scott LaVarnway [Thu, 13 Sep 2012 20:37:24 +0000 (13:37 -0700)]
Moved mb_no_coeff_skip flag read

from vp8_decode_frame() to mb_mode_mv_init()

Change-Id: I267fd764a4c826d62e6799dceb1b8fb5f97fde6d

11 years agoRemoved pre_mvc
Scott LaVarnway [Thu, 13 Sep 2012 18:55:57 +0000 (11:55 -0700)]
Removed pre_mvc

Not used.

Change-Id: Ifbd97c9ad537d5184f7e305fa8acf6f027978b6b

11 years agoChanged setup intra recon to be row based
Scott LaVarnway [Thu, 13 Sep 2012 18:51:27 +0000 (11:51 -0700)]
Changed setup intra recon to be row based

Initialize the top line at the beginning of each frame and
the left column at the beginning of each row.

Change-Id: I5412f7ea49ffc490215cf65a62715a6c5e3a5a29

11 years agoMerge "valgrind found motion vectors which exceeded frame boundaries"
Jim Bankoski [Wed, 12 Sep 2012 20:50:29 +0000 (13:50 -0700)]
Merge "valgrind found motion vectors which exceeded frame boundaries"

11 years agofix valgrind mem leak on garbage decode
Jim Bankoski [Tue, 11 Sep 2012 23:30:19 +0000 (16:30 -0700)]
fix valgrind mem leak on garbage decode

Multiple decoders were getting allocated per frame.
If the decoder crashed we exitted with out freeing
them and the next time in we'd allocate over.

This fix removes the allocation and just has 8
boolcoders in the pbi structure

Change-Id: I638b5bda23b622b43b7992aec21dd7cf6f6278da

11 years agoUpdates to vp8_scalable_patterns.c.
Marco Paniconi [Tue, 11 Sep 2012 20:15:51 +0000 (13:15 -0700)]
Updates to vp8_scalable_patterns.c.

Updated/added a few cases of temporal patterns,
and some changes to the encoder settings.

Change-Id: Idaa75cfc4a26e5b6321f273ef9450b5c85368a4d

11 years agovalgrind found motion vectors which exceeded frame boundaries
Scott LaVarnway [Tue, 11 Sep 2012 16:14:02 +0000 (09:14 -0700)]
valgrind found motion vectors which exceeded frame boundaries

Bug introduced in I02d034c70cd97b65025d59dd67c695e1db529f0b

Change-Id: Ifb74ab659f3b3cf5f5b95046bacffb202d5b4d64

11 years agovalgrind caught uninitialized cond
Jim Bankoski [Fri, 7 Sep 2012 23:38:15 +0000 (16:38 -0700)]
valgrind caught uninitialized cond

If the decoder crashes and returned an error before it set up
block offsets but after it set up frame buffers.   We had a
problem decoding the next keyframe because the block offsets
were never set.

Change-Id: Ied2866e9770d80fc66241d5e0d978d4f5f9cdd89

11 years agoMerge "added encode/decode matching validation to tests"
Yaowu Xu [Thu, 6 Sep 2012 16:28:17 +0000 (09:28 -0700)]
Merge "added encode/decode matching validation to tests"

11 years agoAdjusting thresholds in mfqe post-processing
Deb Mukherjee [Tue, 4 Sep 2012 19:09:05 +0000 (12:09 -0700)]
Adjusting thresholds in mfqe post-processing

Adjusts some of the qualification thresholds in mfqe to eliminate
artifacts due to wrong decisions. Besides, a new qualification
criteria is used to disable mfqe if the quality of the previous
frame is itself not too good.

Change-Id: I4097c20b7fd4fcc60cc3003c1e33e8faae2ff066

11 years agoMerge "Encoder denoiser performance improvement"
Yunqing Wang [Fri, 31 Aug 2012 20:51:30 +0000 (13:51 -0700)]
Merge "Encoder denoiser performance improvement"

11 years agoEncoder denoiser performance improvement
Yunqing Wang [Fri, 10 Aug 2012 19:35:55 +0000 (12:35 -0700)]
Encoder denoiser performance improvement

The denoiser function was modified to reduce the computational
complexity.

1. The denoiser c function modification:
The original implementation calculated pixel's filter_coefficient
based on the pixel value difference between current raw frame and last
denoised raw frame, and stored them in lookup tables. For each pixel c,
find its coefficient using
    filter_coefficient[c] = LUT[abs_diff[c]];
and then apply filtering operation for the pixel.

The denoising filter costed about 12% of encoding time when it was
turned on, and half of the time was spent on finding coefficients in
lookup tables. In order to simplify the process, a short cut was taken.
The pixel adjustments vs. pixel diff value were calculated ahead of time.
    adjustment = filtered_value - current_raw
               = (filter_coefficient * diff + 128) >> 8

The adjustment vs. diff curve becomes flat very quick when diff increases.
This allowed us to use only several levels to get a close approximation
of the curve. Following the denoiser algorithm, the adjustments are
further modified according to how big the motion magnitude is.

2. The sse2 function was rewritten.

This change made denoiser filter function 3x faster, and improved the
encoder performance by 7% ~ 10% with the denoiser on.

Change-Id: I93a4308963b8e80c7307f96ffa8b8c667425bf50

11 years agoadded encode/decode matching validation to tests
Yaowu Xu [Thu, 30 Aug 2012 20:43:15 +0000 (13:43 -0700)]
added encode/decode matching validation to tests

This commit adds the ability of validating matched encoder and
decoder to unit tests.

Change-Id: Ie00d69a42477b6a69b324a6bd134939684f7300b

11 years agoMerge "msvs/tests: fix data alignment for asm tests"
John Koleszar [Fri, 31 Aug 2012 17:50:01 +0000 (10:50 -0700)]
Merge "msvs/tests: fix data alignment for asm tests"

11 years agomsvs/tests: fix data alignment for asm tests
James Zern [Tue, 28 Aug 2012 00:13:09 +0000 (17:13 -0700)]
msvs/tests: fix data alignment for asm tests

Replace DECLARE_ALIGNED_ with vpx_memalign()

DECLARE_ALIGNED (__declspec(align())) does not work as intended when
used on class data members:

Data in classes or structures is aligned within the class or structure
at the minimum of its natural alignment and the current packing setting
(from #pragma pack or the /Zp compiler option)

Change-Id: I304aaa6c3716fbfae24675ecf192f4b40787e83e

11 years agoMerge "silent one more compiler warning"
Yaowu Xu [Tue, 28 Aug 2012 14:03:19 +0000 (07:03 -0700)]
Merge "silent one more compiler warning"

11 years agosilent one more compiler warning
Yaowu Xu [Tue, 28 Aug 2012 13:33:24 +0000 (06:33 -0700)]
silent one more compiler warning

Change-Id: I621a2bbd5f07691fa76dac36b65f406ad4fed792

11 years agoMerge "Added error checking to vp8cx_create_encoder_threads()"
Scott LaVarnway [Thu, 23 Aug 2012 20:55:06 +0000 (13:55 -0700)]
Merge "Added error checking to vp8cx_create_encoder_threads()"

11 years agoMerge "Added row based extend borders"
Scott LaVarnway [Thu, 23 Aug 2012 00:23:28 +0000 (17:23 -0700)]
Merge "Added row based extend borders"

11 years agoMerge "Add biasing to ZEROMV for videos with static background"
Jim Bankoski [Tue, 21 Aug 2012 22:56:59 +0000 (15:56 -0700)]
Merge "Add biasing to ZEROMV for videos with static background"

11 years agoMerge "Removed unused dr from VP8D_COMP"
Scott LaVarnway [Tue, 21 Aug 2012 22:20:14 +0000 (15:20 -0700)]
Merge "Removed unused dr from VP8D_COMP"

11 years agoMerge "Removed last_kf_gf_q"
Scott LaVarnway [Tue, 21 Aug 2012 22:19:58 +0000 (15:19 -0700)]
Merge "Removed last_kf_gf_q"

11 years agoAdd biasing to ZEROMV for videos with static background
Yunqing Wang [Tue, 21 Aug 2012 17:52:35 +0000 (10:52 -0700)]
Add biasing to ZEROMV for videos with static background

For videos with big static background(such as video conferencing
clips), the mode decision was biased to ZEROMV in order to
obtain a stable background. The percentage of ZEROMV on last
frame was used to predict if there is static area in current frame,
and checking already-encoded neighboring macroblocks' motion
vectors to make sure the local area has low motion.

Change-Id: I05b3241d3a56a0bda88b6681e5646c1c8baf2e57

11 years agoMerge "sad_test: fix msvc build"
James Zern [Tue, 21 Aug 2012 20:33:46 +0000 (13:33 -0700)]
Merge "sad_test: fix msvc build"

11 years agoMerge "sixtap_predict_test: fix msvc build"
James Zern [Tue, 21 Aug 2012 20:32:17 +0000 (13:32 -0700)]
Merge "sixtap_predict_test: fix msvc build"

11 years agobuild: hide msvs project command in non-verbose mode
James Zern [Wed, 15 Aug 2012 18:47:13 +0000 (11:47 -0700)]
build: hide msvs project command in non-verbose mode

Change-Id: Id1d0deb6a2c556a0213d916c2638ef6285c2eb00

11 years agoMerge "fix msvc configure"
James Zern [Tue, 21 Aug 2012 20:26:29 +0000 (13:26 -0700)]
Merge "fix msvc configure"

11 years agoAdded row based extend borders
Scott LaVarnway [Tue, 21 Aug 2012 19:42:49 +0000 (12:42 -0700)]
Added row based extend borders

Required for frame-based multithreading

Change-Id: I361ec468b5bda7836116c5f0bf3a83f60c214a73

11 years agovpx.pc: move -lm to Libs.private
John Koleszar [Tue, 21 Aug 2012 17:54:30 +0000 (10:54 -0700)]
vpx.pc: move -lm to Libs.private

Users of libvpx should not use libm transitively, so mark it as private.

Change-Id: Ic940aefe737a6f9a780ea742ea5c6be40c30a73e

11 years agoMerge "Fix inter_zz_count calculation bug"
Yunqing Wang [Tue, 21 Aug 2012 16:28:10 +0000 (09:28 -0700)]
Merge "Fix inter_zz_count calculation bug"

11 years agosad_test: fix msvc build
James Zern [Wed, 15 Aug 2012 18:54:41 +0000 (11:54 -0700)]
sad_test: fix msvc build

pass a variable to make_tuple() rather than a function, fixes type
errors

Change-Id: Ic0cbd25d0ca35ad08c672040b4141b3b81695752

11 years agosixtap_predict_test: fix msvc build
James Zern [Wed, 15 Aug 2012 18:54:41 +0000 (11:54 -0700)]
sixtap_predict_test: fix msvc build

pass a variable to make_tuple() rather than a function, fixes type
errors

Change-Id: I5e04b61b5ab58cc0090ef21119486ca04853af61

11 years agoMerge "Added row based loopfilter"
Jim Bankoski [Tue, 21 Aug 2012 13:02:31 +0000 (06:02 -0700)]
Merge "Added row based loopfilter"

11 years agoFix inter_zz_count calculation bug
Yunqing Wang [Tue, 21 Aug 2012 00:31:44 +0000 (17:31 -0700)]
Fix inter_zz_count calculation bug

The current way of counting inter_zz_count doesn't work correctly
in multi-threaded encoding. Calculating it after the frame is
encoded fixed the problem.

Change-Id: Ifcb1972cde950b8cc194f75c6d7b6af09e8b0e65

11 years agoMerge "realtime turndown loopfilter for 00"
Yaowu Xu [Mon, 20 Aug 2012 20:44:56 +0000 (13:44 -0700)]
Merge "realtime turndown loopfilter for 00"

11 years agoMerge "static threshold fix for realtime"
Yaowu Xu [Mon, 20 Aug 2012 20:40:53 +0000 (13:40 -0700)]
Merge "static threshold fix for realtime"

11 years agorealtime turndown loopfilter for 00
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

11 years agostatic threshold fix for realtime
Jim Bankoski [Mon, 20 Aug 2012 19:58:31 +0000 (12:58 -0700)]
static threshold fix for realtime

This code allows us to skip encoding if the sse
is less than the error we could possibly encode.

Change-Id: Iefb590dc0ee30b660495218398c7969f7d5fd19f

11 years agosilent compiling warnings for VC9 build
Yaowu Xu [Fri, 17 Aug 2012 17:05:35 +0000 (10:05 -0700)]
silent compiling warnings for VC9 build

Change-Id: Iaa947e640f27e6f6eaf7d845f243536bca2df513

11 years agofix msvc configure
James Zern [Wed, 15 Aug 2012 18:45:12 +0000 (11:45 -0700)]
fix msvc configure

visual studio targets do not depend on executables, only the projects
produced.
tested with --target=x86-win32-vs9
fixes:
...
make[1]: *** No rule to make target `test_libvpx', needed by `.bins'.
Stop.
Makefile:17: recipe for target `.DEFAULT' failed

Change-Id: I606ab32d5e26fee352f25c822e0f496eff165382

11 years agoParse out arm isa targets from dumpmachine
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

11 years agoAdded error checking to vp8cx_create_encoder_threads()
Scott LaVarnway [Tue, 14 Aug 2012 19:00:23 +0000 (12:00 -0700)]
Added error checking to vp8cx_create_encoder_threads()

Added checks for pthread_create() errors.

Change-Id: Ie198ef5c14314fe252d2e02f7fe5bfacc7e16377

11 years agodo not error out on generic-gnu + --enable-shared
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

11 years agoMerge "vpx.pc: add missing library for static links"
John Koleszar [Thu, 9 Aug 2012 16:10:55 +0000 (09:10 -0700)]
Merge "vpx.pc: add missing library for static links"

11 years agoconfigure: check for pthreads building on windows with gcc
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

11 years agovpx.pc: add missing library for static links
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

11 years agofix timestamp calculation rollover w/altref
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

11 years agoEncoderTest: check that timestamps are monotonic
James Zern [Wed, 8 Aug 2012 21:16:08 +0000 (14:16 -0700)]
EncoderTest: check that timestamps are monotonic

Change-Id: I813fa94c83df6282f382b24bbaccb1fe2fa94276

11 years agoMerge "tests: fix Continue() signatures"
John Koleszar [Wed, 8 Aug 2012 18:24:42 +0000 (11:24 -0700)]
Merge "tests: fix Continue() signatures"

11 years agoMerge "keyframe_test: use a fixed speed step for realtime"
John Koleszar [Wed, 8 Aug 2012 18:23:49 +0000 (11:23 -0700)]
Merge "keyframe_test: use a fixed speed step for realtime"

11 years agoUpdate armv6 vp8_intra4x4_predict
Johann [Thu, 2 Aug 2012 23:09:12 +0000 (16:09 -0700)]
Update armv6 vp8_intra4x4_predict

Change-Id: I52a3b0a4a42e5af91b987e19523df07c8f467847