platform/upstream/libvpx.git
11 years agoChange to fourcc to enable decoding of ffmpeg files.
Jim Bankoski [Mon, 29 Apr 2013 21:24:21 +0000 (14:24 -0700)]
Change to fourcc to enable decoding of ffmpeg files.

Change-Id: Ia16f167d904d53bc38cb3a8c841c6c52daad500f

11 years agoMerge "Whitespace nit"
Johann [Fri, 26 Apr 2013 19:27:27 +0000 (12:27 -0700)]
Merge "Whitespace nit"

11 years agocode cleanup for arm_cpudetect.c
changjun.yang [Fri, 26 Apr 2013 07:16:42 +0000 (15:16 +0800)]
code cleanup for arm_cpudetect.c

Change-Id: I5c49a983ced45197e1035fa5615d71b0bdad4109

11 years agoWhitespace nit
Johann [Fri, 26 Apr 2013 08:03:35 +0000 (01:03 -0700)]
Whitespace nit

Change-Id: I7486970c57cda75d26ec2c6d1f36bd668c955f66

11 years agoMerge "Normalize more intrinsic filenames"
Johann [Fri, 26 Apr 2013 06:30:41 +0000 (23:30 -0700)]
Merge "Normalize more intrinsic filenames"

11 years agoNormalize more intrinsic filenames
Johann [Fri, 26 Apr 2013 06:26:20 +0000 (23:26 -0700)]
Normalize more intrinsic filenames

vp9_dequantize_x86 has only sse2 functions.

vp9_dct_sse2_intrinsics has no namespace collision and can drop
_intrinsics.

vp9_idct_mmx.h is unused.

Change-Id: Ic16e31fb372a1d1e841a62ecb4189fe8f95808ec

11 years agoMerge "Change default iOS dev path"
Johann [Thu, 25 Apr 2013 20:29:40 +0000 (13:29 -0700)]
Merge "Change default iOS dev path"

11 years agoRename vp9_idct_x86.c
Johann [Thu, 25 Apr 2013 18:13:02 +0000 (11:13 -0700)]
Rename vp9_idct_x86.c

Remove similarly named header file. It is obsolete.

Move file to match naming style.

Adjust make file to include the file correctly and remove extra
unnecessary #if guard.

Change-Id: Ifba07ba9938a5df08a9f4eda54a3ac4d6983f7bf

11 years agoChange default iOS dev path
Johann [Wed, 24 Apr 2013 21:26:35 +0000 (14:26 -0700)]
Change default iOS dev path

This can be manually overridden with --libc=

Change-Id: I0b857c751d5dc5423f79785e934bc8a714758e75

11 years agoMerge "Rename quantize_sse2_intrinsics.c"
Johann [Wed, 24 Apr 2013 17:10:55 +0000 (10:10 -0700)]
Merge "Rename quantize_sse2_intrinsics.c"

11 years agoRename quantize_sse2_intrinsics.c
Johann [Wed, 24 Apr 2013 16:08:56 +0000 (09:08 -0700)]
Rename quantize_sse2_intrinsics.c

The only reason for the _intrinsics part of the file name was for the
interim period where only one of the functions was redone and the base
file name was the same.

Change-Id: I7851154f1633d48821bee885b1cadb2148e65a23

11 years agoResolve declaration and implementation.
Johann [Tue, 23 Apr 2013 17:10:10 +0000 (10:10 -0700)]
Resolve declaration and implementation.

Clean Windows build warnings:
warning C4028: formal parameter <N> different from declaration

This was fixed independently in master and experimental but the fixes
were in opposite directions. One added const to the declaration and the
other removed it from the implementation.

Also update the variable names. This doesn't modify the data so call it
ref, matching the functions in the vicinity, rather than dst.

Change-Id: I2ffc6b4a874cb98c26487b909d20a5e099b5582c

11 years agoImprove sign consistency.
Johann [Tue, 23 Apr 2013 16:55:03 +0000 (09:55 -0700)]
Improve sign consistency.

Fix warning on windows: signed/unsigned mismatch on lines 415, 454

Comparison was between size_t data_sz >= int index_sz on 415 and
unsigned int data_sz >= int index_sz on 454. Both might be changed to
size_t but that would be tracing and replacing all comparisons is
outside the scope of this change.

In the rest of these two functions ensure unsigned values are used
consistently.

Change-Id: I922b399ceca612a92f44b9d1d331c1c6bae9d768

