]> granicus.if.org Git - libvpx/log
libvpx
11 years agoAdd VP9_GET_REFERENCE control
John Koleszar [Wed, 13 Mar 2013 19:15:43 +0000 (12:15 -0700)]
Add VP9_GET_REFERENCE control

This is like VP8_COPY_REFERENCE, but returns a pointer to the reference
frame rather than a copy of it. This is useful when the application
doesn't know what the size of the reference is, as is the case when
scaling is in effect.

Change-Id: I63667109f65510364d0e397ebe56217140772085

11 years agofix superframe index marker masks
John Koleszar [Wed, 13 Mar 2013 02:03:05 +0000 (19:03 -0700)]
fix superframe index marker masks

The superframe index marker byte carries data in the lower 5 bits. Only the
upper 3 should be used as part of the mask to detect it. By masking with
0xf0, the previous code was incorrect for frames over 65k bytes.

Change-Id: I6248889f5af227457f359a56b2348ef6db87a3b4

11 years agofix superframe index with lagged encoding
John Koleszar [Tue, 12 Mar 2013 23:33:38 +0000 (16:33 -0700)]
fix superframe index with lagged encoding

If a superframe (ARF) is generated while flushing the lagged frames
at the end of the clip, the buffer pointer wasn't being properly
updated to account for the size of the index, causing the next
frame to overwrite the index on the previous frame.

Change-Id: Ib158cc8e4183d663bdfb9ba002dd4c98916abdc9

11 years agoMerge "disambiguate superframe index in vp9_stop_encode()" into experimental
Paul Wilkins [Tue, 12 Mar 2013 23:00:30 +0000 (16:00 -0700)]
Merge "disambiguate superframe index in vp9_stop_encode()" into experimental

11 years agodisambiguate superframe index in vp9_stop_encode()
John Koleszar [Tue, 12 Mar 2013 21:30:18 +0000 (14:30 -0700)]
disambiguate superframe index in vp9_stop_encode()

If the bool-coded partition naturally ends in a byte that matches the
superframe index marker, it could lead to a parse error. This commit
ensures that if such a marker is seen, it is padded out with an
additional zero byte to disambiguate it.

Change-Id: Id977de05745b6fa9ef08afb71e210a2a3ecca02e

11 years agoMerge "Change buffer update rules on ARF overlay." into experimental
Paul Wilkins [Tue, 12 Mar 2013 18:07:20 +0000 (11:07 -0700)]
Merge "Change buffer update rules on ARF overlay." into experimental

11 years agoMerge "Fix typo in comment for number of extra bits for cat6 tokens." into experimental
Ronald S. Bultje [Tue, 12 Mar 2013 17:45:12 +0000 (10:45 -0700)]
Merge "Fix typo in comment for number of extra bits for cat6 tokens." into experimental

11 years agoMerge "fix an assumption about uv_stride" into experimental
John Koleszar [Tue, 12 Mar 2013 17:44:31 +0000 (10:44 -0700)]
Merge "fix an assumption about uv_stride" into experimental

11 years agoFix typo in comment for number of extra bits for cat6 tokens.
Ronald S. Bultje [Mon, 11 Mar 2013 16:20:57 +0000 (09:20 -0700)]
Fix typo in comment for number of extra bits for cat6 tokens.

Change-Id: I07ddf3be8bc5d6c2eb561d4241879777c315b183

11 years agoMerge "Changes to maximum gf/arf interval." into experimental
Paul Wilkins [Tue, 12 Mar 2013 16:59:43 +0000 (09:59 -0700)]
Merge "Changes to maximum gf/arf interval." into experimental

11 years agoChange buffer update rules on ARF overlay.
Paul Wilkins [Tue, 12 Mar 2013 15:33:40 +0000 (15:33 +0000)]
Change buffer update rules on ARF overlay.

When coding the frame that corresponds to the midpoint frame
defining an ARF, do not update the last reference frame buffer.
Previously this buffer was updated meaning that when coding the next
ARF all the reference buffers were the same (or nearly so).
Turning the update off means that the frame before is still available
as an alternative predictor and for use in compound prediction.

Also fixed inconsistency in test for mismatch (patch from JK).

Net average gains (derf 0.049, yt 0.163, yt-hd 0.207, std-hd 0.286)

Change-Id: Ifee21da21ccbb1648ac2eafe890d3ce60562c7bc

11 years agofix an assumption about uv_stride
John Koleszar [Tue, 12 Mar 2013 15:44:53 +0000 (08:44 -0700)]
fix an assumption about uv_stride

Use the uv_stride from the framebuffer rather than deriving it from the
y_stride.

