platform/upstream/libvpx.git
10 years agoRefactor rate distortion cost structure in non-RD coding mode
Jingning Han [Tue, 21 Oct 2014 23:31:37 +0000 (16:31 -0700)]
Refactor rate distortion cost structure in non-RD coding mode

This commit refactors the rate distortion structure used in the
non-RD coding mode and saves a few RDCOST calculations.

Change-Id: I62c3416c300d2c5372f21b96d93a6b633a34ab3a

10 years agoRemove unused copy_partitioning
Jingning Han [Tue, 21 Oct 2014 16:47:58 +0000 (09:47 -0700)]
Remove unused copy_partitioning

Change-Id: I75a2a3772ed17e73180eb4f263cc838cae4927b0

10 years agoMerge "Adding test vectors for profile 2 and 3"
Deb Mukherjee [Tue, 21 Oct 2014 16:44:46 +0000 (09:44 -0700)]
Merge "Adding test vectors for profile 2 and 3"

10 years agoMerge "Remove deprecated constrain_copy_partitioning function"
Jingning Han [Tue, 21 Oct 2014 16:44:11 +0000 (09:44 -0700)]
Merge "Remove deprecated constrain_copy_partitioning function"

10 years agoMerge "Remove unused sb_has_motion function in vp9_encodeframe.c"
Jingning Han [Tue, 21 Oct 2014 16:43:55 +0000 (09:43 -0700)]
Merge "Remove unused sb_has_motion function in vp9_encodeframe.c"

10 years agoMerge "Remove deprecated use_lastframe_partitioning feature"
Jingning Han [Tue, 21 Oct 2014 16:43:45 +0000 (09:43 -0700)]
Merge "Remove deprecated use_lastframe_partitioning feature"

10 years agoMerge "Hybrid partition search for rtc coding mode"
Jingning Han [Tue, 21 Oct 2014 16:43:35 +0000 (09:43 -0700)]
Merge "Hybrid partition search for rtc coding mode"

10 years agoMerge "Extend --auto-alt-ref so it can enable multi-alt ref."
Paul Wilkins [Tue, 21 Oct 2014 14:02:24 +0000 (07:02 -0700)]
Merge "Extend --auto-alt-ref so it can enable multi-alt ref."

10 years agoMerge "Resolve compiler warning."
Paul Wilkins [Tue, 21 Oct 2014 14:02:13 +0000 (07:02 -0700)]
Merge "Resolve compiler warning."

10 years agoAdding test vectors for profile 2 and 3
Deb Mukherjee [Tue, 21 Oct 2014 06:51:58 +0000 (23:51 -0700)]
Adding test vectors for profile 2 and 3

Also adds mising test vectors for profile 1.

Change-Id: I5269af8b9e6b708ce50a0d9c69b6cae4bb2870dc

10 years agoRemove deprecated constrain_copy_partitioning function
Jingning Han [Mon, 20 Oct 2014 22:34:19 +0000 (15:34 -0700)]
Remove deprecated constrain_copy_partitioning function

Its functionality has been replaced with choose_partitioning and
threshold based control on split mode check.

Change-Id: Ic9bb321df06b524f5c38ea5874dc6f6a8f93c5e3

10 years agoRemove unused sb_has_motion function in vp9_encodeframe.c
Jingning Han [Mon, 20 Oct 2014 22:29:58 +0000 (15:29 -0700)]
Remove unused sb_has_motion function in vp9_encodeframe.c

Change-Id: I035fb6aa5c10741b065e27befb097d8087e3c62f

10 years agoRemove deprecated use_lastframe_partitioning feature
Jingning Han [Mon, 20 Oct 2014 22:00:24 +0000 (15:00 -0700)]
Remove deprecated use_lastframe_partitioning feature

This speed feature has been deprecated in both yt and rtc coding
modes. This commit removes the related operations.

Change-Id: I079c79c6adafe45581af2ebf8b98faebcface1ce

10 years agoHybrid partition search for rtc coding mode
Jingning Han [Fri, 17 Oct 2014 15:58:28 +0000 (08:58 -0700)]
Hybrid partition search for rtc coding mode

This commit re-designs the recursive partition search scheme in
rtc speed -5. It first checks if the current block is under cyclic
refresh mode. If so, apply recursive partition search. Otherwise,
perform sub-sampled pixel based partition selection. When the
pre-selection finds the partition size should be 32x32 or above,
use the partition size directly. Otherwise, apply partition search
at nearby levels around the preset partition size.