11 years agoMerge "Removed shadow warnings : postproc.c decodframe.c threading.c"
Scott LaVarnway [Fri, 19 Apr 2013 14:19:14 +0000 (07:19 -0700)]
Merge "Removed shadow warnings : postproc.c decodframe.c threading.c"

11 years agoMerge "Removed shadow warnings : mcomp.c rdopt.c"
Scott LaVarnway [Fri, 19 Apr 2013 14:16:34 +0000 (07:16 -0700)]
Merge "Removed shadow warnings : mcomp.c rdopt.c"

11 years agoMerge "Removed shadow warnings : bitstream.c encodeframe.c onyx_if.c"
Scott LaVarnway [Fri, 19 Apr 2013 14:08:59 +0000 (07:08 -0700)]
Merge "Removed shadow warnings : bitstream.c encodeframe.c onyx_if.c"

11 years agoMerge "vpxdec: correct VP[89] fourccs"
John Koleszar [Thu, 18 Apr 2013 21:54:55 +0000 (14:54 -0700)]
Merge "vpxdec: correct VP[89] fourccs"

11 years agovpxdec: correct VP[89] fourccs
James Zern [Thu, 18 Apr 2013 20:01:57 +0000 (13:01 -0700)]
vpxdec: correct VP[89] fourccs

should have no effect as they are used in nestegg mappings, but aligns
the defines with vpxenc.c

Change-Id: Ic2295cd63701894c2963274239602b54cbb58631

11 years agolibvpx: Fix vp9 clang build.
Frank Galligan [Wed, 17 Apr 2013 22:46:12 +0000 (15:46 -0700)]
libvpx: Fix vp9 clang build.

- UNINITIALIZED_IS_SAFE Macro triggers a warning in Clang for
  structs.

Change-Id: Ib02c82f1fede7826564e17ccb7171c6fb18b8e44

11 years agoFix Android ndk-build
Johann [Wed, 17 Apr 2013 17:52:50 +0000 (10:52 -0700)]
Fix Android ndk-build

Add the config directory to the rtcd generation script. libvpx is
configured in the jni directory but ndk-build is intended to be run from
the next directory up. Currently it needs to be run from the jni
directory but this is being looked in to.

Add a trailing slash to allow the variable to be empty.

Reduce offset generation to the files which are actually used.

Change-Id: Ia84fac37e8998ba647423d0ee45fc66a891ce10c

11 years agoMerge "Include RTCD header in encodeframe.c"
Johann [Wed, 17 Apr 2013 17:14:30 +0000 (10:14 -0700)]
Merge "Include RTCD header in encodeframe.c"

11 years agoMerge "set up a speed 1"
Jim Bankoski [Wed, 17 Apr 2013 13:33:42 +0000 (06:33 -0700)]
Merge "set up a speed 1"

11 years agoFaster vp9_short_fdct4x4 and vp9_short_fdct8x4.
Christian Duvivier [Mon, 25 Mar 2013 23:18:38 +0000 (16:18 -0700)]
Faster vp9_short_fdct4x4 and vp9_short_fdct8x4.

Scalar path is about 1.3x faster (2.1% overall encoder speedup).
SSE2 path is about 5.0x faster (8.4% overall encoder speedup).

Change-Id: I360d167b5ad6f387bba00406129323e2fe6e7dda

11 years agoset up a speed 1
Jim Bankoski [Tue, 16 Apr 2013 21:49:30 +0000 (14:49 -0700)]
set up a speed 1

slightly worse results for faster encodes

Change-Id: Ic5b38fcde7a2e334c4724e125b558bcb97783af6

11 years agoMerge branch 'experimental' into master
John Koleszar [Fri, 12 Apr 2013 22:33:04 +0000 (15:33 -0700)]
Merge branch 'experimental' into master

VP9 preview bitstream 2, commit '868ecb55a1528ca3f19286e7d1551572bf89b642'

Conflicts:
vp9/vp9_common.mk

Change-Id: I3f0f6e692c987ff24f98ceafbb86cb9cf64ad8d3

11 years agoInclude RTCD header in encodeframe.c
Johann [Mon, 15 Apr 2013 19:19:06 +0000 (12:19 -0700)]
Include RTCD header in encodeframe.c

The file uses functions defined in vp8_rtcd.h but did not include the
header.

Change-Id: I110196ddc9181e533be1fe656e21c1791cabe226

11 years agoFix for multi-res-encoding:
Marco Paniconi [Fri, 12 Apr 2013 01:19:18 +0000 (18:19 -0700)]
Fix for multi-res-encoding:

Use local variable for setting the improved prediction mode.
cpi->sf.improved_mv_pred is set/fixed at the frame level
and should not be changed inside pick_inter_mode.

Change-Id: Ie28d9171ac000e631af0e30204970e3d4fff3078

11 years agofix make test invocation for msvc win64
James Zern [Fri, 5 Apr 2013 18:56:54 +0000 (11:56 -0700)]
fix make test invocation for msvc win64

Change-Id: If5d4b7ffa67223ed72b53a6c9b9e42b4de5718f2

11 years agotests: use a portable rand() implementation
James Zern [Fri, 5 Apr 2013 02:00:31 +0000 (19:00 -0700)]
tests: use a portable rand() implementation

the one from gtest in this case: testing::internal::Random.
this will make the tests deterministic between platforms. addresses
issue #568.

Change-Id: I5a8a92f5c33f52cb0a219c1dd3d02335acbbf163

11 years agoDemux vp9_loopfilter_x86.c
Johann [Tue, 2 Apr 2013 18:45:01 +0000 (11:45 -0700)]
Demux vp9_loopfilter_x86.c

Allow more careful targeting of compiler flags.

Change-Id: I963ab4a6479dedb165419310dfca52a58a9877b8

11 years agovp9_sadmxn_x86 only contains SSE2 functions
Johann [Tue, 2 Apr 2013 18:20:55 +0000 (11:20 -0700)]
vp9_sadmxn_x86 only contains SSE2 functions

Rename the file and clean up includes. In the future we would like to
pattern match the files which need additional compiler flags.

Change-Id: I2c76256467f392a78dd4ccc71e6e0a580e158e56

11 years agoAdding/Uncommenting elements for Alpha Support
Vignesh Venkatasubramanian [Mon, 1 Apr 2013 22:36:29 +0000 (15:36 -0700)]
Adding/Uncommenting elements for Alpha Support

Uncommenting Track elements related to BlockAdditional and adding
the new AlphaMode element as specified in the matroska spec here:
http://matroska.org/technical/specs/index.html#AlphaMode

Change-Id: I87895931e8885e4832efa74776ab1bea91a634e2

11 years agoMerge "Tokenization code cleanup." into experimental
John Koleszar [Fri, 29 Mar 2013 17:55:55 +0000 (10:55 -0700)]
Merge "Tokenization code cleanup." into experimental

11 years agoMerge "Extracting common motion vector prediction code." into experimental
John Koleszar [Fri, 29 Mar 2013 17:43:38 +0000 (10:43 -0700)]
Merge "Extracting common motion vector prediction code." into experimental

11 years agoMerge "General code cleanup." into experimental
John Koleszar [Fri, 29 Mar 2013 17:40:34 +0000 (10:40 -0700)]
Merge "General code cleanup." into experimental

11 years agoMerge "Extracting decode_tiles function." into experimental
John Koleszar [Fri, 29 Mar 2013 17:25:34 +0000 (10:25 -0700)]
Merge "Extracting decode_tiles function." into experimental

11 years agoMerge "define a specific neighborhood for SB64 mv search" into experimental
Yaowu Xu [Fri, 29 Mar 2013 16:26:14 +0000 (09:26 -0700)]
Merge "define a specific neighborhood for SB64 mv search" into experimental

11 years agoMerge "remove code not in use" into experimental
Yaowu Xu [Fri, 29 Mar 2013 15:40:29 +0000 (08:40 -0700)]
Merge "remove code not in use" into experimental

11 years agoMerge "Reoptimizing the interpolation filters" into experimental
Deb Mukherjee [Fri, 29 Mar 2013 14:15:05 +0000 (07:15 -0700)]
Merge "Reoptimizing the interpolation filters" into experimental

11 years agoMerge "Bug fix: Issue 532: VPX codec executes emms instruction without"
Scott LaVarnway [Thu, 28 Mar 2013 21:26:13 +0000 (14:26 -0700)]
Merge "Bug fix: Issue 532: VPX codec executes emms instruction without"

11 years agoMerge "Adjust mv_ratio_accumulator threshold." into experimental
Paul Wilkins [Thu, 28 Mar 2013 19:53:23 +0000 (12:53 -0700)]
Merge "Adjust mv_ratio_accumulator threshold." into experimental

11 years agoMerge "Fix mix-up in pt token indexing." into experimental
Ronald S. Bultje [Thu, 28 Mar 2013 19:53:00 +0000 (12:53 -0700)]
Merge "Fix mix-up in pt token indexing." into experimental