Change-Id: I94581cb741539d094ff062b3d008235556903b8c

11 years agoMerge "Code cleanup." into experimental
Dmitry Kovalev [Tue, 12 Mar 2013 00:22:21 +0000 (17:22 -0700)]
Merge "Code cleanup." into experimental

11 years agoCode cleanup.
Dmitry Kovalev [Tue, 12 Mar 2013 00:02:27 +0000 (17:02 -0700)]
Code cleanup.

Removing redundant code, introducing new functions for better
decomposition, adding 'clamp' function to vp9_common.h.

Change-Id: Ic3b8ca13bbc38f60f0c9c43910b5802005e31aaf

11 years agoMerge "Reinitialize motion search tables on frame size change" into experimental
John Koleszar [Mon, 11 Mar 2013 23:32:03 +0000 (16:32 -0700)]
Merge "Reinitialize motion search tables on frame size change" into experimental

11 years agoMerge "Add 'superframe' index" into experimental
John Koleszar [Mon, 11 Mar 2013 23:31:48 +0000 (16:31 -0700)]
Merge "Add 'superframe' index" into experimental

11 years agoMerge "Update ResizeInternalTest threshold" into experimental
John Koleszar [Mon, 11 Mar 2013 23:18:36 +0000 (16:18 -0700)]
Merge "Update ResizeInternalTest threshold" into experimental

11 years agoChanges to maximum gf/arf interval.
Paul Wilkins [Wed, 6 Mar 2013 11:33:43 +0000 (11:33 +0000)]
Changes to maximum gf/arf interval.

This patch puts in an adjustment to the maximum gf/arf
interval based on the active q range.  It sets a fixed
baseline maximum of 16 but can drop this down to 12 at
lower q. This required some re-ordering in the first pass
code to insure we have a Q range estimate before defining
the first gf sequence.

The main gains seed are int he STD hd set on 50fps clips
where previously the interval could rise as high as 25.
On the std hd clip the gains are around 2.8% with limit set
to 300 frames.

When combined with the one shot rate control flags we get
combined of:

derf 1.55% (limit300), yt 7.25%, hd 5.17% std-hd 5.84% (limit300)

Change-Id: Ib380d51354511f2ff0f171a8df4e74291c0421f9

11 years agoFix vp9_tree_probs_from_distribution with CONFIG_CODE_NONZEROCOUNT
John Koleszar [Mon, 11 Mar 2013 18:03:36 +0000 (11:03 -0700)]
Fix vp9_tree_probs_from_distribution with CONFIG_CODE_NONZEROCOUNT

The automatic merge result was incomplete.

Change-Id: I8976318bfc346d867660a013a302c80edb25fc29

11 years agoMerge "Simplify vp9_adapt_nmv_probs" into experimental
John Koleszar [Mon, 11 Mar 2013 16:57:53 +0000 (09:57 -0700)]
Merge "Simplify vp9_adapt_nmv_probs" into experimental

11 years agoSimplify vp9_adapt_nmv_probs
John Koleszar [Mon, 11 Mar 2013 16:34:05 +0000 (09:34 -0700)]
Simplify vp9_adapt_nmv_probs

Remove the temporary branch count arrays and build the adapted probabilities
while walking the tree. Gives an additional 1.5% or so on CIF.

Change-Id: I875d61e5e0ec778e5d2f7f9d0837b989a91cf3a3

11 years agoMerge "Minor optimization in mv entropy adaptation" into experimental
Deb Mukherjee [Mon, 11 Mar 2013 16:43:54 +0000 (09:43 -0700)]
Merge "Minor optimization in mv entropy adaptation" into experimental

11 years agoMerge "Optimize vp9_tree_probs_from_distribution" into experimental
John Koleszar [Mon, 11 Mar 2013 16:32:11 +0000 (09:32 -0700)]
Merge "Optimize vp9_tree_probs_from_distribution" into experimental

11 years agoMinor optimization in mv entropy adaptation
Deb Mukherjee [Mon, 11 Mar 2013 15:49:14 +0000 (08:49 -0700)]
Minor optimization in mv entropy adaptation

Adds a check to exit from the increment_nmv_count function when the
increment is 0.

Change-Id: I99c1e342d351f7800e23590f9c2419881bf1d708

11 years agoOptimize vp9_tree_probs_from_distribution
John Koleszar [Sun, 10 Mar 2013 20:39:30 +0000 (13:39 -0700)]
Optimize vp9_tree_probs_from_distribution

