]> granicus.if.org Git - libvpx/log
libvpx
11 years agoRun all filters through convolve test
John Koleszar [Thu, 21 Feb 2013 00:13:01 +0000 (16:13 -0800)]
Run all filters through convolve test

Updates the convolve test to verify that all filters match the
reference implementation. This verifies commit 30f866f, which
fixed some problems with the SSE3 version of the filters for
the vp9_sub_pel_filters_8s and vp9_sub_pel_filters_8lp banks
due to overflow and order of operations.

Change-Id: I6b5fe1a41bc20062e2e64633b1355ae58c9c592c

11 years agoMerge "vpxdec: support scaling output" into experimental
John Koleszar [Wed, 27 Feb 2013 19:09:56 +0000 (11:09 -0800)]
Merge "vpxdec: support scaling output" into experimental

11 years agoMerge "vpxenc: support scaling prior to encoding" into experimental
John Koleszar [Wed, 27 Feb 2013 18:59:21 +0000 (10:59 -0800)]
Merge "vpxenc: support scaling prior to encoding" into experimental

11 years agoMerge "Use ref_frame_map vice active_ref_idx on the encoder" into experimental
John Koleszar [Wed, 27 Feb 2013 18:59:08 +0000 (10:59 -0800)]
Merge "Use ref_frame_map vice active_ref_idx on the encoder" into experimental

11 years agoMerge "Test upscaling as well as downscaling" into experimental
John Koleszar [Wed, 27 Feb 2013 18:25:51 +0000 (10:25 -0800)]
Merge "Test upscaling as well as downscaling" into experimental

11 years agoMerge changes I922f8602,I0ac3343d into experimental
John Koleszar [Wed, 27 Feb 2013 18:08:53 +0000 (10:08 -0800)]
Merge changes I922f8602,I0ac3343d into experimental

* changes:
  Use 256-byte aligned filter tables
  Set scale factors consistently for SPLITMV

11 years agoMerge "Combined motion compensation with scaled predictors" into experimental
John Koleszar [Wed, 27 Feb 2013 17:46:12 +0000 (09:46 -0800)]
Merge "Combined motion compensation with scaled predictors" into experimental

11 years agovpxdec: support scaling output
John Koleszar [Tue, 26 Feb 2013 00:58:47 +0000 (16:58 -0800)]
vpxdec: support scaling output

Adds an option, --scale, that will rescale any frames produced by
the decoder that don't match the resolution of the first frame to
that resolution. This is useful for playback of files that use
spatial resampling.

Change-Id: I867adc650d535df7ec5b107549359712ea3aaaa0

11 years agovpxenc: support scaling prior to encoding
John Koleszar [Thu, 1 Mar 2012 20:50:40 +0000 (12:50 -0800)]
vpxenc: support scaling prior to encoding

Scales the input of the encoder using libyuv's "box filter". Each stream
may have a different width and height specified. If the width (or
height) parameter is missing (or is explicitly set to 0) then the value
will be calculated based on the specified height (or width) and the
input file's dimensions, preserving its aspect ratio. Leaving the height
unspecified behaves similarly.

Change-Id: Ic7026810b13be030826be80dc6f7fc4aaf0c35d0

11 years agoUse ref_frame_map vice active_ref_idx on the encoder
John Koleszar [Fri, 22 Feb 2013 19:22:03 +0000 (11:22 -0800)]
Use ref_frame_map vice active_ref_idx on the encoder

This patch makes the encoder's use of ref_frame_map and active_ref_idx
consistent with the decoder. ref_frame_map[] maps a reference buffer
index to its actual location in the yv12_fb array, since many
references may share an underlying buffer. active_ref_idx[] mirrors
cpi->{lst,gld,alt}_fb_idx, holding the active references in each
slot.

This also fixes a bug in setup_buffer_inter() where the incorrect
reference was used to populate the scaling factors.

Change-Id: Id3728f6d77cffcd27c248903bf51f9c3e594287e

11 years agoTest upscaling as well as downscaling
John Koleszar [Thu, 21 Feb 2013 18:38:27 +0000 (10:38 -0800)]
Test upscaling as well as downscaling

Fixes a bug in vp9_set_internal_size() that prevented returning to
the unscaled state. Updated the ResizeInternalTest to scale both
down and up. Added a check that all frames are within 2.5% of the
quality of the initial keyframe.

Change-Id: I3b7ef17cdac144ed05b9148dce6badfa75cff5c8

11 years agoUse 256-byte aligned filter tables
John Koleszar [Wed, 20 Feb 2013 23:59:20 +0000 (15:59 -0800)]
Use 256-byte aligned filter tables

This avoids duplicating all the filters twice. Includes fixups to the
convolve routines and associated tests to make this work.