11 years agoMerge "Fix crash when --tune=ssim is selected." into experimental
Yaowu Xu [Thu, 28 Mar 2013 18:23:44 +0000 (11:23 -0700)]
Merge "Fix crash when --tune=ssim is selected." into experimental

11 years agoMerge "Save nzcstats." into experimental
Ronald S. Bultje [Thu, 28 Mar 2013 16:36:58 +0000 (09:36 -0700)]
Merge "Save nzcstats." into experimental

11 years agoFix mix-up in pt token indexing.
Ronald S. Bultje [Thu, 28 Mar 2013 16:24:29 +0000 (09:24 -0700)]
Fix mix-up in pt token indexing.

This fixes uninitialized reads in the trellis, and probably makes the
trellis do something again.

Change-Id: Ifac8dae9aa77574bde0954a71d4571c5c556df3c

11 years agoAdjust mv_ratio_accumulator threshold.
Paul Wilkins [Tue, 26 Mar 2013 14:40:24 +0000 (14:40 +0000)]
Adjust mv_ratio_accumulator threshold.

This threshold effectively limits the amount of motion
from one end of a GF/ARF group to the other.
This patch makes the threshold depend on image size.

Change-Id: Id45d1d7bced815f86ddd037be53164894b00b82f

11 years agoFix crash when --tune=ssim is selected.
Paul Wilkins [Tue, 26 Mar 2013 13:11:52 +0000 (13:11 +0000)]
Fix crash when --tune=ssim is selected.

Crash fix only. No functional change or testing.

Change-Id: I0c6d114d024c29fc11ae61666f5938f11b01dd6a

11 years agodefine a specific neighborhood for SB64 mv search
Yaowu Xu [Wed, 27 Mar 2013 18:07:44 +0000 (11:07 -0700)]
define a specific neighborhood for SB64 mv search

Change-Id: Ifda91d697c5970c65ce3ec1feac5562124f91782

11 years agoExtracting decode_tiles function.
Dmitry Kovalev [Wed, 27 Mar 2013 23:23:12 +0000 (16:23 -0700)]
Extracting decode_tiles function.

Extracting decode_tiles function from vp9_decode_frame.

Change-Id: I02a465eeaf76138ef3559e1d46deb452c10e1219

11 years agoExtracting common motion vector prediction code.
Dmitry Kovalev [Wed, 27 Mar 2013 21:35:36 +0000 (14:35 -0700)]
Extracting common motion vector prediction code.

Adding b_mv_pred_row and b_mv_pred_col functions, updating
mi_mv_pred_row and mi_mv_pred_row functions.

Change-Id: I9af068442d4474478375943cc6fce1605d6fc0a5

11 years agoGeneral code cleanup.
Dmitry Kovalev [Wed, 27 Mar 2013 21:22:30 +0000 (14:22 -0700)]
General code cleanup.

Removing redundant code, lower case variable names, better indentation,
better parameter names, adding const to readonly parameters.

Change-Id: Ibfdee00f60316fdc5b3f024028c7aaa76a627483

11 years agoMerge "Extract setup_frame_size and update_frame_context functions." into experimental
John Koleszar [Wed, 27 Mar 2013 21:21:57 +0000 (14:21 -0700)]
Merge "Extract setup_frame_size and update_frame_context functions." into experimental

11 years agoExtract setup_frame_size and update_frame_context functions.
Dmitry Kovalev [Wed, 27 Mar 2013 21:04:35 +0000 (14:04 -0700)]
Extract setup_frame_size and update_frame_context functions.

Extracting setup_frame_size and update_frame_context functions. Introducing
vp9_read_prob function as shortcut for (vp9_prob)vp9_read_literal(r, 8).

Change-Id: Ia5c68fd725b2d1b9c5eb20f69cacb62361b5a3dd

11 years agoTokenization code cleanup.
Dmitry Kovalev [Wed, 27 Mar 2013 21:03:56 +0000 (14:03 -0700)]
Tokenization code cleanup.

Moving almost identical code to decode_sb32 and decode_sb64 functions.

Change-Id: Id39377aa5106be85d5b0fc3f83586b3779a6c0da

11 years agoMerge "Convert inv_tile_order to control interface" into experimental
John Koleszar [Wed, 27 Mar 2013 20:41:12 +0000 (13:41 -0700)]
Merge "Convert inv_tile_order to control interface" into experimental

11 years agoMerge "Convert g_frame_parallel_decoding to control interface" into experimental
John Koleszar [Wed, 27 Mar 2013 20:41:09 +0000 (13:41 -0700)]
Merge "Convert g_frame_parallel_decoding to control interface" into experimental