The previous implementation visited each node in the tree multiple times
because it used each symbol's encoding to revisit the branches taken and
increment its count. Instead, we can traverse the tree depth first and
calculate the probabilities and branch counts as we walk back up. The
complexity goes from somewhere between O(nlogn) and O(n^2) (depending on
how balanced the tree is) to O(n).

Only tested one clip (256kbps, CIF), saw 13% decoding perf improvement.

Note that this optimization should port trivially to VP8 as well. In VP8,
the decoder doesn't use this function, but it does routinely show up
on the profile for realtime encoding.

Change-Id: I4f2848e4f41dc9a7694f73f3e75034bce08d1b12

11 years agoContinued experiment with nonzero count
Deb Mukherjee [Fri, 8 Mar 2013 04:56:34 +0000 (20:56 -0800)]
Continued experiment with nonzero count

Adds probability updates for extra bits for the nzcs, code for
getting nzc stats, plus some minor cleanups and fixes.

Change-Id: If2814e7f04fb52f5025ad9f400f3e6c50a00b543

11 years agoMerge "Add support for tx_select in i8x8 encoding in keyframes." into experimental
Ronald S. Bultje [Sat, 9 Mar 2013 00:25:27 +0000 (16:25 -0800)]
Merge "Add support for tx_select in i8x8 encoding in keyframes." into experimental

11 years agoMerge "Add vp9_idct4_1d_sse2" into experimental
Yunqing Wang [Fri, 8 Mar 2013 23:14:02 +0000 (15:14 -0800)]
Merge "Add vp9_idct4_1d_sse2" into experimental

11 years agoAdd vp9_idct4_1d_sse2
Yunqing Wang [Fri, 8 Mar 2013 18:54:30 +0000 (10:54 -0800)]
Add vp9_idct4_1d_sse2

Added SSE2 idct4_1d which is called by vp9_short_iht4x4. Also,
modified the parameter type passed to vp9_short_iht functions to
make it work with rtcd prototype.

Change-Id: I81ba7cb4db6738f1923383b52a06deb760923ffe

11 years agoMerge "Consistent usage of ROUND_POWER_OF_TWO macro." into experimental
Dmitry Kovalev [Fri, 8 Mar 2013 19:35:22 +0000 (11:35 -0800)]
Merge "Consistent usage of ROUND_POWER_OF_TWO macro." into experimental

11 years agoMerge "Optimize add_constant_residual function" into experimental
Yunqing Wang [Fri, 8 Mar 2013 18:18:52 +0000 (10:18 -0800)]
Merge "Optimize add_constant_residual function" into experimental

11 years agoExtend diff MV limit from +/-256 to +/-1024
Jingning Han [Wed, 6 Mar 2013 20:02:15 +0000 (12:02 -0800)]
Extend diff MV limit from +/-256 to +/-1024

Increase the motion search range by 4x. Change MV_CLASS tree of the
entropy coding to allow two additional mv classes to cover the
extended motion vector limit. The codec determines the effective
motion search range conditioned on the actual frame dimension.

It provides coding gains:

stdhd 0.39%
yt    0.56%
hd    0.47%

Major coding performance gains are packed in several sequences with
intense motion activities, e.g., ped_1080p gains 7% at high bit-rates,
and on average 3%.

TODO: Need to further tune the rate control and motion search units.

Change-Id: Ib842540a6796fbee5a797809433ef6a477c6d78d

11 years agoAdd support for tx_select in i8x8 encoding in keyframes.
Ronald S. Bultje [Thu, 7 Mar 2013 18:45:25 +0000 (10:45 -0800)]
Add support for tx_select in i8x8 encoding in keyframes.

Also enable tx_select for keyframes.

Change-Id: Iadb1231d9fa7af0c8dce3d9b41830b93a302479e

11 years agoOptimize add_constant_residual function
Yunqing Wang [Thu, 7 Mar 2013 23:48:14 +0000 (15:48 -0800)]
Optimize add_constant_residual function

Optimized adding constant diff to predictor, which gave about
2% decoder performance gain.

Change-Id: I47db20c31428e8c4a8f16214a85cbe386a6e9303

11 years agoMerge "Allocate 16-byte aligned diff buffer" into experimental
Yunqing Wang [Thu, 7 Mar 2013 23:40:37 +0000 (15:40 -0800)]
Merge "Allocate 16-byte aligned diff buffer" into experimental

11 years agoAllocate 16-byte aligned diff buffer
Yunqing Wang [Thu, 7 Mar 2013 23:29:27 +0000 (15:29 -0800)]
Allocate 16-byte aligned diff buffer

This was done based on John's suggestion.

Change-Id: I62516a513c31fe3dbea0d6cd063df79d9e819ec8