It is enabled in speed -5. The compression performance of rtc
speed -5 is improved by 9.4%. Speed wise, the run-time goes slower
from 1% to 10%.

nik_720p, 1000 kbps
33220 b/f, 38.977 dB, 10109 ms -> 33200 b/f, 39.119 dB, 10210 ms

vidyo1_720p, 1000 kbps
16536 b/f, 40.495 dB, 10119 ms -> 16536 b/f, 40.827 dB, 11287 ms

Change-Id: I65adba352e3adc03bae50854ddaea1b421653c6c

10 years agoMerge "SAD32xh and SAD64xh for AVX2"
Yunqing Wang [Mon, 20 Oct 2014 19:37:55 +0000 (12:37 -0700)]
Merge "SAD32xh and SAD64xh for AVX2"

10 years agoMerge "Remove the dependency in token storing locations"
Yunqing Wang [Mon, 20 Oct 2014 15:26:46 +0000 (08:26 -0700)]
Merge "Remove the dependency in token storing locations"

10 years agoExtend --auto-alt-ref so it can enable multi-alt ref.
Paul Wilkins [Mon, 20 Oct 2014 11:05:17 +0000 (12:05 +0100)]
Extend --auto-alt-ref so it can enable multi-alt ref.

Extend --auto-alt-ref from parameter so we can use it to
turn multi-arf on and off from the command line.

For now the range is 0-off, 1-on, 2-multi-arf on.

Rename play_alternate to enable_auto_arf

Change-Id: Id7b64407cfbe76ba0090a83b588a03e22a240386

10 years agoResolve compiler warning.
Paul Wilkins [Mon, 20 Oct 2014 11:08:33 +0000 (12:08 +0100)]
Resolve compiler warning.

conversion from 'const int64_t' to 'int', possible loss of data.

Change-Id: I471a73bba5d448d9be0ef9cbf1590fa73aa74be1

10 years agoMerge "Alter adjustment of two pass GF/ARF boost with Q."
Paul Wilkins [Mon, 20 Oct 2014 10:12:06 +0000 (03:12 -0700)]
Merge "Alter adjustment of two pass GF/ARF boost with Q."

10 years agoSAD32xh and SAD64xh for AVX2
levytamar82 [Thu, 2 Oct 2014 06:47:31 +0000 (23:47 -0700)]
SAD32xh and SAD64xh for AVX2

All sad function that process above 32 consecutive elements are optimized
for AVX2:
vp9_sad64x64
vp9_sad64x32
vp9_sad32x64
vp9_sad32x32
vp9_sad32x16
vp9_sad64x64_avg
vp9_sad64x32_avg
vp9_sad32x64_avg
vp9_sad32x32_avg
vp9_sad32x16_avg
The functions that appeared as a hotspot is vp9_sad32x32 and vp9_sad64x64
vp9_sad32x32 was optimized by 68% and vp9_sad64x64 was optimized by 90%
both of them gave and overall ~2.3% user level gain

Change-Id: Iccf86b375a2b54c5fbbe685902ead0c9a561b9fd

10 years agoMerge "Add highbitdepth function for vp9_avg_8x8"
Debargha Mukherjee [Sat, 18 Oct 2014 21:37:10 +0000 (14:37 -0700)]
Merge "Add highbitdepth function for vp9_avg_8x8"

10 years agoMerge "Remove unused VAR_BASED_FIXED_PARTITION flag"
Yaowu Xu [Sat, 18 Oct 2014 20:31:47 +0000 (13:31 -0700)]
Merge "Remove unused VAR_BASED_FIXED_PARTITION flag"

10 years agoMerge "Use rate/distortion thresholds to control non-RD partition search"
Yaowu Xu [Sat, 18 Oct 2014 20:31:41 +0000 (13:31 -0700)]
Merge "Use rate/distortion thresholds to control non-RD partition search"

10 years agoAdd highbitdepth function for vp9_avg_8x8
Peter de Rivaz [Thu, 16 Oct 2014 13:36:07 +0000 (14:36 +0100)]
Add highbitdepth function for vp9_avg_8x8

Cherry-picked from https://gerrit.chromium.org/gerrit/#/c/71914/
(a92f987a6b7819ae5c62a429e126e1c26bdb1b71) on highbitdepth branch.