11 years agoMerge "Modify idct code to use macro" into experimental
Yunqing Wang [Wed, 27 Mar 2013 19:51:41 +0000 (12:51 -0700)]
Merge "Modify idct code to use macro" into experimental

11 years agoModify idct code to use macro
Yunqing Wang [Wed, 27 Mar 2013 19:36:08 +0000 (12:36 -0700)]
Modify idct code to use macro

Small modification of idct code.

Change-Id: I5c4e3223944c68e4ccf762f6cf07c990250e4290

11 years agoMerge "Merge branch 'master' into experimental" into experimental
John Koleszar [Wed, 27 Mar 2013 19:29:32 +0000 (12:29 -0700)]
Merge "Merge branch 'master' into experimental" into experimental

11 years agoMerge "Cleaning up rate control code." into experimental
John Koleszar [Wed, 27 Mar 2013 19:29:00 +0000 (12:29 -0700)]
Merge "Cleaning up rate control code." into experimental

11 years agoMerge "Optimize 32x32 idct function" into experimental
Yunqing Wang [Wed, 27 Mar 2013 18:30:48 +0000 (11:30 -0700)]
Merge "Optimize 32x32 idct function" into experimental

11 years agoConvert inv_tile_order to control interface
John Koleszar [Wed, 27 Mar 2013 18:22:20 +0000 (11:22 -0700)]
Convert inv_tile_order to control interface

Restore ABI compatibility with the master branch.

Change-Id: Ie9f6fdf536662bd87dfcf114d16f003422670763

11 years agoConvert g_frame_parallel_decoding to control interface
John Koleszar [Wed, 27 Mar 2013 18:07:26 +0000 (11:07 -0700)]
Convert g_frame_parallel_decoding to control interface

Restore ABI compatibility with the master branch.

Change-Id: Ic57e7e1de09ab33bd37990e52a63ba7c8f1432a4

11 years agoOptimize 32x32 idct function
Yunqing Wang [Wed, 27 Mar 2013 17:46:35 +0000 (10:46 -0700)]
Optimize 32x32 idct function

Wrote sse2 version of vp9_short_idct_32x32 function. Compared
to c version, the sse2 version is 5X faster.

Change-Id: I071ab7378358346ab4d9c6e2980f713c3c209864

11 years agoMerge branch 'master' into experimental
John Koleszar [Wed, 27 Mar 2013 17:41:29 +0000 (10:41 -0700)]
Merge branch 'master' into experimental

Pick up VP8 encryption, quantization changes, and some fixes to vpxenc

Conflicts:
test/decode_test_driver.cc
test/decode_test_driver.h
test/encode_test_driver.cc
vp8/vp8cx.mk
vpxdec.c
vpxenc.c

Change-Id: I9fbcc64808ead47e22f1f22501965cc7f0c4791c

11 years agoSave nzcstats.
Ronald S. Bultje [Mon, 25 Mar 2013 23:29:45 +0000 (16:29 -0700)]
Save nzcstats.

Change-Id: I4a3a9eb9f9d17218a0f0d7e148123d34dae879c2

11 years agoScatter-based scantables.
Ronald S. Bultje [Mon, 25 Mar 2013 19:14:01 +0000 (12:14 -0700)]
Scatter-based scantables.

This gains about 0.2% on derf, 0.1% on hd and 0.4% on stdhd. I can put
this under an experimental flag if wanted, just trying to get my patch
queue in shape.

Change-Id: Ibe1a30fe0e0b07bec4802e0f3ff0ba22e505f576

11 years agoMerge "ENTROPY_STATS -> VP8_ENTROPY_STATS in vp8/." into experimental
Ronald S. Bultje [Wed, 27 Mar 2013 02:18:02 +0000 (19:18 -0700)]
Merge "ENTROPY_STATS -> VP8_ENTROPY_STATS in vp8/." into experimental

11 years agoMerge "Add col/row-based coefficient scanning patterns for 1D 8x8/16x16 ADSTs." into...
Ronald S. Bultje [Wed, 27 Mar 2013 02:17:08 +0000 (19:17 -0700)]
Merge "Add col/row-based coefficient scanning patterns for 1D 8x8/16x16 ADSTs." into experimental

11 years agoMerge "Redo banding for all transforms." into experimental
Ronald S. Bultje [Wed, 27 Mar 2013 02:16:44 +0000 (19:16 -0700)]
Merge "Redo banding for all transforms." into experimental