11 years agoConsistent usage of ROUND_POWER_OF_TWO macro.
Dmitry Kovalev [Thu, 7 Mar 2013 20:24:35 +0000 (12:24 -0800)]
Consistent usage of ROUND_POWER_OF_TWO macro.

Change-Id: I44660975e9985310d8c654c158ee7a61291b5a08

11 years agoUpdate ADST selection if tx_size < block_size.
Ronald S. Bultje [Thu, 7 Mar 2013 17:17:35 +0000 (09:17 -0800)]
Update ADST selection if tx_size < block_size.

Change-Id: Ic9b336486774c95ffbb92adcb110cc0fc2a83cc5

11 years agoRe-add support for ADST in superblocks.
Ronald S. Bultje [Tue, 5 Mar 2013 23:18:06 +0000 (15:18 -0800)]
Re-add support for ADST in superblocks.

This also changes the RD search to take account of the correct block
index when searching (this is required for ADST positioning to work
correctly in combination with tx_select).

Change-Id: Ie50d05b3a024a64ecd0b376887aa38ac5f7b6af6

11 years agoFix issue in add_residual intrinsic function
Yunqing Wang [Thu, 7 Mar 2013 17:15:32 +0000 (09:15 -0800)]
Fix issue in add_residual intrinsic function

Yaowu found this function had a compiling issue with MSVC because
of using _mm_storel_pi((__m64 *)(dest + 0 * stride), (__m128)p0).
To be safe, changed back to use integer store instruction.

Also, for some build, diff could not always be 16-byte aligned.
Changed that in the code.

Change-Id: I9995e5446af15dad18f3c5c0bad1ae68abef6c0d

11 years agoCoding con-zero count rather than EOB for coeffs
Deb Mukherjee [Wed, 20 Feb 2013 18:16:24 +0000 (10:16 -0800)]
Coding con-zero count rather than EOB for coeffs

This patch revamps the entropy coding of coefficients to code first
a non-zero count per coded block and correspondingly remove the EOB
token from the token set.

STATUS:
Main encode/decode code achieving encode/decode sync - done.
Forward and backward probability updates to the nzcs - done.
Rd costing updates for nzcs - done.
Note: The dynamic progrmaming apporach used in trellis quantization
is not exactly compatible with nzcs. A suboptimal approach has been
used instead where branch costs are updated to account for changes
in the nzcs.

TODO:
Training the default probs/counts for nzcs

Change-Id: I951bc1e22f47885077a7453a09b0493daa77883d

11 years agoMerge "Code cleanup." into experimental
Dmitry Kovalev [Thu, 7 Mar 2013 00:57:34 +0000 (16:57 -0800)]
Merge "Code cleanup." into experimental

11 years agoMerge "Added stricter Q control flag." into experimental
Paul Wilkins [Wed, 6 Mar 2013 12:32:22 +0000 (04:32 -0800)]
Merge "Added stricter Q control flag." into experimental

11 years agoAdded stricter Q control flag.
Paul Wilkins [Tue, 26 Feb 2013 16:53:03 +0000 (16:53 +0000)]
Added stricter Q control flag.

Added a variant of the one shot maxQ flag
for two pass that forces a fixed Q for the
normal inter frames. Disabled by default.
Also small adjustment to the Bits per MB
estimation.
Change-Id: I87efdfb2d094fe1340ca9ddae37470d7b278c8b8

11 years agoMerge "Optimize add_residual function" into experimental
Yunqing Wang [Wed, 6 Mar 2013 00:47:58 +0000 (16:47 -0800)]
Merge "Optimize add_residual function" into experimental

11 years agoOptimize add_residual function
Yunqing Wang [Tue, 5 Mar 2013 22:38:00 +0000 (14:38 -0800)]
Optimize add_residual function

Optimized adding diff to predictor, which gave 0.8% decoder
performance gain.

Change-Id: Ic920f0baa8cbd13a73fa77b7f9da83b58749f0f8

11 years agoCode cleanup.
Dmitry Kovalev [Tue, 5 Mar 2013 22:12:16 +0000 (14:12 -0800)]
Code cleanup.

Removing redundant 'extern' keywords, fixing formatting and #include order,
code simplification.

Change-Id: I0e5fdc8009010f3f885f13b5d76859b9da511758

11 years agoUpdate ResizeInternalTest threshold
John Koleszar [Tue, 5 Mar 2013 21:44:56 +0000 (13:44 -0800)]
Update ResizeInternalTest threshold

Improved coding performance made this test fail. Adjust the threshold
so that it passes again. A more stable metric is an open TODO.

Change-Id: I56e18749ced48123ee2488888a3eed631759912b