Change-Id: I922f86021594e55072ddb63b42b2313605db6e00

11 years agoCombined motion compensation with scaled predictors
John Koleszar [Wed, 20 Feb 2013 20:34:31 +0000 (12:34 -0800)]
Combined motion compensation with scaled predictors

This patch extends the previous support for using references of a
different resolution in ZEROMV mode to all inter prediction modes.
Subpixel based best-mv scoring is disabled when the reference frame
differs in resolution from the current frame.

Change-Id: Id4dc3e5e6692de98d9857fd56bfad3ac57e944ac

11 years agoSet scale factors consistently for SPLITMV
John Koleszar [Wed, 20 Feb 2013 21:46:55 +0000 (13:46 -0800)]
Set scale factors consistently for SPLITMV

This commit updates the 4x4 prediction to consistently use the
build_2x1_inter_predictor() method. That function is updated to
calculate the scale offset, rather than relying on the caller
to calculate it. In the case that the 2x1 prediction can not
be used, the scale offset is recalculated for each 1x1 block.
The idea here is that the offsets are calculated before each
call to vp9_build_scaled_inter_predictor().

Change-Id: I0ac3343dd54e2846efa3c4195fcd328b709ca04d

11 years agoMerge "Enable 32x32 dct tests" into experimental
Yaowu Xu [Wed, 27 Feb 2013 15:57:07 +0000 (07:57 -0800)]
Merge "Enable 32x32 dct tests" into experimental

11 years agoMerge "Improve 32x32 forward dct" into experimental
Yaowu Xu [Wed, 27 Feb 2013 15:56:42 +0000 (07:56 -0800)]
Merge "Improve 32x32 forward dct" into experimental

11 years agoSpatial resamping of ZEROMV predictors
John Koleszar [Mon, 25 Feb 2013 04:55:14 +0000 (20:55 -0800)]
Spatial resamping of ZEROMV predictors

This patch allows coding frames using references of different
resolution, in ZEROMV mode. For compound prediction, either
reference may be scaled.