11 years agoMerge "Use above/left (instead of previous in scan-order) as token context." into...
Ronald S. Bultje [Wed, 27 Mar 2013 02:16:24 +0000 (19:16 -0700)]
Merge "Use above/left (instead of previous in scan-order) as token context." into experimental

11 years agoImplicit weighted prediction experiment
Deb Mukherjee [Tue, 12 Mar 2013 21:21:08 +0000 (14:21 -0700)]
Implicit weighted prediction experiment

Adds an experiment to use a weighted prediction of two INTER
predictors, where the weight is one of (1/4, 3/4), (3/8, 5/8),
(1/2, 1/2), (5/8, 3/8) or (3/4, 1/4), and is chosen implicitly
based on consistency of the predictors to the already
reconstructed pixels to the top and left of the current macroblock
or superblock.

Currently the weighting is not applied to SPLITMV modes, which
default to the usual (1/2, 1/2) weighting. However the code is in
place controlled by a macro. The same weighting is used for Y and
UV components, where the weight is derived from analyzing the Y
component only.

Results (over compound inter-intra experiment)
derf: +0.18%
yt: +0.34%
hd: +0.49%
stdhd: +0.23%

The experiment suggests bigger benefit for explicitly signaled weights.

Change-Id: I5438539ff4485c5752874cd1eb078ff14bf5235a

11 years agoAdd col/row-based coefficient scanning patterns for 1D 8x8/16x16 ADSTs.
Ronald S. Bultje [Mon, 25 Mar 2013 19:30:00 +0000 (12:30 -0700)]
Add col/row-based coefficient scanning patterns for 1D 8x8/16x16 ADSTs.

These are mostly just for experimental purposes. I saw small gains (in
the 0.1% range) when playing with this on derf.

Change-Id: Ib21eed477bbb46bddcd73b21c5c708a5b46abedc

11 years agoRedo banding for all transforms.
Ronald S. Bultje [Mon, 25 Mar 2013 19:28:24 +0000 (12:28 -0700)]
Redo banding for all transforms.

Now that the first AC coefficient in both directions use the same DC
as their context, there no longer is a purpose in letting both have
their own band. Merging these two bands allows us to split bands for
some of the very high-frequency AC bands.

In addition, I'm redoing the banding for the 1D-ADST col/row scans. I
don't think the old banding made any sense at all (it merged the last
coefficient of the first row/col in the same band as the first two of
the second row/col), which was clearly an oversight from the band being
applied in scan-order (rather than in their actual position). Now,
coefficients at the same position will be in the same band, regardless
what scan order is used. I think this makes most sense for the purpose
of banding, which is basically "predict energy for this coefficient
depending on the energy of context coefficients" (i.e. pt).

After full re-training, together with previous patch, derf gains about
1.2-1.3%, and hd/stdhd gain about 0.9-1.0%.

Change-Id: I7a0cc12ba724e88b278034113cb4adaaebf87e0c

11 years agoUse above/left (instead of previous in scan-order) as token context.
Ronald S. Bultje [Tue, 26 Mar 2013 23:46:09 +0000 (16:46 -0700)]
Use above/left (instead of previous in scan-order) as token context.

Pearson correlation for above or left is significantly higher than for
previous-in-scan-order (absolute values depend on position in scan, but
in general, we gain about 0.1-0.2 by using either above or left; using
both basically just makes this even better). For eob branch skipping,
we continue to use the previous token in scan order.

This helps about 0.9% on derf after re-training on a limited data set.
Full re-training and results on larger-resolution clips are pending.

Note that this commit breaks trellis, so we can probably get further
gains out of it by fixing trellis at some later point.

Change-Id: Iead68e296fc3a105cca746b5e3da9555d6010cfe

11 years agoReoptimizing the interpolation filters
Deb Mukherjee [Tue, 26 Mar 2013 05:10:06 +0000 (22:10 -0700)]
Reoptimizing the interpolation filters

Reoptimizes the 8-tap smooth filter.

Results:
derf: +0.101%
yt: +0.157%
hd: +0.791%
stdhd: +0.264%

The next step will be to reoptimize the other two filters.

Change-Id: I3d256a510ad9c7c30c33fae4a70fb43dfc708ed0

11 years agoremove code not in use
Yaowu Xu [Tue, 26 Mar 2013 22:27:35 +0000 (15:27 -0700)]
remove code not in use

Change-Id: I4fa46f10e82aca36c563f7ea829e5a3177a0c740