Change-Id: I6903e4e4cb57d90590725c8a1c64c23da7ae65e8

10 years agoUpdates to aggressive denoising mode.
Marco [Fri, 17 Oct 2014 22:55:30 +0000 (15:55 -0700)]
Updates to aggressive denoising mode.

Fix to the noise level and bitrate threshold settings per resolution.

Change-Id: I25524b7f78afa1aeb76edef7be13c17bc8976508

10 years agoRemove the dependency in token storing locations
Yunqing Wang [Thu, 16 Oct 2014 19:29:48 +0000 (12:29 -0700)]
Remove the dependency in token storing locations

Currently, the tokens for a tile are stored immediately after its
preceding tile, which causes a dependency. This is unnecessary
since we always allocate enough memory for tokens. Removing
the dependency allows token writing done in parallel. This patch
doesn't change encoding result.

Change-Id: I7365a6e5e2c2833eb14377c37e1503c9d0f26543

10 years agoMerge "Correct the logic of ready_for_new_data."
hkuang [Fri, 17 Oct 2014 21:13:44 +0000 (14:13 -0700)]
Merge "Correct the logic of ready_for_new_data."

10 years agoMerge "vp9_denoiser_sse2.c: solve windows build error."
JackyChen [Fri, 17 Oct 2014 18:16:22 +0000 (11:16 -0700)]
Merge "vp9_denoiser_sse2.c: solve windows build error."

10 years agoMerge "Add init and reset functions for RD_COST struct"
Jingning Han [Fri, 17 Oct 2014 18:15:19 +0000 (11:15 -0700)]
Merge "Add init and reset functions for RD_COST struct"

10 years agoMerge "Reset rate cost value in rd mode search"
Jingning Han [Fri, 17 Oct 2014 18:15:03 +0000 (11:15 -0700)]
Merge "Reset rate cost value in rd mode search"

10 years agoCorrect the logic of ready_for_new_data.
hkuang [Fri, 17 Oct 2014 17:09:56 +0000 (10:09 -0700)]
Correct the logic of ready_for_new_data.

This should be set right after decoder really start to decode frame
instead setting at the end.

Even decoder does not have a displayable frame to show and return NULL
to application, this should be set too.

Change-Id: If0313a834bc64e3b0f05a84f4459d444d9eab0d8

10 years agoReset rate cost value in rd mode search
Jingning Han [Fri, 17 Oct 2014 16:31:42 +0000 (09:31 -0700)]
Reset rate cost value in rd mode search

When early termination is triggered, properly reset the rate cost
to invalid value to avoid potential ioc issue.

Change-Id: I3444390be2e49a34bb02cf8a74c33d5dbd96d88d

10 years agovp9_denoiser_sse2.c: solve windows build error.
JackyChen [Fri, 17 Oct 2014 16:28:22 +0000 (09:28 -0700)]
vp9_denoiser_sse2.c: solve windows build error.

Change-Id: Ib5df91c8580d5dbeb0b3554edc9c2ca906ba4c4d

10 years agoRemove unused VAR_BASED_FIXED_PARTITION flag
Jingning Han [Wed, 15 Oct 2014 22:45:27 +0000 (15:45 -0700)]
Remove unused VAR_BASED_FIXED_PARTITION flag

Change-Id: I4ce19b7cb1c45fed86e81ee785e787630020fb4f

10 years agoAlter adjustment of two pass GF/ARF boost with Q.
Paul Wilkins [Thu, 16 Oct 2014 15:24:25 +0000 (16:24 +0100)]
Alter adjustment of two pass GF/ARF boost with Q.

Delete gfboost_qadjust() and move Q based adjustment
into calc_frame_boost(). Also remove clamping. Making
the adjustment here means that it influences not just the
boost level but also the selection of the GF/ARF interval.

This change gives a small average gain in PSNR but
larger gains in SSIM, especially for harder std-hd set (1.5%)

Change-Id: I3aa81b8feccaeff93d915e19fb9cf5cd64c86327

10 years agoMerge "vp9_denoiser_sse2.c: eliminate gcc warnings"
James Zern [Fri, 17 Oct 2014 10:26:06 +0000 (03:26 -0700)]
Merge "vp9_denoiser_sse2.c: eliminate gcc warnings"