11 years agoAdd 'superframe' index
John Koleszar [Tue, 5 Mar 2013 20:23:34 +0000 (12:23 -0800)]
Add 'superframe' index

A 'superframe' is a group of frames that share the same PTS, but have a
defined decoding order. This commit adds the ability to append an index
to such a group of frames, allowing for random access to the constituent
frames. This could be useful for frame-level parallelism or partial
decoding in a multilayer scenario.

Decoding the stream serially without such an index should work as a
fallback, and VP9/TestSuperframeIndexIsOptional verifies that.

Change-Id: Idff83b7560e1a7077d8fb067bfbc45b567e78b1c

11 years agoMerge changes Ifacbf5a0,Ibad7c3dd into experimental
Ronald S. Bultje [Tue, 5 Mar 2013 19:17:14 +0000 (11:17 -0800)]
Merge changes Ifacbf5a0,Ibad7c3dd into experimental

* changes:
  vpxenc: actually report mismatch on stderr.
  Make superblocks independent of macroblock code and data.

11 years agoMerge "Code cleanup and simplification of build_4x4uvmvs function." into experimental
Dmitry Kovalev [Tue, 5 Mar 2013 00:57:30 +0000 (16:57 -0800)]
Merge "Code cleanup and simplification of build_4x4uvmvs function." into experimental

11 years agovpxenc: actually report mismatch on stderr.
Ronald S. Bultje [Mon, 4 Mar 2013 22:12:49 +0000 (14:12 -0800)]
vpxenc: actually report mismatch on stderr.

Because ctx->err is not set in that case, it will not report the error
on stderr.

Change-Id: Ifacbf5a03e676fd56522b03c0281d6c723c563ee

11 years agoMake superblocks independent of macroblock code and data.
Ronald S. Bultje [Mon, 4 Mar 2013 22:12:17 +0000 (14:12 -0800)]
Make superblocks independent of macroblock code and data.

Split macroblock and superblock tokenization and detokenization
functions and coefficient-related data structs so that the bitstream
layout and related code of superblock coefficients looks less like it's
a hack to fit macroblocks in superblocks.

In addition, unify chroma transform size selection from luma transform
size (i.e. always use the same size, as long as it fits the predictor);
in practice, this means 32x32 and 64x64 superblocks using the 16x16 luma
transform will now use the 16x16 (instead of the 8x8) chroma transform,
and 64x64 superblocks using the 32x32 luma transform will now use the
32x32 (instead of the 16x16) chroma transform.

Lastly, add a trellis optimize function for 32x32 transform blocks.

HD gains about 0.3%, STDHD about 0.15% and derf about 0.1%. There's
a few negative points here and there that I might want to analyze
a little closer.

Change-Id: Ibad7c3ddfe1acfc52771dfc27c03e9783e054430

11 years agoReinitialize motion search tables on frame size change
John Koleszar [Mon, 4 Mar 2013 23:21:45 +0000 (15:21 -0800)]
Reinitialize motion search tables on frame size change

Make sure the motion search is done with the offsets calculated from
the correct stride.

Change-Id: Ifbcc0f742eda3399c255bfcfa1cdee9a4bb4b4e7

11 years agoMerge "Code cleanup." into experimental
Dmitry Kovalev [Mon, 4 Mar 2013 23:41:15 +0000 (15:41 -0800)]
Merge "Code cleanup." into experimental

11 years agoMerge "Optimize vp9_short_idct4x4llm function" into experimental
Yunqing Wang [Mon, 4 Mar 2013 22:13:31 +0000 (14:13 -0800)]
Merge "Optimize vp9_short_idct4x4llm function" into experimental

11 years agoMerge "Rename quantize_sse2.c to quantize_sse2_intrinsics.c to avoid collision."...
Yaowu Xu [Mon, 4 Mar 2013 21:13:29 +0000 (13:13 -0800)]
Merge "Rename quantize_sse2.c to quantize_sse2_intrinsics.c to avoid collision." into experimental

11 years agoRename quantize_sse2.c to quantize_sse2_intrinsics.c to avoid collision.
Ronald S. Bultje [Mon, 4 Mar 2013 20:25:01 +0000 (12:25 -0800)]
Rename quantize_sse2.c to quantize_sse2_intrinsics.c to avoid collision.

Change-Id: I5637d491eb6a9b7633f72e03fd9df72131eeb121

11 years agoOptimize vp9_short_idct4x4llm function
Yunqing Wang [Mon, 4 Mar 2013 20:01:27 +0000 (12:01 -0800)]
Optimize vp9_short_idct4x4llm function