To test, I use the resize_test and enable WRITE_RECON_BUFFER
in vp9_onyxd_if.c. It's also useful to apply this patch to
test/i420_video_source.h:

  --- a/test/i420_video_source.h
  +++ b/test/i420_video_source.h
  @@ -93,6 +93,7 @@ class I420VideoSource : public VideoSource {

     virtual void FillFrame() {
       // Read a frame from input_file.
  +    if (frame_ != 3)
       if (fread(img_->img_data, raw_sz_, 1, input_file_) == 0) {
         limit_ = frame_;
       }

This forces the frame that the resolution changes on to be coded
with no motion, only scaling, and improves the quality of the
result.

Change-Id: I1ee75d19a437ff801192f767fd02a36bcbd1d496

11 years agoMerge "Removing redundant 'extern' keyword from function declarations." into experimental
Dmitry Kovalev [Wed, 27 Feb 2013 04:56:32 +0000 (20:56 -0800)]
Merge "Removing redundant 'extern' keyword from function declarations." into experimental

11 years agoMerge "Merge cnvcontext experiment." into experimental
Ronald S. Bultje [Wed, 27 Feb 2013 03:39:39 +0000 (19:39 -0800)]
Merge "Merge cnvcontext experiment." into experimental

11 years agoMerge "Fix modes.stt output printf format string." into experimental
Ronald S. Bultje [Wed, 27 Feb 2013 03:39:33 +0000 (19:39 -0800)]
Merge "Fix modes.stt output printf format string." into experimental

11 years agoMerge "Minor cosmetics in rdopt." into experimental
Ronald S. Bultje [Wed, 27 Feb 2013 03:39:28 +0000 (19:39 -0800)]
Merge "Minor cosmetics in rdopt." into experimental

11 years agoMerge "vp9: promote gf_group_bits calculation to 64-bit" into experimental
James Zern [Wed, 27 Feb 2013 00:27:45 +0000 (16:27 -0800)]
Merge "vp9: promote gf_group_bits calculation to 64-bit" into experimental

11 years agoRemoving redundant 'extern' keyword from function declarations.
Dmitry Kovalev [Tue, 26 Feb 2013 23:52:05 +0000 (15:52 -0800)]
Removing redundant 'extern' keyword from function declarations.

Change-Id: I893fa36297b9bd9cff93d082f1736f6860b15c0d

11 years agoMerge "Refactor inter recon functions to support scaling" into experimental
John Koleszar [Tue, 26 Feb 2013 19:45:28 +0000 (11:45 -0800)]
Merge "Refactor inter recon functions to support scaling" into experimental

11 years agoMerge "Changing pitch value meaning for fht and iht transforms." into experimental
Dmitry Kovalev [Tue, 26 Feb 2013 18:44:15 +0000 (10:44 -0800)]
Merge "Changing pitch value meaning for fht and iht transforms." into experimental

11 years agoMerge cnvcontext experiment.
Ronald S. Bultje [Tue, 26 Feb 2013 18:37:49 +0000 (10:37 -0800)]
Merge cnvcontext experiment.

Change-Id: I35e64998b25694a3bb4a62164bba3c03c1db4bc7

11 years agoFix modes.stt output printf format string.
Ronald S. Bultje [Tue, 26 Feb 2013 17:38:29 +0000 (09:38 -0800)]
Fix modes.stt output printf format string.

Change-Id: I17e2d2f6a4da86d9e4af7bebdea0bf5d154da084

11 years agoMinor cosmetics in rdopt.
Ronald S. Bultje [Tue, 26 Feb 2013 17:37:51 +0000 (09:37 -0800)]
Minor cosmetics in rdopt.

Change-Id: I62497dcf2074b4bb4787bf660e727e5cf1bf3472

11 years agoMerge "make cost_coeffs to use combined context" into experimental
Ronald S. Bultje [Tue, 26 Feb 2013 18:32:01 +0000 (10:32 -0800)]
Merge "make cost_coeffs to use combined context" into experimental

11 years agoRefactor inter recon functions to support scaling
John Koleszar [Sat, 9 Feb 2013 01:49:44 +0000 (17:49 -0800)]
Refactor inter recon functions to support scaling

Ensure that all inter prediction goes through a common code path
that takes scaling into account. Removes a bunch of duplicate
1st/2nd predictor code. Also introduces a 16x8 mode for 8x8
MVs, similar to the 8x4 trick we were doing before. This has an
unexpected effect with EIGHTTAP_SMOOTH, so it's disabled in that
case for now.

Change-Id: Ia053e823a8bc616a988a0af30452e1e75a739cba

11 years agoEnable 32x32 dct tests
Yaowu Xu [Tue, 26 Feb 2013 17:07:49 +0000 (09:07 -0800)]
Enable 32x32 dct tests

Also
1. Removed the test code for fDCT from the iDCT test.
2. changed the criteria of round trip error to be below 1/block, this
is quite strict comparing to smaller transforms when size differences
are accounted for.

Change-Id: Idb46a6380b04c93fc8e2845c75f5a850366b0090

11 years agoImprove 32x32 forward dct
Yaowu Xu [Mon, 25 Feb 2013 23:21:01 +0000 (15:21 -0800)]
Improve 32x32 forward dct

The commit improves the 32x32 forward dct implementation:
1. change to use same constants and rounding as other forward dcts
2. select rounding to specifically minimize the roundtrip error, which
improved average 19/block to .77/block using 100000 random input.

Test showed a small but consistent gain on all test sets, about .15%

Change-Id: If0afd6a71880a522f60c1c234be0462092c2eb53

11 years agoChanging pitch value meaning for fht and iht transforms.
Dmitry Kovalev [Tue, 26 Feb 2013 02:19:55 +0000 (18:19 -0800)]
Changing pitch value meaning for fht and iht transforms.

Pitch now means the number of elements, not the number of bytes.

Change-Id: Idb9f2f012e39b09d596a3cc1802305a80b7c13af

11 years agomake cost_coeffs to use combined context
Yaowu Xu [Tue, 26 Feb 2013 01:01:30 +0000 (17:01 -0800)]
make cost_coeffs to use combined context

Change-Id: Ia15f4244595fab49bffda0c651a750a8a9481d28

11 years agoCode cleanup.
Dmitry Kovalev [Mon, 25 Feb 2013 23:14:01 +0000 (15:14 -0800)]
Code cleanup.

Removing switch statements for inverse hybrid transforms. Making code style
consistent for all similar transform implementations. Renaming shortpitch
and short_pitch variables to half_pitch.

Change-Id: I875f7a82aae4e8063a58777bf1cc3f1e67b48582

11 years agoMerge "Code cleanup." into experimental
Dmitry Kovalev [Mon, 25 Feb 2013 22:14:22 +0000 (14:14 -0800)]
Merge "Code cleanup." into experimental

11 years agoMerge "Code cleanup." into experimental
Dmitry Kovalev [Mon, 25 Feb 2013 21:58:06 +0000 (13:58 -0800)]
Merge "Code cleanup." into experimental

11 years agoMerge "Improving the forward 16x16 ADST/DCT accuracy" into experimental
Jingning Han [Mon, 25 Feb 2013 21:38:33 +0000 (13:38 -0800)]
Merge "Improving the forward 16x16 ADST/DCT accuracy" into experimental

11 years agoCode cleanup.
Dmitry Kovalev [Mon, 25 Feb 2013 21:38:18 +0000 (13:38 -0800)]
Code cleanup.

Removing redundant parentheses, better code formatting, introducing
ROUND_POWER_OF_TWO macro to replace repeated expression.

Change-Id: I91aad7a53ed03482428b2419de4bb99fd92c6771

11 years agoCode cleanup.
Dmitry Kovalev [Sat, 23 Feb 2013 01:27:34 +0000 (17:27 -0800)]
Code cleanup.

Lower case names of variables. Removing redundant spaces, parentheses,
casts, and variables.

Change-Id: I55b80c55b7d5adca44c1e8adb40a124c0680f229

11 years agovp9: promote gf_group_bits calculation to 64-bit
James Zern [Mon, 25 Feb 2013 21:00:18 +0000 (13:00 -0800)]
vp9: promote gf_group_bits calculation to 64-bit

avoids signed integer overflow

Change-Id: I9ffcdba90b21edb324d1b173fd11d613e0592931

11 years agoMerge "Minor rate control refactoring and experiments." into experimental
Paul Wilkins [Mon, 25 Feb 2013 20:49:54 +0000 (12:49 -0800)]
Merge "Minor rate control refactoring and experiments." into experimental

11 years agoImproving the forward 16x16 ADST/DCT accuracy
Jingning Han [Mon, 25 Feb 2013 20:08:29 +0000 (12:08 -0800)]
Improving the forward 16x16 ADST/DCT accuracy

Increase the first stage dynamic range by 4 times, and reduce it
back with proper rounding before applying the second stage. Hence
it still fits in the given dynamic range and slightly improves
the key frame coding performance.

Change-Id: Ia4c5907446f20a95dc3de079c314b3ad1221d8aa

11 years agoclean up forward and inverse hybrid transform
Jingning Han [Sat, 23 Feb 2013 00:29:28 +0000 (16:29 -0800)]
clean up forward and inverse hybrid transform

Rebased.

Remove the old matrix multiplication transform computation. The 16x16
ADST/DCT can be switched on/off and evaluated by setting ACTIVE_HT16
300/0 in vp9/common/vp9_blockd.h.

Change-Id: Icab2dbd18538987e1dc4e88c45abfc4cfc6e133f

11 years agoMinor rate control refactoring and experiments.
Paul Wilkins [Mon, 25 Feb 2013 12:36:38 +0000 (12:36 +0000)]
Minor rate control refactoring and experiments.

Some minor refactoring code relating to estimates of
bits per MB at a given Q and estimating the allowed Q range.

Most of the changes here were included in a previous commit.
This commit seeks to separate out the refactoring from more
the material changes.

Two #define control flags have been added for experimentation.

ONE_SHOT_Q_ESTIMATE force the two pass encoder to
use its initial Q range estimate for the whole clip even if this results
in a miss on the target data rate. In effect this tightens the Q range
seen at the expense of rate control accuracy.

DISABLE_RC_LONG_TERM_MEM is a related flag that disables the
long term memory in the rate control. Local adjustments are still
made to try and better hit the rate target on a per frame basis but
the impact of rate control misses is not propagated to the remainder
of the clip. This means that for example an overshoot early on will not
cause frames later in the clip to be starved of bits. Again the result
of this relaxation amy be less rate control accuracy especially on short
clips.

The flags are disabled by default for now.

Change-Id: I7482f980146d8ea033b5d50cc689f772e4bd119e

11 years agooptimize forward 16x16 DCT for accuracy
Yaowu Xu [Sat, 23 Feb 2013 00:18:08 +0000 (16:18 -0800)]
optimize forward 16x16 DCT for accuracy

This commit added pre/post scaling for first half of fDCT16x16 to
reduce error, by simulation of 100,000 blocks for random inputs,
the average sse reduced from 2.1/block to 0.0498/block.

also enabled tests for 16x16 fDCT and iDCT

Change-Id: Id2a95f0464c6dd4118797d456237ae90274c0f02

11 years agoSplit coefficient token tables intra vs. inter.
Ronald S. Bultje [Tue, 19 Feb 2013 21:36:38 +0000 (13:36 -0800)]
Split coefficient token tables intra vs. inter.

Change-Id: I5416455f8f129ca0f450d00e48358d2012605072

11 years agoFurther changes to coefficient contexts.
Paul Wilkins [Tue, 19 Feb 2013 18:12:00 +0000 (10:12 -0800)]
Further changes to coefficient contexts.

This patch alters the balance of context between the
coefficient bands (reflecting the position of coefficients
within a transform blocks) and the energy of the previous
token (or tokens) within a block.

In this case the number of coefficient bands is reduced
but more previous token energy bands are supported.

Some initial rebalancing of the default tables has been
by running multiple derf clips at multiple data rates using
the ENTOPY_STATS macro. Further balancing needs to be
done using larger image formatsd especially in regard to
the bigger transform sizes which are not as well represented
in encodings of smaller image formats.

Change-Id: If9736e95c391e711b04aef6393d26f60f36e1f8a

11 years agoMerge "optimize 8x8 fdct rounding for accuracy" into experimental
Yaowu Xu [Sat, 23 Feb 2013 06:20:57 +0000 (22:20 -0800)]
Merge "optimize 8x8 fdct rounding for accuracy" into experimental

11 years agoMerge "changes related fdct/idct tests" into experimental
Yaowu Xu [Sat, 23 Feb 2013 06:20:44 +0000 (22:20 -0800)]
Merge "changes related fdct/idct tests" into experimental

11 years agooptimize 8x8 fdct rounding for accuracy
Yaowu Xu [Fri, 22 Feb 2013 19:14:04 +0000 (11:14 -0800)]
optimize 8x8 fdct rounding for accuracy

The commit added a final rounding choice for 8x8 forward dct to get
rid of a sign bias at DC position and improve the accuracry in term
of round trip error for 8x8 fDCT/iDCT.

This commit also enabled forward 8x8 dct test.

Change-Id: Ib67f99b0a24d513e230c7812bc04569d472fdc50

11 years agoMerge "Code cleanup." into experimental
John Koleszar [Fri, 22 Feb 2013 19:20:20 +0000 (11:20 -0800)]
Merge "Code cleanup." into experimental

11 years agoCode cleanup.
Dmitry Kovalev [Fri, 22 Feb 2013 19:03:14 +0000 (11:03 -0800)]
Code cleanup.

Removing redundant 'extern' keywords and parentheses, fixing indentation,
making variable names lower case, using short expressions x *= c
instead of x = x * c, minor code simplifications.

Change-Id: If6a25fcf306d1db26e90d27e3c24a32735c607de

11 years agochanges related fdct/idct tests
Yaowu Xu [Fri, 22 Feb 2013 18:09:40 +0000 (10:09 -0800)]
changes related fdct/idct tests

1. changed 4x4 test name to Vp9Fdct4x4Test to be consistent
2. remove forward 8x8 dct test code from idct8x8_test.cc
3. temporarily disable other forward dct tests to allow fdct work in
progress

Change-Id: I566aeed9c7c34da5a206190aa7d0e847a4008b36

11 years agoMerge "Forward butterfly hybrid transform" into experimental
Jingning Han [Fri, 22 Feb 2013 17:20:26 +0000 (09:20 -0800)]
Merge "Forward butterfly hybrid transform" into experimental

11 years agoMerge "Experimental removal of over quant code" into experimental
Paul Wilkins [Fri, 22 Feb 2013 16:44:40 +0000 (08:44 -0800)]
Merge "Experimental removal of over quant code" into experimental

11 years agoExperimental removal of over quant code
Paul Wilkins [Thu, 21 Feb 2013 10:00:36 +0000 (10:00 +0000)]
Experimental removal of over quant code

The over quant code was added in VP8 post
bitstream freeze to allow compression to lower
data rates

In VP9 the real qualtizer range has been greatly
extended anyway.

Change-Id: I5d384fa5e9a83ef75a3df34ee30627bd21901526

11 years agoForward butterfly hybrid transform
Jingning Han [Wed, 13 Feb 2013 17:03:21 +0000 (09:03 -0800)]
Forward butterfly hybrid transform

This patch includes 4x4, 8x8, and 16x16 forward butterfly ADST/DCT
hybrid transform. The kernel of 4x4 ADST is sin((2k+1)*(n+1)/(2N+1)).
The kernel of 8x8/16x16 ADST is of the form sin((2k+1)*(2n+1)/4N).

Change-Id: I8f1ab3843ce32eb287ab766f92e0611e1c5cb4c1

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

Removing redundant 'extern' keywords. Moving VP9DX_BOOL_DECODER from .h
to .c file.

Change-Id: I5a3056cb3d33db7ed3c3f4629675aa8e21014e66

11 years agoDon't exit on decode errors in vpxenc.
Ronald S. Bultje [Sat, 16 Feb 2013 00:31:02 +0000 (16:31 -0800)]
Don't exit on decode errors in vpxenc.

Allows the user to specify whether decode errors should be fatal or not.
Also makes mismatches optionally fatal.

Change-Id: I58cff4a82f3d42f5653b91cf348a7f669377e632

11 years agoMerge "Remove "eobs" array in MACROBLOCKD." into experimental
Ronald S. Bultje [Thu, 21 Feb 2013 19:30:29 +0000 (11:30 -0800)]
Merge "Remove "eobs" array in MACROBLOCKD." into experimental

11 years agoMerge "Code cleanup." into experimental
John Koleszar [Thu, 21 Feb 2013 18:56:17 +0000 (10:56 -0800)]
Merge "Code cleanup." into experimental

11 years agoCode cleanup.
Dmitry Kovalev [Thu, 21 Feb 2013 18:34:33 +0000 (10:34 -0800)]
Code cleanup.

Removing redundant 'extern' keyword from function declarations and making
function arguments lower case.

Change-Id: Idae9a2183b067f2b6c85ad84738d275e8bbff9d9

11 years agoRemove "eobs" array in MACROBLOCKD.
Ronald S. Bultje [Thu, 21 Feb 2013 18:04:40 +0000 (10:04 -0800)]
Remove "eobs" array in MACROBLOCKD.

The information is a duplicate of "eob" in BLOCKD.

Change-Id: Ia6416273bd004611da801e4bfa6e2d328d6f02a3

11 years agoMerge "Refactoring of switchable filter search for speed" into experimental
Deb Mukherjee [Thu, 21 Feb 2013 17:23:49 +0000 (09:23 -0800)]
Merge "Refactoring of switchable filter search for speed" into experimental

11 years agoMerge "Avoid division in intra prediction" into experimental
John Koleszar [Thu, 21 Feb 2013 16:33:17 +0000 (08:33 -0800)]
Merge "Avoid division in intra prediction" into experimental

11 years agoRefactoring of switchable filter search for speed
Deb Mukherjee [Tue, 12 Feb 2013 01:08:52 +0000 (17:08 -0800)]
Refactoring of switchable filter search for speed

Refactors the switchable filter search in the rd loop to
improve encode speed.

Uses a piecewise approximation to a closed form expression to estimate
rd cost for a Laplacian source with a given variance and quantization
step-size.

About 40% encode time reduction is achieved.

Results (on a feb 12 baseline) show a slight drop:

derf: -0.019%
yt: +0.010%
std-hd: -0.162%
hd: -0.050%

Change-Id: Ie861badf5bba1e3b1052e29a0ef1b7e256edbcd0

11 years agoMerge "Fixed the buffer overflow issue" into experimental
Jingning Han [Thu, 21 Feb 2013 00:27:27 +0000 (16:27 -0800)]
Merge "Fixed the buffer overflow issue" into experimental

11 years agoFixed the buffer overflow issue
Jingning Han [Wed, 20 Feb 2013 23:32:17 +0000 (15:32 -0800)]
Fixed the buffer overflow issue

The issue that potentially broke the encoding process was due to the fact
that the length of token link is calculated from the total number of tokens
coded, while it is possible, in high bit-rate setting, this length is
greater than the buffer length initially assigned to the cpi->tok.

This patch increases the initially allocated buffer length assigned to
cpi->tok from
(mb_rows * mb_cols * 24 * 16) to (mb_rows * mb_cols * (1 + 24 * 16)).

It resolves the buffer overflow problem.

Change-Id: I8661a8d39ea0a3c24303e3f71a170787a1d5b1df

11 years agoMerge "Code cleanup." into experimental
Dmitry Kovalev [Wed, 20 Feb 2013 20:47:54 +0000 (12:47 -0800)]
Merge "Code cleanup." into experimental

11 years agoMerge "Merge lossless experiment" into experimental
Yaowu Xu [Wed, 20 Feb 2013 20:27:26 +0000 (12:27 -0800)]
Merge "Merge lossless experiment" into experimental

11 years agoCode cleanup.
Dmitry Kovalev [Wed, 20 Feb 2013 19:36:31 +0000 (11:36 -0800)]
Code cleanup.

Change-Id: I7c6e3bebd94856b24dbe2aded7f9e04ef8bb8c08

11 years agoMerge lossless experiment
Yaowu Xu [Wed, 20 Feb 2013 15:27:35 +0000 (07:27 -0800)]
Merge lossless experiment

Change-Id: I7b7b8d4fda3a23699e0c920d727f8c15d37d43aa

11 years agoEntropy stats output code.
Paul Wilkins [Fri, 15 Feb 2013 11:34:25 +0000 (11:34 +0000)]
Entropy stats output code.

Fixes to make Entropy stats code work again

Change-Id: I62e380481a4eb4c170076ac6ab36f0c2b203e914

11 years agoAvoid division in intra prediction
Tero Rintaluoma [Wed, 13 Feb 2013 13:18:41 +0000 (15:18 +0200)]
Avoid division in intra prediction

- Using multiplication and shifting instead of division in
  intra prediction.
- Maximum absolute difference is 1 for division statements
  in d45, d27, d63 prediction modes. However, errors can
  cumulate for large block sizes when using already predicted
  values.
- Maximum number of non-matching result values in loops using
  division are:
  4x4        0/16
  8x8        0/64
  16x16     10/256
  32x32     13/1024
  64x64    122/4096

  Overall PSNR
  derf:     0.005
  yt:      -0.022
  std-hd:   0.021
  hd:      -0.006

Change-Id: I3979a02eb6351636442c1af1e23d6c4e6ec1d01d

11 years agoMerge "fixed an enc/dec mis-match issue" into experimental
Yaowu Xu [Wed, 20 Feb 2013 00:53:30 +0000 (16:53 -0800)]
Merge "fixed an enc/dec mis-match issue" into experimental

11 years agofixed an enc/dec mis-match issue
Yaowu Xu [Wed, 20 Feb 2013 00:26:27 +0000 (16:26 -0800)]
fixed an enc/dec mis-match issue

The issue was caused by a out-of-order merge, which leads to wrong
functions are called at lossless mode.

Change-Id: If157729abab62954c729e0377e7f53edb7db22ca

11 years agoMerge "Add estimated completion time to vpxenc" into experimental
John Koleszar [Tue, 19 Feb 2013 18:51:42 +0000 (10:51 -0800)]
Merge "Add estimated completion time to vpxenc" into experimental

11 years ago16x16 butterfly inverse ADST/DCT hybrid transform
Jingning Han [Sat, 16 Feb 2013 22:08:36 +0000 (14:08 -0800)]
16x16 butterfly inverse ADST/DCT hybrid transform

rebased.

This patch includes 16x16 butterfly inverse ADST/DCT hybrid
transform. It uses the variant ADST of kernel
    sin((2k+1)*(2n+1)/4N),
which allows a butterfly implementation.

The coding gains as compared to DCT 16x16 are about 0.1% for
both derf and std-hd. It is noteworthy that for std-hd sets
many sequences gains about 0.5%, some 0.2%. There are also few
points that provides -1% to -3% performance. Hence the average
goes to about 0.1%.

Change-Id: Ie80ac84cf403390f6e5d282caa58723739e5ec17

11 years agoMerge "Minor cosmetic cleanups." into experimental
Ronald S. Bultje [Tue, 19 Feb 2013 16:54:44 +0000 (08:54 -0800)]
Merge "Minor cosmetic cleanups." into experimental

11 years agoMerge "Prevent filling transform size cache with uninitialized values." into experimental
Ronald S. Bultje [Tue, 19 Feb 2013 16:54:35 +0000 (08:54 -0800)]
Merge "Prevent filling transform size cache with uninitialized values." into experimental

11 years agoUse lossless for Q0
Yaowu Xu [Wed, 13 Feb 2013 22:22:15 +0000 (14:22 -0800)]
Use lossless for Q0

The commit changes the coding mode to lossless whenever the lowest
quantizer is choosen.

As expected, test results showed no difference for cif and std-hd
set where Q0 is rarely used. For yt and yt-hd set, Q0 is used for
a number of clips, where this commit helped a lot in the high end.

Average over all clips in the sets:
yt: 2.391% 1.017% 1.066%
hd: 1.937%  .764%  .787%

Change-Id: I9fa9df8646fd70cb09ffe9e4202b86b67da16765

11 years agoMinor cosmetic cleanups.
Ronald S. Bultje [Sat, 16 Feb 2013 00:39:22 +0000 (16:39 -0800)]
Minor cosmetic cleanups.

Change-Id: I13d8ae754827368755575dd699a087b3b11f5b16

11 years agoPrevent filling transform size cache with uninitialized values.
Ronald S. Bultje [Fri, 15 Feb 2013 23:55:31 +0000 (15:55 -0800)]
Prevent filling transform size cache with uninitialized values.

The 32x32 value in case of splitmv was uninitialized. this leads to
all kind of erratic behaviour down the line. Also fill in dummy values
for superblocks in keyframes (the values are currently unused, but we
run into integer overflows anyway, which makes detecting bad cases
harder). Lastly, in case we did not find any RD value at all, don't
set tx_diff to INT_MIN, but instead set it to zero (since if we couldn't
find a mode, it's unlikely that any particular transform would have made
that worse or better; rather, it's likely equally bad for all tx_sizes).

Change-Id: If236fd3aa2037e5b398d03f3b1978fbbc5ce740e

11 years agoMerge "Remove some unused structs and members from the decoder." into experimental
Ronald S. Bultje [Sat, 16 Feb 2013 01:11:38 +0000 (17:11 -0800)]
Merge "Remove some unused structs and members from the decoder." into experimental

11 years agoMerge "Remove Y2 and Y-no-DC token types from the bitstream." into experimental
Ronald S. Bultje [Sat, 16 Feb 2013 01:11:20 +0000 (17:11 -0800)]
Merge "Remove Y2 and Y-no-DC token types from the bitstream." into experimental

11 years agoFixed a subtle issue that breaks encoding process
Jingning Han [Fri, 15 Feb 2013 22:45:20 +0000 (14:45 -0800)]
Fixed a subtle issue that breaks encoding process

This issue breaks the encoding process of the codebase. The effect
emerges only in particular test sequence at certain bit-rates and
frame limits.

Change-Id: I02e080f2a49624eef9a21c424053dc2a1d902452

11 years agoRemove some unused structs and members from the decoder.
Ronald S. Bultje [Fri, 15 Feb 2013 20:09:18 +0000 (12:09 -0800)]
Remove some unused structs and members from the decoder.

Change-Id: Ie309cb1f683a51c5dfac405fb32e8e2d6ee143ed

11 years agoRemove Y2 and Y-no-DC token types from the bitstream.
Ronald S. Bultje [Fri, 15 Feb 2013 20:09:05 +0000 (12:09 -0800)]
Remove Y2 and Y-no-DC token types from the bitstream.

Change-Id: I7a5314daca993d46b8666ba1ec2ff3766c1e5042

11 years agoRemove y2dc/ac Q delta values from the bitstream.
Ronald S. Bultje [Fri, 15 Feb 2013 18:21:26 +0000 (10:21 -0800)]
Remove y2dc/ac Q delta values from the bitstream.

Since there is no Y2, these values are always zero. This changes the
bitstream results slightly, hence a separate commit.

Change-Id: I2f838f184341868f35113ec77ca89da53c4644e0

11 years agoRemove some Y2-related code.
Ronald S. Bultje [Fri, 15 Feb 2013 18:15:42 +0000 (10:15 -0800)]
Remove some Y2-related code.

Change-Id: I4f46d142c2a8d1e8a880cfac63702dcbfb999b78

11 years agoMerge "WIP: ssse3 version of convolve avg functions" into experimental
Scott LaVarnway [Fri, 15 Feb 2013 15:54:21 +0000 (07:54 -0800)]
Merge "WIP: ssse3 version of convolve avg functions" into experimental

11 years agoMerge "Moved vp9_get_coef_band to header file" into experimental
John Koleszar [Fri, 15 Feb 2013 02:02:55 +0000 (18:02 -0800)]
Merge "Moved vp9_get_coef_band to header file" into experimental

11 years agoMoved vp9_get_coef_band to header file
Scott LaVarnway [Thu, 14 Feb 2013 20:27:25 +0000 (12:27 -0800)]
Moved vp9_get_coef_band to header file

allowing the compiler to inline.

Change-Id: I66e5caf5e7fefa68a223ff0603aa3f9e11e35dbb

11 years agoMerge "Rewrote fdct16x16" into experimental
Yaowu Xu [Thu, 14 Feb 2013 17:06:37 +0000 (09:06 -0800)]
Merge "Rewrote fdct16x16" into experimental

11 years agoMerge "Abstract selection of coef band." into experimental
Paul Wilkins [Thu, 14 Feb 2013 11:23:31 +0000 (03:23 -0800)]
Merge "Abstract selection of coef band." into experimental

11 years agoRewrote fdct16x16
Yunqing Wang [Wed, 13 Feb 2013 08:19:32 +0000 (00:19 -0800)]
Rewrote fdct16x16

Used same algorithm as others.

Change-Id: Ifdac560762aec9735cb4bb6f1dbf549e415c38a0

11 years agoMerge "Remove 2nd-order transform for first-order DC coefficients." into experimental
Ronald S. Bultje [Wed, 13 Feb 2013 21:58:02 +0000 (13:58 -0800)]
Merge "Remove 2nd-order transform for first-order DC coefficients." into experimental

11 years agoAdd support for tile rows.
Ronald S. Bultje [Fri, 8 Feb 2013 19:33:11 +0000 (11:33 -0800)]
Add support for tile rows.

These allow sending partial bitstream packets over the network before
encoding a complete frame is completed, thus lowering end-to-end
latency. The tile-rows are not independent.

Change-Id: I99986595cbcbff9153e2a14f49b4aa7dee4768e2

11 years agoRemove 2nd-order transform for first-order DC coefficients.
Ronald S. Bultje [Wed, 13 Feb 2013 20:28:19 +0000 (12:28 -0800)]
Remove 2nd-order transform for first-order DC coefficients.

Since addition of the larger-scale transforms (16x16, 32x32), these
don't give a benefit at macroblock-sizes anymore. At superblock-sizes,
2nd-order transform was never used over the larger transforms. Future
work should test whether there is a benefit for that use case.

Change-Id: I90cadfc42befaf201de3eb0c4f7330c56e33330a