10 years agovp9_denoiser_sse2.c: eliminate gcc warnings
JackyChen [Mon, 13 Oct 2014 06:29:10 +0000 (23:29 -0700)]
vp9_denoiser_sse2.c: eliminate gcc warnings

Change-Id: I5f63f48e11e31ea9951223c5b18f42a2471e4560

10 years agoMerge "Adds a set of end-to-end encode tests"
Deb Mukherjee [Thu, 16 Oct 2014 21:27:26 +0000 (14:27 -0700)]
Merge "Adds a set of end-to-end encode tests"

10 years agoMerge "Fix an ioc issue in super_block_uvrd"
Jingning Han [Thu, 16 Oct 2014 19:35:11 +0000 (12:35 -0700)]
Merge "Fix an ioc issue in super_block_uvrd"

10 years agoAdds a set of end-to-end encode tests
Deb Mukherjee [Wed, 15 Oct 2014 23:40:12 +0000 (16:40 -0700)]
Adds a set of end-to-end encode tests

Covers all profiles and input formats. The tests check if the
encode succeeds and if the psnr is sane.

Change-Id: I195a5330debf92562846121819b6eaf961e27c01

10 years agoFix an ioc issue in super_block_uvrd
Jingning Han [Thu, 16 Oct 2014 16:19:42 +0000 (09:19 -0700)]
Fix an ioc issue in super_block_uvrd

This commit fixes an ioc issue that will happen when the cumulative
variables are not in effective use. The fix discards these
redundant additions.

Change-Id: Idbac5bfb989c0cedc5f8a323effce938519b2457

10 years agoMerge "Change initialization of static_scene_max_gf_interval."
Paul Wilkins [Thu, 16 Oct 2014 17:46:20 +0000 (10:46 -0700)]
Merge "Change initialization of static_scene_max_gf_interval."

10 years agoMerge "[spatial svc]Another workaround to avoid using prev_mi"
Paul Wilkins [Thu, 16 Oct 2014 17:46:08 +0000 (10:46 -0700)]
Merge "[spatial svc]Another workaround to avoid using prev_mi"

10 years agoMerge "Revert "Move input frame scaling into the recode loop""
Paul Wilkins [Thu, 16 Oct 2014 17:44:58 +0000 (10:44 -0700)]
Merge "Revert "Move input frame scaling into the recode loop""

10 years agoMerge "Revert "[spatial svc]Another workaround to avoid using prev_mi""
Paul Wilkins [Thu, 16 Oct 2014 17:44:47 +0000 (10:44 -0700)]
Merge "Revert "[spatial svc]Another workaround to avoid using prev_mi""

10 years agoMerge "Fix in bit-shift operation for highbitdepth decode"
Deb Mukherjee [Thu, 16 Oct 2014 16:23:57 +0000 (09:23 -0700)]
Merge "Fix in bit-shift operation for highbitdepth decode"

10 years agoChange initialization of static_scene_max_gf_interval.
Paul Wilkins [Thu, 16 Oct 2014 11:39:14 +0000 (12:39 +0100)]
Change initialization of static_scene_max_gf_interval.

This removes an unnecessary restriction that causes
a problem (noticed by AWG) when the forced key frame
interval is set to a very small value, such as 10. In this case
we were being forced to code minimal length GF groups.

Change-Id: I76ef5861a09638ff51f61fea02359554184ada53

10 years ago[spatial svc]Another workaround to avoid using prev_mi
Minghai Shang [Tue, 14 Oct 2014 23:25:03 +0000 (16:25 -0700)]
[spatial svc]Another workaround to avoid using prev_mi

We encode a empty invisible frame in front of the base layer frame to
avoid using prev_mi. Since there's a restriction for reference frame
scaling factor, we have to make it smaller and smaller gradually until
its size is 16x16.

Change remerged.

Change-Id: I9efab38bba7da86e056fbe8f663e711c5df38449

10 years agoRevert "Move input frame scaling into the recode loop"
Paul Wilkins [Thu, 16 Oct 2014 14:53:21 +0000 (15:53 +0100)]
Revert "Move input frame scaling into the recode loop"

This reverts commit 452dc21500a2339ee685cb28efbd2af1b856ea12.

This change has introduced a significant quality regression on content
with forced key frames. (e.g. the YT and yt-hd set). It is most
noticeable in static content where the kf bits dominate. Here, despite
key frames being apparently coded at the same Q, there is a drop in all
metrics of ~20% (e.g clXR and BFa0).