Wrote a SSE2 vp9_short_idct4x4llm to improve the decoder
performance.

Change-Id: I90b9d48c4bf37aaf47995bffe7e584e6d4a2c000

11 years agoSupport 16K sequence coding
Jingning Han [Thu, 28 Feb 2013 01:09:12 +0000 (17:09 -0800)]
Support 16K sequence coding

Fixed a couple of variable/function definitions, as well as header
handling to support 16K sequence coding at high bit-rates.

The width and height are each specified by two bytes in the header.
Use an extra byte to explicitly indicate the scaling factors in
both directions, each ranging from 0 to 15.

Tested coding up to 16400x16400 dimension.

Change-Id: Ibc2225c6036620270f2c0cf5172d1760aaec10ec

11 years agoMerge changes If5896507,I06b5ba5c,I2712f99e into experimental
John Koleszar [Sat, 2 Mar 2013 04:50:33 +0000 (20:50 -0800)]
Merge changes If5896507,I06b5ba5c,I2712f99e into experimental

* changes:
  Add unit test for x4 multi-SAD functions
  Add VP9 1 block SAD functions to unit test
  Merge master branch into experimental

11 years agoAdd unit test for x4 multi-SAD functions
John Koleszar [Fri, 1 Mar 2013 20:43:41 +0000 (12:43 -0800)]
Add unit test for x4 multi-SAD functions

Update the function prototypes to match between VP9 and VP8.

Change-Id: If58965073989e87df3b62b67a030ec6ce23ca04f

11 years agoAdd VP9 1 block SAD functions to unit test
John Koleszar [Fri, 1 Mar 2013 01:03:02 +0000 (17:03 -0800)]
Add VP9 1 block SAD functions to unit test

Change-Id: I06b5ba5c457944cfa4cd9f53c3bd8cda132439c2

11 years agoCode cleanup and simplification of build_4x4uvmvs function.
Dmitry Kovalev [Sat, 2 Mar 2013 01:50:55 +0000 (17:50 -0800)]
Code cleanup and simplification of build_4x4uvmvs function.

Change-Id: Iab0176f058045181821ded95ff1cf423af1625f9

11 years agoCode cleanup.
Dmitry Kovalev [Sat, 2 Mar 2013 01:39:31 +0000 (17:39 -0800)]
Code cleanup.

Removing redundant 'extern' keyword, lowercase variable names.

Change-Id: I608e8d8579aba8981f5fac3493f77b4481b13808

11 years agoInitialize pass variable in tile test.
Ronald S. Bultje [Fri, 1 Mar 2013 20:43:10 +0000 (12:43 -0800)]
Initialize pass variable in tile test.

Change-Id: I7977694223521404fc69f29ae2cff03e36e87299

11 years agoMerge master branch into experimental
John Koleszar [Fri, 1 Mar 2013 00:25:38 +0000 (16:25 -0800)]
Merge master branch into experimental

Picks up some build system changes, compiler warning fixes, etc.

Change-Id: I2712f99e653502818a101a72696ad54018152d4e

11 years agoMerge "Adjust the max_gf_interval initialization" into experimental
Yaowu Xu [Fri, 1 Mar 2013 19:02:23 +0000 (11:02 -0800)]
Merge "Adjust the max_gf_interval initialization" into experimental

11 years agoMerge "Add eob<=10 case in idct32x32" into experimental
Yunqing Wang [Fri, 1 Mar 2013 16:58:19 +0000 (08:58 -0800)]
Merge "Add eob<=10 case in idct32x32" into experimental

11 years agoAdjust the max_gf_interval initialization
Yaowu Xu [Thu, 28 Feb 2013 17:14:47 +0000 (09:14 -0800)]
Adjust the max_gf_interval initialization

to be a fixed value of 15.

Test results:
cif:  .124%, .068%, .081%
std-hd: 2.809%, 3.174%, 2.705%

Change-Id: I380c8152c973506094da15eab59e3aa22b75a983

11 years agoMerge "Code cleanup." into experimental
Dmitry Kovalev [Fri, 1 Mar 2013 01:22:50 +0000 (17:22 -0800)]
Merge "Code cleanup." into experimental

11 years agoAdd eob<=10 case in idct32x32
Yunqing Wang [Fri, 1 Mar 2013 00:32:05 +0000 (16:32 -0800)]
Add eob<=10 case in idct32x32

Simplified idct32x32 calculation when there are only 10 or less
non-zero coefficients in 32x32 block. This helps the decoder
performance.

Change-Id: If7f8893d27b64a9892b4b2621a37fdf4ac0c2a6d