11 years agoMerge "Cleaning up loopfilter code." into experimental
John Koleszar [Tue, 26 Mar 2013 19:40:37 +0000 (12:40 -0700)]
Merge "Cleaning up loopfilter code." into experimental

11 years agoCleaning up rate control code.
Dmitry Kovalev [Tue, 26 Mar 2013 18:25:58 +0000 (11:25 -0700)]
Cleaning up rate control code.

Lower case variable names, declaration and initialization on the same line,
removing redundant casts to double.

Change-Id: I7ea3905bed827aa6faac11a78401b85e448b57f9

11 years agoCleaning up loopfilter code.
Dmitry Kovalev [Tue, 26 Mar 2013 18:08:34 +0000 (11:08 -0700)]
Cleaning up loopfilter code.

Lower case variable names, removing redundant variables, declaration and
initialization on the same line.

Change-Id: Ie0c6c95b14103990eb6a9d7784f8259c662e1251

11 years agoDecomposition of vp9_decode_frame function.
Dmitry Kovalev [Tue, 26 Mar 2013 18:04:25 +0000 (11:04 -0700)]
Decomposition of vp9_decode_frame function.

Moving code from vp9_decode_frame function into setup_loopfilter and
setup_segmentation functions. A little bit of cleanup.

Change-Id: I2cce1813e4d7aeec701ccf752bf57e3bdd41b51c

11 years agoMerge "Add an in-loop deringing experiment" into experimental
John Koleszar [Tue, 26 Mar 2013 15:36:55 +0000 (08:36 -0700)]
Merge "Add an in-loop deringing experiment" into experimental

11 years agoMerge "Code cleanup." into experimental
John Koleszar [Tue, 26 Mar 2013 15:34:06 +0000 (08:34 -0700)]
Merge "Code cleanup." into experimental

11 years agoMerge "Code cleanup." into experimental
John Koleszar [Tue, 26 Mar 2013 15:30:46 +0000 (08:30 -0700)]
Merge "Code cleanup." into experimental

11 years agoMerge "Changing initialization order of mb_to_top_edge & mb_to_bottom_edge" into...
John Koleszar [Tue, 26 Mar 2013 15:25:45 +0000 (08:25 -0700)]
Merge "Changing initialization order of mb_to_top_edge & mb_to_bottom_edge" into experimental

11 years agoAdd an in-loop deringing experiment
John Koleszar [Wed, 20 Mar 2013 17:22:20 +0000 (10:22 -0700)]
Add an in-loop deringing experiment

Adds a per-frame, strength adjustable, in loop deringing filter. Uses
the existing vp9_post_proc_down_and_across 5 tap thresholded blur
code, with a brute force search for the threshold.

Results almost strictly positive on the YT HD set, either having no
effect or helping PSNR in the range of 1-3% (overall average 0.8%).
Results more mixed for the CIF set, (-0.5 min, 1.4 max, 0.1 avg).
This has an almost strictly negative impact to SSIM, so examining a
different filter or a more balanced search heuristic is in order.

Other test set results pending.

Change-Id: I5ca6ee8fe292dfa3f2eab7f65332423fa1710b58

11 years agoBugfix in model coef prob experiment
Deb Mukherjee [Tue, 26 Mar 2013 14:29:24 +0000 (07:29 -0700)]
Bugfix in model coef prob experiment

Fixes an issue with model based update that got into
the original patch that was merged.

Change-Id: Ie42d3d0aff2e48cd187d96664dbd3e9d6d3ac22f

11 years agoMerge "Modeling default coef probs with distribution" into experimental
Deb Mukherjee [Tue, 26 Mar 2013 14:13:13 +0000 (07:13 -0700)]
Merge "Modeling default coef probs with distribution" into experimental

11 years agoModeling default coef probs with distribution
Deb Mukherjee [Wed, 13 Mar 2013 18:03:17 +0000 (11:03 -0700)]
Modeling default coef probs with distribution

Replaces the default tables for single coefficient magnitudes with
those obtained from an appropriate distribution. The EOB node
is left unchanged. The model is represeted as a 256-size codebook
where the index corresponds to the probability of the Zero or the
One node. Two variations are implemented corresponding to whether
the Zero node or the One-node is used as the peg. The main advantage
is that the default prob tables will become considerably smaller and
manageable. Besides there is substantially less risk of over-fitting
for a training set.

Various distributions are tried and the one that gives the best
results is the family of Generalized Gaussian distributions with
shape parameter 0.75. The results are within about 0.2% of fully
trained tables for the Zero peg variant, and within 0.1% of the
One peg variant.