Change-Id: Iba14cc61778c0846fa0a59c33c55a9fc49512cb4

10 years agoRevert "[spatial svc]Another workaround to avoid using prev_mi"
Paul Wilkins [Thu, 16 Oct 2014 14:49:13 +0000 (15:49 +0100)]
Revert "[spatial svc]Another workaround to avoid using prev_mi"

This reverts commit c113457af9880b8e15a36cdaabfd414d1c245693.

Temporary revert to allow clean revert of another commit.

Change-Id: Ia9b7b755e6c48e1b6e383329f121fef175a24b27

10 years agoMerge "fix CONFIG_SPATIAL_SVC warning"
James Zern [Thu, 16 Oct 2014 08:09:15 +0000 (01:09 -0700)]
Merge "fix CONFIG_SPATIAL_SVC warning"

10 years agoMerge "Some updates for Speed 6/VAR_BASED_PARTITION."
Marco [Wed, 15 Oct 2014 22:57:21 +0000 (15:57 -0700)]
Merge "Some updates for Speed 6/VAR_BASED_PARTITION."

10 years agoAdd init and reset functions for RD_COST struct
Jingning Han [Tue, 14 Oct 2014 17:26:28 +0000 (10:26 -0700)]
Add init and reset functions for RD_COST struct

Change-Id: I2902de7051a883fd22e27a655209233733969cfd

10 years agoMerge "Replace copy_partitioning use case with choose_partitioning"
Jingning Han [Wed, 15 Oct 2014 21:54:52 +0000 (14:54 -0700)]
Merge "Replace copy_partitioning use case with choose_partitioning"

10 years agoUse rate/distortion thresholds to control non-RD partition search
Jingning Han [Wed, 15 Oct 2014 19:18:48 +0000 (12:18 -0700)]
Use rate/distortion thresholds to control non-RD partition search

Compare the estimated rate and distortion to the thresholds scaled
according to the operating block size and determine if further
split partition search will be run. The compression performance of
speed -5 is changed by -0.074%. The encoding speed is 10% - 15%
faster.

vidyo1 720p
16545 b/f, 40.492 dB, 11475 ms -> 16535 b/f, 40.486 dB, 10100 ms

nik720p
16624 b/f, 36.310 dB, 10071 ms -> 16617 b/f, 36.313 dB, 8346 ms

Change-Id: Ic9197ab5761279ae55d2fb7813b2af0e0db497b8

10 years agoSome updates for Speed 6/VAR_BASED_PARTITION.
Marco [Thu, 9 Oct 2014 23:01:52 +0000 (16:01 -0700)]
Some updates for Speed 6/VAR_BASED_PARTITION.

Reduce the intra_cost_penalty for non-rd mode,
and some updates to VAR_BASED_PARTITION.

Visual tests show some improvement at Speed 6, for RTC clips.

Change-Id: If9090daf7aed14906a32d931a538ab544bbca606

10 years agoReplace copy_partitioning use case with choose_partitioning
Jingning Han [Wed, 15 Oct 2014 18:37:20 +0000 (11:37 -0700)]
Replace copy_partitioning use case with choose_partitioning

This commit replaces the use of copy_partitioning with
choose_partitioning based on the sse of subsamped pixels, which
provides significantly better coding performance and runs at
similar speed, as compared to copy_partitioning. It improves rtc
speed 5 coding performance by 3%.

Change-Id: I52d3682a12dce0147f5e52383a594fc242ca3228

10 years agoFix in bit-shift operation for highbitdepth decode
Deb Mukherjee [Wed, 15 Oct 2014 17:01:34 +0000 (10:01 -0700)]
Fix in bit-shift operation for highbitdepth decode

Fixes a bug introduced in a previous refactoring patch.

Change-Id: I243e74637cfd7a997c7a1fef03b06c290dd0dee6

10 years agofix CONFIG_SPATIAL_SVC warning
James Zern [Wed, 15 Oct 2014 14:37:35 +0000 (16:37 +0200)]
fix CONFIG_SPATIAL_SVC warning

this change checks that CONFIG_SPATIAL_SVC is defined and adds a TODO to
ensure this is changed in the future as the release headers can't
depend on vpx_config.h.

vpx/vpx_encoder.h:164:5: warning: "CONFIG_SPATIAL_SVC" is not defined
[-Wundef]