11 years agoMerge changes I9be9c990,Ic3b97339 into experimental
Dmitry Kovalev [Fri, 1 Mar 2013 00:07:45 +0000 (16:07 -0800)]
Merge changes I9be9c990,Ic3b97339 into experimental

* changes:
  Ignoring test video sequences in the source tree.
  Code cleanup.

11 years agofirstpass.c: correct casting around gf_group_bits
James Zern [Thu, 28 Feb 2013 23:45:29 +0000 (15:45 -0800)]
firstpass.c: correct casting around gf_group_bits

gf_group_bits is int64_t remove casts to int.

Change-Id: I3b4225905041fac9af9fdfcbcb6f1c357ea4b593

11 years agoMerge "Fix use of uninitialized memory in CONFIG_ABOVESPREFMV" into experimental
John Koleszar [Thu, 28 Feb 2013 23:18:50 +0000 (15:18 -0800)]
Merge "Fix use of uninitialized memory in CONFIG_ABOVESPREFMV" into experimental

11 years agoMerge "mv dct_sse2.c dct_sse2_intrinsics.c to avoid collision" into experimental
Jim Bankoski [Thu, 28 Feb 2013 23:16:43 +0000 (15:16 -0800)]
Merge "mv dct_sse2.c dct_sse2_intrinsics.c to avoid collision" into experimental

11 years agoIgnoring test video sequences in the source tree.
Dmitry Kovalev [Thu, 28 Feb 2013 23:10:48 +0000 (15:10 -0800)]
Ignoring test video sequences in the source tree.