The forward updates are optionally (controlled by a macro)
model-based, i.e. restricted to only convey probabilities from the
codebook. Backward updates can also be optionally (controlled by
another macro) model-based, but is turned off by default. Currently
model-based forward updates work about the same as unconstrained
updates, but there is a drop in performance with backward-updates
being model based.

The model based approach also allows the probabilities for the key
frames to be adjusted from the defaults based on the base_qindex of
the frame. Currently the adjustment function is a placeholder that
adjusts the prob of EOB and Zero node from the nominal one at higher
quality (lower qindex) or lower quality (higher qindex) ends of the
range. The rest of the probabilities are then derived based on the
model from the adjusted prob of zero.

Change-Id: Iae050f3cbcc6d8b3f204e8dc395ae47b3b2192c9

11 years agoCode cleanup.
Dmitry Kovalev [Mon, 25 Mar 2013 22:16:14 +0000 (15:16 -0700)]
Code cleanup.

Fixing function arguments alignment, reusing MIN/MAX and clamp functions.

Change-Id: I87dd5a40ffb65b521b8abbf0fccf2f50552c5309

11 years agoCode cleanup.
Dmitry Kovalev [Mon, 25 Mar 2013 21:24:26 +0000 (14:24 -0700)]
Code cleanup.

Lower case variable names, code simplification by using already defined
clamp and read_le16 functions.

Change-Id: I8fd544365bd8d1daed86d7b2ae0843e4ef80df08

11 years agoFixing fourcc for VP8 and VP9.
Dmitry Kovalev [Fri, 22 Mar 2013 18:56:02 +0000 (11:56 -0700)]
Fixing fourcc for VP8 and VP9.

Changing 0x00 ('') fourcc byte to 0x30 ('0'). For VP8 from
0x00385056 to 0x30385056, for VP9 from 0x00395056 to 0x30395056.

Change-Id: I26b1b603c20dd41f7aeabf8cd7893dfd5b1c8b59

11 years agoMerge "Optimize 16x16 idct10 function" into experimental
Yunqing Wang [Fri, 22 Mar 2013 18:17:32 +0000 (11:17 -0700)]
Merge "Optimize 16x16 idct10 function" into experimental

11 years agoMerge "Disable zero bin mode boost." into experimental
Paul Wilkins [Fri, 22 Mar 2013 17:59:43 +0000 (10:59 -0700)]
Merge "Disable zero bin mode boost." into experimental

11 years agoMerge "Minor code clean up" into experimental
Paul Wilkins [Fri, 22 Mar 2013 17:53:12 +0000 (10:53 -0700)]
Merge "Minor code clean up" into experimental

11 years agoDisable zero bin mode boost.
Paul Wilkins [Fri, 22 Mar 2013 15:47:17 +0000 (15:47 +0000)]
Disable zero bin mode boost.

As things stand the zero bin mode boost is hurting somewhat.
In part this seems to be because the boost applied as is
interferes with the rd mode selection loop.

Average gains (derf 0.072, yt 0.243, ythd 0.179 std-hd 0.212%)

Change-Id: Icaecea3908d9a7352370e49b8fa822f2c2c49dc1

11 years agoMinor code clean up
Paul Wilkins [Thu, 21 Mar 2013 18:37:48 +0000 (18:37 +0000)]
Minor code clean up

Change-Id: Ifa864e0acb253b238b03cdeed0fe5d6ee30a45d8

11 years agoMerge "Remove TX size segment feature" into experimental
Paul Wilkins [Fri, 22 Mar 2013 17:39:22 +0000 (10:39 -0700)]
Merge "Remove TX size segment feature" into experimental

11 years agoRemove gcc-specific __label__
Shimon Doodkin [Thu, 21 Mar 2013 18:51:02 +0000 (11:51 -0700)]
Remove gcc-specific __label__

Use unique names and ditch the local label declaration. Visual Studio
does not support it.

https://code.google.com/p/webm/issues/detail?id=561

Change-Id: Ica643cf5abb56ee6156371f5bf73fdeb58014422

11 years agoOptimize 16x16 idct10 function
Yunqing Wang [Thu, 21 Mar 2013 23:29:36 +0000 (16:29 -0700)]
Optimize 16x16 idct10 function

Wrote sse2 version of vp9_short_idct10_16x16 function. Compared
to c version, the sse2 version is 2.3X faster.

Change-Id: I314c4f09369648721798321eeed6f58e38857f26