Change-Id: I797a0150e5f56caf048e7ee00b282fbc9c5ede19

10 years ago[spatial svc]Another workaround to avoid using prev_mi
Minghai Shang [Tue, 14 Oct 2014 23:25:03 +0000 (16:25 -0700)]
[spatial svc]Another workaround to avoid using prev_mi

We encode a empty invisible frame in front of the base layer frame to
avoid using prev_mi. Since there's a restriction for reference frame
scaling factor, we have to make it smaller and smaller gradually until
its size is 16x16.
Change-Id: I60b680314e33a60b4093cafc296465ee18169c19

10 years agoMerge "Move input frame scaling into the recode loop"
Adrian Grange [Tue, 14 Oct 2014 22:30:42 +0000 (15:30 -0700)]
Merge "Move input frame scaling into the recode loop"

10 years agoMerge "Add a 32-bit friendly sse2 quantizer."
Alex Converse [Tue, 14 Oct 2014 21:35:02 +0000 (14:35 -0700)]
Merge "Add a 32-bit friendly sse2 quantizer."

10 years agoMerge "Remove an unneeded function call"
Yunqing Wang [Tue, 14 Oct 2014 21:06:23 +0000 (14:06 -0700)]
Merge "Remove an unneeded function call"

10 years agoMerge "Correct the format."
hkuang [Tue, 14 Oct 2014 20:45:11 +0000 (13:45 -0700)]
Merge "Correct the format."

10 years agoRemove an unneeded function call
Yunqing Wang [Tue, 14 Oct 2014 18:41:37 +0000 (11:41 -0700)]
Remove an unneeded function call

set_tile_limits() is called in vp9_change_config() already.

Change-Id: I91c3a0df2c1c7fd7e71546d8f51fd5b65838a7da

10 years agoAdd a 32-bit friendly sse2 quantizer.
Alex Converse [Mon, 13 Oct 2014 22:17:05 +0000 (15:17 -0700)]
Add a 32-bit friendly sse2 quantizer.

This is based on the 64-bit ssse3 quantizer.

1.1x speedup for screen content at speed 7.

Change-Id: I57d15415ef97c49165954bbe3daaaf9318e37448

10 years agoCorrect the format.
hkuang [Tue, 14 Oct 2014 18:35:26 +0000 (11:35 -0700)]
Correct the format.

Change-Id: I59a53b419adda3a609d50b2a82f5a4a54849752e

10 years agoMerge "Refactor super_block_uvrd function to remove goto statement"
Jingning Han [Tue, 14 Oct 2014 18:33:00 +0000 (11:33 -0700)]
Merge "Refactor super_block_uvrd function to remove goto statement"

10 years agoMerge "Remove unnecessary local variable."
hkuang [Tue, 14 Oct 2014 18:05:51 +0000 (11:05 -0700)]
Merge "Remove unnecessary local variable."

10 years agoMerge "Remove extra line."
hkuang [Tue, 14 Oct 2014 18:05:01 +0000 (11:05 -0700)]
Merge "Remove extra line."

10 years agoRefactor super_block_uvrd function to remove goto statement
Jingning Han [Tue, 14 Oct 2014 00:06:22 +0000 (17:06 -0700)]
Refactor super_block_uvrd function to remove goto statement

Use return value 0/1 as indicator of the validity of the rate-
distortion cost.

Change-Id: I6244126fbf03472cebcba4f177a6cd329fae4743

10 years agoMove input frame scaling into the recode loop
Adrian Grange [Thu, 2 Oct 2014 22:26:42 +0000 (15:26 -0700)]
Move input frame scaling into the recode loop

Move the point at which input frames are scaled
into the recode loop. This will allow us to change
the coded frame size dynamically in response
to previous attempts to encode the frame at a
higher resolution.

A following patch will implement a scheme for
resizing the frame in the recode loop.

Change-Id: I6a59c02d6ac1626512edad6de8b60063b79433e6

10 years agoMerge "Use speed feature variable in vp9_rd_pick_inter/intra_mode"
Jingning Han [Tue, 14 Oct 2014 16:10:24 +0000 (09:10 -0700)]
Merge "Use speed feature variable in vp9_rd_pick_inter/intra_mode"