Adding /*.ivf and /*.ivf.md5 filename patterns to .gitignore.

Change-Id: I9be9c99023e6b59bcc9cfbb6c9d6cdc8e500fc4f

11 years agoCode cleanup.
Dmitry Kovalev [Thu, 28 Feb 2013 22:40:20 +0000 (14:40 -0800)]
Code cleanup.

Lower case variable names, converting while loops to for loops.

Change-Id: Ic3b973391eef7472a99d18d02fe79cfef5e04e62

11 years agoMerge "Refactor vp9_dequant_idct_add function" into experimental
Yunqing Wang [Thu, 28 Feb 2013 22:34:27 +0000 (14:34 -0800)]
Merge "Refactor vp9_dequant_idct_add function" into experimental

11 years agoRefactor vp9_dequant_idct_add function
Yunqing Wang [Thu, 28 Feb 2013 21:01:41 +0000 (13:01 -0800)]
Refactor vp9_dequant_idct_add function

Provided a wrapper and removed duplicate code.

Change-Id: Iaef842226ec348422e459202793b001d0983ea30

11 years agoRemoved vp9_dequantize_b
Scott LaVarnway [Thu, 28 Feb 2013 19:05:00 +0000 (11:05 -0800)]
Removed vp9_dequantize_b

Change-Id: Ie89bd00d58e30bf4094cb748a282f1dfa81a31d8

11 years agomv dct_sse2.c dct_sse2_intrinsics.c to avoid collision
Jim Bankoski [Thu, 28 Feb 2013 21:58:15 +0000 (13:58 -0800)]
mv dct_sse2.c dct_sse2_intrinsics.c to avoid collision

Change-Id: Id786be31da3c91d95d2955aa569ecdc6e66650df

11 years agoFix use of uninitialized memory in CONFIG_ABOVESPREFMV
John Koleszar [Thu, 28 Feb 2013 21:45:47 +0000 (13:45 -0800)]
Fix use of uninitialized memory in CONFIG_ABOVESPREFMV

The ABOVESPREFMV experiment uses four pixels to the left of the
current block, which don't exist for the left-most column.

Change-Id: I4cf0b42ae8f54c0b3e7b1ed8755704b74fafc39c

11 years agoMerge "Dequantization code cleanup." into experimental
Dmitry Kovalev [Thu, 28 Feb 2013 21:46:43 +0000 (13:46 -0800)]
Merge "Dequantization code cleanup." into experimental

11 years agoDequantization code cleanup.
Dmitry Kovalev [Thu, 28 Feb 2013 21:28:05 +0000 (13:28 -0800)]
Dequantization code cleanup.

Removing redundant variables, using x *= y instead x = x * y, moving
variable declarations into inner blocks.

Change-Id: I884f95c755f55d51b7c1c6585f10296919063e41

11 years agoCode cleanup.
Dmitry Kovalev [Thu, 28 Feb 2013 21:18:02 +0000 (13:18 -0800)]
Code cleanup.

Removing redundant 'extern' keyword, better formatting, code
simplification.

Change-Id: I132fea14f08c706ee9ea147d19464d03f833f25b

11 years agoFix incorrect comparison of frame size
John Koleszar [Thu, 28 Feb 2013 18:52:04 +0000 (10:52 -0800)]
Fix incorrect comparison of frame size

The width and height stored in the reference frames are padded out to
a multiple of 16. The Width and Height variables in common are the
displayed size, which may be smaller. The incorrect comparison was
causing scaling related code to be called when it shouldn't have
been. A notable case where this happens is 1080p, since 1088 != 1080.

Change-Id: I55f743eeeeaefbf2e777e193bc9a77ff726e16b5

11 years agoMerge "vp8 fast quantizer with intrinsics"
Johann [Thu, 28 Feb 2013 19:32:03 +0000 (11:32 -0800)]
Merge "vp8 fast quantizer with intrinsics"

11 years agothis commit converts all sad ptrs to uint32
Jim Bankoski [Thu, 28 Feb 2013 16:32:14 +0000 (08:32 -0800)]
this commit converts all sad ptrs to uint32

sse4_1 code used uint16_t for returning sad, but that
won't work for 32x32 or 64x64.   This code fixes the
assembly for those and also reenables sse4_1 on linux

Change-Id: I5ce7288d581db870a148e5f7c5092826f59edd81

11 years agofix to parameters to match rtcd
Jim Bankoski [Thu, 28 Feb 2013 16:10:08 +0000 (08:10 -0800)]
fix to parameters to match rtcd

Change-Id: I919e2dd72292fe44f2e53ada56bd42287d50cdeb
Signed-off-by: Jim Bankoski <jimbankoski@google.com>
11 years agoMerge "Faster vp9_short_fdct8x8." into experimental
Christian Duvivier [Thu, 28 Feb 2013 01:50:27 +0000 (17:50 -0800)]
Merge "Faster vp9_short_fdct8x8." into experimental

11 years agoMerge "Fix rollover and pass 1 time estimate" into experimental
John Koleszar [Thu, 28 Feb 2013 01:43:03 +0000 (17:43 -0800)]
Merge "Fix rollover and pass 1 time estimate" into experimental

11 years agoFaster vp9_short_fdct8x8.
Christian Duvivier [Wed, 27 Feb 2013 20:29:06 +0000 (12:29 -0800)]
Faster vp9_short_fdct8x8.

Scalar path is about 1.4x faster (4% overall encoder speedup).
SSE2 path is about 7x faster (13% overall encoder speedup).

Change-Id: I7e85d8225a914a74c61ea370210414696560094d

11 years agoMerge "Code cleanup." into experimental
Dmitry Kovalev [Thu, 28 Feb 2013 00:43:04 +0000 (16:43 -0800)]
Merge "Code cleanup." into experimental

11 years agoCode cleanup.
Dmitry Kovalev [Wed, 27 Feb 2013 19:17:38 +0000 (11:17 -0800)]
Code cleanup.

Fixing code style, using array lookup instead of switch statements for
forward hybrid transforms (in the same way as for their inverses).
Consistent usage of ROUND_POWER_OF_TWO macro in appropriate places.

Change-Id: I0d3822ae11f928905fdbfbe4158f91d97c71015f

11 years agoMerge changes Idc1c490f,I6b5fe1a4 into experimental
John Koleszar [Wed, 27 Feb 2013 21:45:42 +0000 (13:45 -0800)]
Merge changes Idc1c490f,I6b5fe1a4 into experimental

* changes:
  convolve test: validate 1D filters are 1D
  Run all filters through convolve test

11 years agoMerge "Motion vectors code cleanup." into experimental
Dmitry Kovalev [Wed, 27 Feb 2013 21:34:56 +0000 (13:34 -0800)]
Merge "Motion vectors code cleanup." into experimental

11 years agoMerge "Remove unused file" into experimental
Yunqing Wang [Wed, 27 Feb 2013 21:00:10 +0000 (13:00 -0800)]
Merge "Remove unused file" into experimental

11 years agoFix rollover and pass 1 time estimate
John Koleszar [Wed, 27 Feb 2013 19:14:23 +0000 (11:14 -0800)]
Fix rollover and pass 1 time estimate

Fixes a rollover of the cx_time variable for encodes that take
over ~4200 seconds. Also enable the time estimate in first pass.

Change-Id: Ib5a98ee71bccd79a804d709cec7260651d0b7141

11 years agoMerge "Remove unused vp9_copy32xn" into experimental
John Koleszar [Wed, 27 Feb 2013 20:23:45 +0000 (12:23 -0800)]
Merge "Remove unused vp9_copy32xn" into experimental