10 years agoMerge "Fix vp9_rd_pick_inter/intra function types"
Jingning Han [Tue, 14 Oct 2014 16:10:11 +0000 (09:10 -0700)]
Merge "Fix vp9_rd_pick_inter/intra function types"

10 years agoMerge "Refactor rate distortion cost structure"
Jingning Han [Tue, 14 Oct 2014 15:58:55 +0000 (08:58 -0700)]
Merge "Refactor rate distortion cost structure"

10 years agoMerge "Code style change in unit test for VP8/VP9 denoiser."
JackyChen [Tue, 14 Oct 2014 15:46:33 +0000 (08:46 -0700)]
Merge "Code style change in unit test for VP8/VP9 denoiser."

10 years agoMerge "Remove mi_grid_base_array from VP9_COMMON (unused)"
Adrian Grange [Tue, 14 Oct 2014 14:50:17 +0000 (07:50 -0700)]
Merge "Remove mi_grid_base_array from VP9_COMMON (unused)"

10 years agoMerge "Clamp rate error estimate."
Paul Wilkins [Tue, 14 Oct 2014 09:40:12 +0000 (02:40 -0700)]
Merge "Clamp rate error estimate."

10 years agoMerge "Resolves some lint errors"
Deb Mukherjee [Tue, 14 Oct 2014 04:57:24 +0000 (21:57 -0700)]
Merge "Resolves some lint errors"

10 years agoMerge "Add a seg map preservation test vector."
Alex Converse [Tue, 14 Oct 2014 03:02:12 +0000 (20:02 -0700)]
Merge "Add a seg map preservation test vector."

10 years agoUse speed feature variable in vp9_rd_pick_inter/intra_mode
Jingning Han [Mon, 13 Oct 2014 23:13:59 +0000 (16:13 -0700)]
Use speed feature variable in vp9_rd_pick_inter/intra_mode

Replace repeated fetch cpi->sf with a local sf pointer.

Change-Id: I5a55bba3e1c41fbdbc6ad5f078d2fa49dd95ee67

10 years agoResolves some lint errors
Deb Mukherjee [Mon, 13 Oct 2014 21:27:53 +0000 (14:27 -0700)]
Resolves some lint errors

And also fixes some style consistency issues.

Change-Id: I3dc6d44e17d2d6075dc9b02c4255a7395046c5e0

10 years agoFix vp9_rd_pick_inter/intra function types
Jingning Han [Mon, 13 Oct 2014 22:56:37 +0000 (15:56 -0700)]
Fix vp9_rd_pick_inter/intra function types

The returned value is not used anywhere, hence changing the function
type into void.

Change-Id: I0ece49ed61e7aab6df01140135503ad41d4ef4a4

10 years agoMerge "Use pre increment."
hkuang [Mon, 13 Oct 2014 22:24:57 +0000 (15:24 -0700)]
Merge "Use pre increment."

10 years agoRefactor rate distortion cost structure
Jingning Han [Thu, 9 Oct 2014 19:32:56 +0000 (12:32 -0700)]
Refactor rate distortion cost structure

This commit makes a struct that contains rate value, distortion
value, and the rate-distortion cost. The goal is to provide a
better interface for rate-distortion related operation. It is
first used in rd_pick_partition and saves a few RDCOST calculations.

Change-Id: I1a6ab7b35282d3c80195af59b6810e577544691f

10 years agoUse pre increment.
hkuang [Mon, 13 Oct 2014 21:04:16 +0000 (14:04 -0700)]
Use pre increment.

Change-Id: I016b4e77d8268e189473f4c382603afe1ae1750f

10 years agoRemove unnecessary local variable.
hkuang [Mon, 13 Oct 2014 21:05:42 +0000 (14:05 -0700)]
Remove unnecessary local variable.

Change-Id: I7b19b6061cec369825a0a0b7a485ca490dbc12ee

10 years agoRemove mi_grid_base_array from VP9_COMMON (unused)
Adrian Grange [Mon, 13 Oct 2014 18:52:14 +0000 (11:52 -0700)]
Remove mi_grid_base_array from VP9_COMMON (unused)

Change-Id: I4b4764463f5a7cdc01ec004b882c6237466c74b0

10 years agoAdd a seg map preservation test vector.
Alex Converse [Mon, 13 Oct 2014 18:18:22 +0000 (11:18 -0700)]
Add a seg map preservation test vector.

Add a test vector to show the cases where segmentation map is preserved
from frome to frame as outlined in the inquiry in issue 761.

Change-Id: I630c6aba27d0d0b109cc7fd7c6fcd008222a0cf3

10 years agoClamp rate error estimate.
Paul Wilkins [Mon, 13 Oct 2014 17:03:54 +0000 (18:03 +0100)]
Clamp rate error estimate.

Add back clamp which ensures that the Q adaptation
is turned off when the over_shoot_pct and under_shoot_pct
parameters are set to 100.

Change-Id: Id0161b114d39a3029cd3eb28020caab0c3914922

10 years agoMerge "Add adaptation option for VBR."
Paul Wilkins [Mon, 13 Oct 2014 17:04:59 +0000 (10:04 -0700)]
Merge "Add adaptation option for VBR."

10 years agoCode style change in unit test for VP8/VP9 denoiser.
JackyChen [Fri, 10 Oct 2014 17:04:22 +0000 (10:04 -0700)]
Code style change in unit test for VP8/VP9 denoiser.

Change-Id: If4b0aca18c8474dd2456900ae9681e74222e645f

10 years agoMerge "args.h: add arg_parse_enum prototype"
James Zern [Mon, 13 Oct 2014 09:20:21 +0000 (02:20 -0700)]
Merge "args.h: add arg_parse_enum prototype"

10 years agoMerge "vp9_spatial_svc_encoder: fix -bit-depth arg parsing"
James Zern [Mon, 13 Oct 2014 09:20:16 +0000 (02:20 -0700)]
Merge "vp9_spatial_svc_encoder: fix -bit-depth arg parsing"

10 years agoMerge "yv12config: fix highbitdepth build"
James Zern [Mon, 13 Oct 2014 09:20:04 +0000 (02:20 -0700)]
Merge "yv12config: fix highbitdepth build"

10 years agoAdd adaptation option for VBR.
Paul Wilkins [Mon, 13 Oct 2014 09:12:12 +0000 (10:12 +0100)]
Add adaptation option for VBR.

Allow min and maxQ to creep when the undershoot
or overshoot exceeds thresholds controlled by the
command line under_shoot_pct and over_shoot_pct
values.

Default is 100%,100% which ~disables adaptation.

Derf results for example undershoot% / overshoot%:-

Head:- Mean abs (%rate error) = 14.4%

This check in:-
25%/25% - Mean abs (%rate error) = 6.7%
                  PSNR hit -1% SSIM -0.1%

5% / 5%  - Mean abs (%rate error) = 2.2%
                 PSNR hit -3.3% SSIM - 1.1%

Most of the remaining error and most of the quality hit is
at extreme data rates. The adaptation code still has an
exception for material that is in effect static so that we
don't over adjust and over spend on YT slide show type
content.

(Rebase of If25a2449a415449c150acff23df713e9598d64c9
to resolve a auto-merge error)

Change-Id: Iec4e1613ef0d067454751d8220edb7058dfbd816

10 years agoFix ActiveMapTest valgrind warning
Jingning Han [Sun, 12 Oct 2014 05:34:02 +0000 (22:34 -0700)]
Fix ActiveMapTest valgrind warning

This fixes a valgrind warning in the ActiveMapTest unit test
reported in issue 870.

Change-Id: Idf172ab0244ebefe630c3577e649bc9ba7c43d10

10 years agoargs.h: add arg_parse_enum prototype
James Zern [Sat, 11 Oct 2014 09:27:23 +0000 (11:27 +0200)]
args.h: add arg_parse_enum prototype

Change-Id: I64d6e7c2d3f76528ab409ce381267fc5cef13ab1

10 years agovp9_spatial_svc_encoder: fix -bit-depth arg parsing
James Zern [Sat, 11 Oct 2014 09:24:52 +0000 (11:24 +0200)]
vp9_spatial_svc_encoder: fix -bit-depth arg parsing

use arg_parse_enum_or_int like vpxenc. this also fixes a warning as
arg_parse_enum is not currently declared in args.h.

Change-Id: If9ce258d6adb6286eb86f529083929d5fe2b3a56

10 years agoyv12config: fix highbitdepth build
James Zern [Sat, 11 Oct 2014 09:14:54 +0000 (11:14 +0200)]
yv12config: fix highbitdepth build

Change-Id: Ie8a4caae19fb514d5bd22e0ae35ca0edcd3484ae