]> granicus.if.org Git - libvpx/log
libvpx
5 years agoMerge "Refactor the model for rect partition pruning"
Hui Su [Thu, 7 Feb 2019 21:30:47 +0000 (21:30 +0000)]
Merge "Refactor the model for rect partition pruning"

5 years agoMerge "vp9: Write height and width to ivf header in SVC example encoder."
Jerome Jiang [Thu, 7 Feb 2019 19:31:50 +0000 (19:31 +0000)]
Merge "vp9: Write height and width to ivf header in SVC example encoder."

5 years agovp9: Write height and width to ivf header in SVC example encoder.
Jerome Jiang [Thu, 7 Feb 2019 18:38:14 +0000 (10:38 -0800)]
vp9: Write height and width to ivf header in SVC example encoder.

Write height and width of top layer to ivf header in SVC.

vpxdec Can't decode it correctly when output is y4m.

Change-Id: I9b2f1d54696611a30e252bdfd182897d191d92b5

5 years agoRefactor the model for rect partition pruning
Hui Su [Thu, 7 Feb 2019 04:09:33 +0000 (20:09 -0800)]
Refactor the model for rect partition pruning

Remove the block variance and skip flags from the input features. They
do not seem to reduce the average loss of the model. Also decrease the
number of hidden nodes. The model size is reduced significantly.

Compression quality and speed are both neutral.

Change-Id: Ic62f73c4f4c0a3148285f575747f0423ff568c64

5 years agoUse wide integer to avoid overflow
Yaowu Xu [Thu, 7 Feb 2019 00:02:39 +0000 (16:02 -0800)]
Use wide integer to avoid overflow

BUG=webm:1270

Change-Id: I7d56667d946196bbbe355303de805422e40b0763

5 years agoMerge "No vpx_img_alloc for y4m input in example encoders."
Jerome Jiang [Wed, 6 Feb 2019 00:57:28 +0000 (00:57 +0000)]
Merge "No vpx_img_alloc for y4m input in example encoders."

5 years agoMerge "Fix VPX_KF_DISABLED."
Jerome Jiang [Wed, 6 Feb 2019 00:33:30 +0000 (00:33 +0000)]
Merge "Fix VPX_KF_DISABLED."

5 years agoMerge "enforce some c89 restrictions"
Johann Koenig [Tue, 5 Feb 2019 23:29:51 +0000 (23:29 +0000)]
Merge "enforce some c89 restrictions"

5 years agoFix VPX_KF_DISABLED.
Jerome Jiang [Tue, 5 Feb 2019 19:41:06 +0000 (11:41 -0800)]
Fix VPX_KF_DISABLED.

VP9 encoder still inserts key frame periodically when VPX_KF_DISABLED is
set in non SVC for 1-pass CBR.
BUG=webm:1592

Change-Id: Ie99d7c5b95230d739e263a2d87879693c53f620e

5 years agoMerge "Improve the partition split prediction model"
Hui Su [Tue, 5 Feb 2019 22:20:10 +0000 (22:20 +0000)]
Merge "Improve the partition split prediction model"

5 years agoNo vpx_img_alloc for y4m input in example encoders.
Jerome Jiang [Mon, 4 Feb 2019 19:08:21 +0000 (11:08 -0800)]
No vpx_img_alloc for y4m input in example encoders.

Y4M reader has its own allocation.

Change-Id: Ie02440a183126072ea773860f4e9dc9b412772f5

5 years agoenforce some c89 restrictions
Johann [Tue, 5 Feb 2019 02:18:11 +0000 (18:18 -0800)]
enforce some c89 restrictions

Block "for (int i;;)" style declarations.

Use --std=gnu89 to avoid enforcing c89-style comments.

Change-Id: Ia7d1405eac647d04e92513c047773695e8d7dc6e

5 years agoMerge "ppc: use c89 loop declaration"
Johann Koenig [Tue, 5 Feb 2019 21:51:03 +0000 (21:51 +0000)]
Merge "ppc: use c89 loop declaration"

5 years agoppc: use c89 loop declaration
Johann [Tue, 5 Feb 2019 20:20:54 +0000 (12:20 -0800)]
ppc: use c89 loop declaration

Change-Id: Ib8ca37f1b58e9903e7efa29689a0a49f14b4d73a

5 years agoMerge "vp8: Add extra conditon for overshoot-drop"
Marco Paniconi [Tue, 5 Feb 2019 18:30:57 +0000 (18:30 +0000)]
Merge "vp8: Add extra conditon for overshoot-drop"

5 years agoMerge "Add dist scale in get_mv_dist"
Angie Chiang [Tue, 5 Feb 2019 18:27:15 +0000 (18:27 +0000)]
Merge "Add dist scale in get_mv_dist"

5 years agoImprove the partition split prediction model
Hui Su [Fri, 1 Feb 2019 17:33:42 +0000 (09:33 -0800)]
Improve the partition split prediction model

Include the sizes of the above and left partition block as additional
features.

This affects speed 0 and 1.

Compression change is almost neutral(about 0.03% on average).

Average encoding speedup is 3~6% depending on QP and resolution.

Change-Id: I8bddfadf6072ae757c124da0819302850d8c6fe7

5 years agoFix an inline varible declaration in temporal filter
chiyotsai [Tue, 5 Feb 2019 02:31:12 +0000 (18:31 -0800)]
Fix an inline varible declaration in temporal filter

bug=webm:1595

Change-Id: I7fbb16444a8526eb9479007772fbf52b09ff8338

5 years agoMerge "Add operator<< to a struct in yuv_temporal_filter_test.cc"
Chi Yo Tsai [Mon, 4 Feb 2019 23:52:24 +0000 (23:52 +0000)]
Merge "Add operator<< to a struct in yuv_temporal_filter_test.cc"

5 years agovp8: Add extra conditon for overshoot-drop
Marco Paniconi [Mon, 4 Feb 2019 22:49:58 +0000 (14:49 -0800)]
vp8: Add extra conditon for overshoot-drop

For drop due to large overshoot feature (in 1 pass CBR):
add additional condition that current prediction error
is larger than that of last encoded frame. This make the
drop due to sudden overshoot more robust, and improves
rate convergence for steady hard content.

Change-Id: If20027d26b4dcd290e4f788ae8e2760d95b536a5

5 years agoAdd operator<< to a struct in yuv_temporal_filter_test.cc
chiyotsai [Mon, 4 Feb 2019 22:18:59 +0000 (14:18 -0800)]
Add operator<< to a struct in yuv_temporal_filter_test.cc

This should resolve valgrind's warning on aceessing uninitialized
values.

BUG=webm:1591

Change-Id: I678cadf448c12b598c9ea09490a7eb4e13e4118c

5 years agoSome cosmetic fixes to temporal filter
chiyotsai [Fri, 1 Feb 2019 05:39:19 +0000 (21:39 -0800)]
Some cosmetic fixes to temporal filter

BUG=webm:1591

Change-Id: I34fd7e6cbe6f3d5486a669d0895402fd21de7641

5 years agoMerge remote-tracking branch 'origin/northernshoveler' into HEAD
Johann [Mon, 4 Feb 2019 19:46:43 +0000 (11:46 -0800)]
Merge remote-tracking branch 'origin/northernshoveler' into HEAD

BUG=webm:1573

Change-Id: Ie92df3adfac44d7e9c143994ef4f69cd1a04e4b8

5 years agoRelease v1.8.0 Northern Shoveler northernshoveler v1.8.0
Johann [Fri, 1 Feb 2019 21:49:00 +0000 (13:49 -0800)]
Release v1.8.0 Northern Shoveler

BUG=webm:1573

Change-Id: I2884d0d8198f937a9d14428cc9f5f7e86f4ec450

5 years agoMerge "Fix segmentation fault when num tile cols change in row-mt."
Harish Mahendrakar [Sat, 2 Feb 2019 04:01:57 +0000 (04:01 +0000)]
Merge "Fix segmentation fault when num tile cols change in row-mt."

5 years agoMerge "vpx_dec_fuzzer: Remove dependency on tools_common.c"
Harish Mahendrakar [Sat, 2 Feb 2019 02:00:39 +0000 (02:00 +0000)]
Merge "vpx_dec_fuzzer: Remove dependency on tools_common.c"

5 years agoFix segmentation fault when num tile cols change in row-mt.
Ritu Baldwa [Fri, 1 Feb 2019 08:07:07 +0000 (13:37 +0530)]
Fix segmentation fault when num tile cols change in row-mt.

Change-Id: Ifc165d76a71fcdb7c19c158c940a8d273be0d95f

5 years agovpx_dec_fuzzer: Remove dependency on tools_common.c
Harish Mahendrakar [Fri, 1 Feb 2019 20:25:03 +0000 (12:25 -0800)]
vpx_dec_fuzzer: Remove dependency on tools_common.c

Instead of calling get_vpx_decoder_by_name(), derive
decoder interface directly.

This will avoid dependecy on tools_common and hence any potential
updates needed to build fuzzer, when tools_common uses functions
defined in a different file

With this dependency removed, fuzzer no longer needs to enable examples
when building vpx_dec_fuzzer binaries

Change-Id: I05753edf041b4bc742a6dc06e809a8a2929d379f

5 years agoRemove old version of temporal_filter_apply
chiyotsai [Thu, 31 Jan 2019 20:38:44 +0000 (12:38 -0800)]
Remove old version of temporal_filter_apply

BUG=webm:1591

Change-Id: I926566ac1bf4bac8cb1ce1c6ded9ba940109283e

5 years agoAdd highbd test cases for apply_temporal_filter
chiyotsai [Wed, 30 Jan 2019 21:53:38 +0000 (13:53 -0800)]
Add highbd test cases for apply_temporal_filter

BUG=webm:1591

Change-Id: I61dfcecc2efccdfa15b739fd6d97a24ddff05757

5 years agovp9_temporal_filter: convert blk_fw[0] || ... to |
James Zern [Fri, 1 Feb 2019 01:52:48 +0000 (17:52 -0800)]
vp9_temporal_filter: convert blk_fw[0] || ... to |

this matches what is done to reduce the cost of the test of filter
values in convolve.

Change-Id: I692b58801a962b593b810c1d1dac42f72c78caf9

5 years agoMerge "vp9: Tune qp_thresh to disable cyclic refresh for screen"
Marco Paniconi [Fri, 1 Feb 2019 01:42:34 +0000 (01:42 +0000)]
Merge "vp9: Tune qp_thresh to disable cyclic refresh for screen"

5 years agoMerge "Add highbd yuv_temporal_filter"
Chi Yo Tsai [Fri, 1 Feb 2019 00:11:28 +0000 (00:11 +0000)]
Merge "Add highbd yuv_temporal_filter"

5 years agovp9: Tune qp_thresh to disable cyclic refresh for screen
Marco Paniconi [Thu, 31 Jan 2019 23:19:45 +0000 (15:19 -0800)]
vp9: Tune qp_thresh to disable cyclic refresh for screen

For screen-content mode, with aq-mode=3: increase the
qp thresh for disabling the cyclic refresh.
Improves bitrate convergence for content that has been
static for long period.

Change-Id: Ica63a741402923a611ab1b86c0900f75d2d5f941

5 years agoAdd dist scale in get_mv_dist
Angie Chiang [Thu, 31 Jan 2019 23:01:06 +0000 (15:01 -0800)]
Add dist scale in get_mv_dist

Add MACRO VP9_DIST_SCALE_LOG2 represents distortion's log scale

Change-Id: Ic496a31e6d3f04626510f8c4661af464a002e361

5 years agoMerge changes I62702bdb,Ice6d06c5,I60204c62,Ib9fdf65e
Angie Chiang [Thu, 31 Jan 2019 21:21:16 +0000 (21:21 +0000)]
Merge changes I62702bdb,Ice6d06c5,I60204c62,Ib9fdf65e

* changes:
  Implement get_mv_cost()
  Add assertion in get_block_src_pred_buf
  Fix bug in predict_mv_mode
  Allocate memory for mv_mode_arr[]

5 years agovp9: Adjust intra check for short_circuit_flat_blocks
Marco Paniconi [Thu, 31 Jan 2019 18:29:55 +0000 (10:29 -0800)]
vp9: Adjust intra check for short_circuit_flat_blocks

For non-rd pickmode: include H and V intra mode check for
spatially flat blocks when the sf->short_circuit_flat_blocks
speed feature is set.
Small improvement on screen content tests.

Change-Id: I3391d02cce6a46160be6ccc8a1e33fd8547eb467

5 years agoMerge "Add y4m input to vp9 example encoder tests."
Jerome Jiang [Thu, 31 Jan 2019 05:35:58 +0000 (05:35 +0000)]
Merge "Add y4m input to vp9 example encoder tests."

5 years agoImplement get_mv_cost()
Angie Chiang [Thu, 31 Jan 2019 02:30:56 +0000 (18:30 -0800)]
Implement get_mv_cost()

The mv_cost contains mv_mode cost and mv_diff cost.

The mv_mode cost is inferred from default_inter_mode_probs.
The mv_diff cost is estimated used the log2 function.

Change-Id: I62702bdb5c3fec018e3302765f5dd749fceebc12

5 years agoAdd highbd yuv_temporal_filter
chiyotsai [Sat, 26 Jan 2019 00:12:18 +0000 (16:12 -0800)]
Add highbd yuv_temporal_filter

This changes the highbd version of temporal filter to information from
both luma and chroma planes.

Performance:
 AVG_PSNR | OVR_PSNR |  SSIM
  -0.144% |  -0.165% | -0.150%

The performance is evaluated on lowres_bd10.

Change-Id: I89d1bd46cd60c26d658b6a53aa63835e90d8e291

5 years agovp9-svc: Fix to non-rd pickmode for screen content
Marco Paniconi [Thu, 31 Jan 2019 00:30:49 +0000 (16:30 -0800)]
vp9-svc: Fix to non-rd pickmode for screen content

For screen content mode: always force intra check
for spatially flat blocks that have moved. Also
adjust/fix condition for forcing check of
zeromv-golden for quality layers.
Reduces artifacts in screensharing tests.

Change-Id: Iafd62fb24a4e05f5b12af663dde2805fdb4c7b36

5 years agoAdd y4m input to vp9 example encoder tests.
Jerome Jiang [Wed, 30 Jan 2019 22:37:34 +0000 (14:37 -0800)]
Add y4m input to vp9 example encoder tests.

Change-Id: Ie64a3ee22e6b21e5b3a0cef4734930db3144bea0

5 years agoMerge "add y4m support to vp9 example encoders."
Jerome Jiang [Wed, 30 Jan 2019 22:06:12 +0000 (22:06 +0000)]
Merge "add y4m support to vp9 example encoders."

5 years agoadd y4m support to vp9 example encoders.
Jerome Jiang [Mon, 28 Jan 2019 23:49:42 +0000 (15:49 -0800)]
add y4m support to vp9 example encoders.

vp9_spatial_svc_encoder and vpx_temporal_svc_encoder.

Change-Id: I8dfa1dfad83c83a26ddac4e7c57b5f1ff161e588

5 years agoAdd assertion in get_block_src_pred_buf
Angie Chiang [Wed, 30 Jan 2019 00:26:57 +0000 (16:26 -0800)]
Add assertion in get_block_src_pred_buf

Print error message and assert when ref_frame_idx is invalid

Change-Id: Ice6d06c53ddae0a77d578671b896c4e4d04d5366

5 years agoMerge changes I49a760ea,I792df86e
Harish Mahendrakar [Wed, 30 Jan 2019 18:21:42 +0000 (18:21 +0000)]
Merge changes I49a760ea,I792df86e

* changes:
  Modify map read/write to sync logic in row_mt case
  Revert "Revert "Add Tile-SB-Row based Multi-threading in Decoder""

5 years agoMerge "Add some const qualifiers where applicable"
Hui Su [Wed, 30 Jan 2019 18:17:11 +0000 (18:17 +0000)]
Merge "Add some const qualifiers where applicable"

5 years agoMerge "Reuse simple motion search results"
Hui Su [Wed, 30 Jan 2019 18:17:05 +0000 (18:17 +0000)]
Merge "Reuse simple motion search results"

5 years agoMerge "Reland "Enable SSE4 version of apply temporal filter""
Chi Yo Tsai [Wed, 30 Jan 2019 17:52:41 +0000 (17:52 +0000)]
Merge "Reland "Enable SSE4 version of apply temporal filter""

5 years agovp9-svc: Modify early breakout for non-rd pickmode
Marco Paniconi [Wed, 30 Jan 2019 01:19:02 +0000 (17:19 -0800)]
vp9-svc: Modify early breakout for non-rd pickmode

Modify early breakout condition for non-rd pickmode
for quality layers: when lower layer has lower QP force
test of zeromv on golden (lower layer reference) before
breakout due to skip.

Reduce artifacts, observed in cases of scrolling content.

Change-Id: Id834b1eb024a4c97f0e74d8b7f7a0351459e088f

5 years agoModify map read/write to sync logic in row_mt case
Ritu Baldwa [Wed, 23 Jan 2019 04:09:06 +0000 (09:39 +0530)]
Modify map read/write to sync logic in row_mt case

Adds conditional wait/signal instead of sched_yield.

Change-Id: I49a760eacdd6b6ac690e797ea5f10febf6a1a084

5 years agoFix bug in predict_mv_mode
Angie Chiang [Wed, 30 Jan 2019 00:00:13 +0000 (16:00 -0800)]
Fix bug in predict_mv_mode

Use kMvPreCheckLines in the for loops.

Change-Id: I60204c6294560d47421a8621d907dfa95c9dde18

5 years agoAllocate memory for mv_mode_arr[]
Angie Chiang [Tue, 29 Jan 2019 23:36:38 +0000 (15:36 -0800)]
Allocate memory for mv_mode_arr[]

Change-Id: Ib9fdf65e263dbaace8d4c86766eba2c6f35f652b

5 years agoMerge "Clean up TODOs for vpx_img_* functions."
Jerome Jiang [Tue, 29 Jan 2019 23:04:33 +0000 (23:04 +0000)]
Merge "Clean up TODOs for vpx_img_* functions."

5 years agoAdd some const qualifiers where applicable
Hui Su [Tue, 29 Jan 2019 18:43:32 +0000 (10:43 -0800)]
Add some const qualifiers where applicable

Change-Id: Ib820f625e0b616fd57a2722ec3614b4fccf307f8

5 years agoReuse simple motion search results
Hui Su [Mon, 28 Jan 2019 22:33:13 +0000 (14:33 -0800)]
Reuse simple motion search results

In the ML based partition search speed feature, use MV result of
previous simple motion search as the starting point for the next one.

Compression change is neutral; encoding speed becomes slightly faster.

Change-Id: Iea554f28f7966fc5b5857e12b06de58e3fa312a6

5 years agoMerge changes I7dcfcdb3,Ie0b2c67b
Angie Chiang [Tue, 29 Jan 2019 21:25:24 +0000 (21:25 +0000)]
Merge changes I7dcfcdb3,Ie0b2c67b

* changes:
  Add predict_mv_mode_arr()
  Add predict_mv_mode()

5 years agoClean up TODOs for vpx_img_* functions.
Jerome Jiang [Fri, 25 Jan 2019 22:04:33 +0000 (14:04 -0800)]
Clean up TODOs for vpx_img_* functions.

They should stay in tools_common.{c,h}

Change-Id: I34bd05e8b000ce780bb1f77abcb8cbfd1e83158f

5 years agoReland "Enable SSE4 version of apply temporal filter"
Chi Yo Tsai [Tue, 29 Jan 2019 20:24:29 +0000 (20:24 +0000)]
Reland "Enable SSE4 version of apply temporal filter"

This reverts commit a4d2f59b691ac57698d299430495b398a8bb682c.

Reason for revert: Re-enables SSE4_1 version of apply temporal filter now that the mismatch is fixed in fa540837aa23ae8cdd926961ddbef71998a2a525,

Original change's description:
> Revert "Enable SSE4 version of apply temporal filter"
>
> This reverts commit 4f3cd48bfe4541ca64883db51f57c1376c6d8a73.
>
> Reason for revert: Found a mismatch with c version
>
> Original change's description:
> > Enable SSE4 version of apply temporal filter
> >
> > Evaluating on 5 midres clips with 4 bitrates over 30 frames on speed 1
> > auto_alt_ref=1, there is a speed up of 1.660%.
> >
> > BUG=webm:1591
> >
> > Change-Id: Idbda58548679e6f7b8fc0d7f6144f7be057ef690
>
> TBR=yunqingwang@google.com,builds@webmproject.org,chiyotsai@google.com
>
> Change-Id: Ibca973576d72d6db4b647a08aef23389d5d6605a
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webm:1591

TBR=yunqingwang@google.com,builds@webmproject.org,chiyotsai@google.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: webm:1591
Change-Id: I26effdbaf4d52e4650c263b6ed9d3d80e505f5cb

5 years agoMerge "Fix mismatch between SIMD/C version of vp9_apply_temporal_filter"
Chi Yo Tsai [Tue, 29 Jan 2019 20:21:41 +0000 (20:21 +0000)]
Merge "Fix mismatch between SIMD/C version of vp9_apply_temporal_filter"

5 years agoMerge "Refactor ml_predict_var_rd_paritioning()"
Hui Su [Tue, 29 Jan 2019 17:56:29 +0000 (17:56 +0000)]
Merge "Refactor ml_predict_var_rd_paritioning()"

5 years agoFix mismatch between SIMD/C version of vp9_apply_temporal_filter
chiyotsai [Sat, 26 Jan 2019 03:30:49 +0000 (19:30 -0800)]
Fix mismatch between SIMD/C version of vp9_apply_temporal_filter

Change-Id: I6503ebc79beaac2947992437ac133f3ac4379019

5 years agoMerge "Fix test case name for yuv_temporal_filter"
Chi Yo Tsai [Mon, 28 Jan 2019 23:14:07 +0000 (23:14 +0000)]
Merge "Fix test case name for yuv_temporal_filter"

5 years agoFix test case name for yuv_temporal_filter
chiyotsai [Mon, 28 Jan 2019 22:03:04 +0000 (14:03 -0800)]
Fix test case name for yuv_temporal_filter

This should fix valgrind's failure.

BUG=webm:1591

Change-Id: Idab2d6281484c36e6de193d6f45d13f97762625e

5 years agoRefactor ml_predict_var_rd_paritioning()
Hui Su [Mon, 28 Jan 2019 19:13:35 +0000 (11:13 -0800)]
Refactor ml_predict_var_rd_paritioning()

Refactor out code about simple motion search.

Change-Id: Ie6895db2aff3c13e7a45554d6bc1c7c0af8f2d51

5 years agoAdd predict_mv_mode_arr()
Angie Chiang [Mon, 28 Jan 2019 20:15:58 +0000 (12:15 -0800)]
Add predict_mv_mode_arr()

The function predicts the mv_mode for each prediction block in
diagonal order.

Change-Id: I7dcfcdb317ffa334cb40bb435baa71b5db62252b

5 years agoAdd predict_mv_mode()
Angie Chiang [Fri, 25 Jan 2019 19:53:27 +0000 (11:53 -0800)]
Add predict_mv_mode()

This function evaluate the impact of setting NEW_MV_MODE on a
block and its neighbor blocks.

Change-Id: Ie0b2c67bdc5cd14e0efd8ebc5dc3f3f873bcf3fe

5 years agoMerge "Revert "Enable SSE4 version of apply temporal filter""
Chi Yo Tsai [Sat, 26 Jan 2019 03:36:25 +0000 (03:36 +0000)]
Merge "Revert "Enable SSE4 version of apply temporal filter""

5 years agoRevert "Enable SSE4 version of apply temporal filter"
Chi Yo Tsai [Sat, 26 Jan 2019 01:30:20 +0000 (01:30 +0000)]
Revert "Enable SSE4 version of apply temporal filter"

This reverts commit 4f3cd48bfe4541ca64883db51f57c1376c6d8a73.

Reason for revert: Found a mismatch with c version

Original change's description:
> Enable SSE4 version of apply temporal filter
>
> Evaluating on 5 midres clips with 4 bitrates over 30 frames on speed 1
> auto_alt_ref=1, there is a speed up of 1.660%.
>
> BUG=webm:1591
>
> Change-Id: Idbda58548679e6f7b8fc0d7f6144f7be057ef690

TBR=yunqingwang@google.com,builds@webmproject.org,chiyotsai@google.com

Change-Id: Ibca973576d72d6db4b647a08aef23389d5d6605a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: webm:1591

5 years agoMerge "Fix a bug in tune-content film mode"
Sai Deng [Fri, 25 Jan 2019 18:51:23 +0000 (18:51 +0000)]
Merge "Fix a bug in tune-content film mode"

5 years agoMerge changes Ia1b3ec7e,I58b8c713,Ibeb43400
Angie Chiang [Fri, 25 Jan 2019 17:54:13 +0000 (17:54 +0000)]
Merge changes Ia1b3ec7e,I58b8c713,Ibeb43400

* changes:
  Add find_best_ref_mv_mode()
  Add get_mv_dist
  Add get_mv_from_mv_mode()

5 years agoMerge "Enable SSE4 version of apply temporal filter"
Chi Yo Tsai [Fri, 25 Jan 2019 17:35:48 +0000 (17:35 +0000)]
Merge "Enable SSE4 version of apply temporal filter"

5 years agoMerge "Add SSE4 version of new apply_temporal_filter"
Chi Yo Tsai [Fri, 25 Jan 2019 17:35:34 +0000 (17:35 +0000)]
Merge "Add SSE4 version of new apply_temporal_filter"

5 years agoMerge "Adjustment to noise factor in first pass."
Paul Wilkins [Fri, 25 Jan 2019 17:09:39 +0000 (17:09 +0000)]
Merge "Adjustment to noise factor in first pass."

5 years agoAdjustment to noise factor in first pass.
Yunqing Wang [Fri, 21 Dec 2018 22:46:52 +0000 (14:46 -0800)]
Adjustment to noise factor in first pass.

Adjustments to the calculation and use of a noise estimate in
the first pass Q estimate and adaptation of temporal filtering.

This change was tested and gave gains for both auto-alt-ref=1
and auto-alt-ref=6 as follows:

Results are Av PSNR, Overall PSNR, SSIM  and PSNR-HVS

auto-alt-ref=1
low_res 0.007, -0.042, -0.018, 0.074
mid_res -0.142, -0.239, -0.173, -0.129
hd_res -0.322, -0.405, -0.397, -0.367
NF_2K -0.058, -0.099, -0.201, 0.028

auto-alt-ref=6
low_res  -0.058, -0.171, -0.188, -0.027
mide_res -0.149, -0.155, -0.171, -0.137
hd_res -0.252, -0.339, -0.259, -0.297
NF_2K -0.015, -0.068, -0.120, 0.092

In all sets there were some winners and losers but significantly
more winners. The biggest change was Stockholm in the
hd set with an improvement of 5-6%

Change-Id: Ieec71e1c4e3e09b76c288efa7b4d1b00015b3a11

5 years agoEnable SSE4 version of apply temporal filter
chiyotsai [Fri, 18 Jan 2019 23:27:34 +0000 (15:27 -0800)]
Enable SSE4 version of apply temporal filter

Evaluating on 5 midres clips with 4 bitrates over 30 frames on speed 1
auto_alt_ref=1, there is a speed up of 1.660%.

BUG=webm:1591

Change-Id: Idbda58548679e6f7b8fc0d7f6144f7be057ef690

5 years agoAdd SSE4 version of new apply_temporal_filter
chiyotsai [Wed, 16 Jan 2019 23:33:06 +0000 (15:33 -0800)]
Add SSE4 version of new apply_temporal_filter

This adds a preliminary version of vp9_apply_temporal_filter in SSE4.1.
This patch merely adds the function and does not enable it yet.

Speed Up:
         | ss_x=1 | ss_x=0 |
  ss_y=1 | 19.80X | 19.04X |
  ss_y=0 | 21.09X | 20.21X |

BUG=webm:1591

Change-Id: If590f1ccf1d0c6c3b47410541d54f2ce37d8305b

5 years agoAdd find_best_ref_mv_mode()
Angie Chiang [Thu, 24 Jan 2019 23:44:41 +0000 (15:44 -0800)]
Add find_best_ref_mv_mode()

This function compute the rd cost for each  mv_mode and return the
one with minimum rd cost.

eval_mv_mode()
Evaluate the rd cost for a given mv_mode.

Change-Id: Ia1b3ec7e1dd538e443e1bc79f2cab352408cd0a0

5 years agoAdd get_mv_dist
Angie Chiang [Thu, 24 Jan 2019 19:45:29 +0000 (11:45 -0800)]
Add get_mv_dist

Given an mv_mode, get_mv_dist() obtains the mv and uses it
to compute distortion.

Change-Id: I58b8c7137b99c2736d651e678f0cd013dbd94877

5 years agoMerge changes I0fb46784,I6c89fae4
Angie Chiang [Fri, 25 Jan 2019 01:47:43 +0000 (01:47 +0000)]
Merge changes I0fb46784,I6c89fae4

* changes:
  Add set_block_src_pred_buf()
  [cleanup] Move get_feature_score to a proper place

5 years agoadd -Wmissing-declarations
Johann [Fri, 21 Dec 2018 21:44:07 +0000 (13:44 -0800)]
add -Wmissing-declarations

This is useful for catching functions which should be static and
instances where the relevant rtcd file was not included.

BUG=webm:1584

Change-Id: Ied395847a664eedce59e8ed5180bd16d059ab0ac

5 years agoMerge "mips: resolve missing declarations"
Johann Koenig [Thu, 24 Jan 2019 22:21:37 +0000 (22:21 +0000)]
Merge "mips: resolve missing declarations"

5 years agoAdd get_mv_from_mv_mode()
Angie Chiang [Thu, 24 Jan 2019 01:15:06 +0000 (17:15 -0800)]
Add get_mv_from_mv_mode()

Given an mv_mode, this function will return the corresponding mv.

find_ref_mv()
A helper function finds the nearest and near mvs from the neighbor
blocks.

select_mv_arr[]
An array used for storing selected motion vectors.

Change-Id: Ibeb434007f65b2c6e461360f208d99455e76bcbf

5 years agoFix a bug in tune-content film mode
sdeng [Tue, 22 Jan 2019 22:05:50 +0000 (14:05 -0800)]
Fix a bug in tune-content film mode

Avoid recursively decreasing 'strength'.

       avg_psnr ovr_psnr ssim
midres -0.224   -0.195   -0.115

Change-Id: Ie74c069cda76873ac38e9c1a9162b1ddfb9b103d

5 years agoAdd set_block_src_pred_buf()
Angie Chiang [Thu, 24 Jan 2019 00:52:56 +0000 (16:52 -0800)]
Add set_block_src_pred_buf()

This function sets src and pre buffer of MACROBLOCK
and MACROBLOCKD.
Will add static decorator once this function is called.

Change-Id: I0fb46784dd97839e4d87c9e027fe8c59683e70d8

5 years ago[cleanup] Move get_feature_score to a proper place
Angie Chiang [Wed, 23 Jan 2019 23:45:47 +0000 (15:45 -0800)]
[cleanup] Move get_feature_score to a proper place

Add static decorator to it as well.

Change-Id: I6c89fae456561b6975ab49af139a45a7483507c6

5 years agomips: resolve missing declarations
Johann [Wed, 23 Jan 2019 23:35:57 +0000 (15:35 -0800)]
mips: resolve missing declarations

Exclude low bit depth optimizations from high bit depth builds.

BUG=webm:1584

Change-Id: I86a7ebafa557d262257358e1e055a06d52659977

5 years agoFix a typo in the test cases for convolve test
chiyotsai [Wed, 23 Jan 2019 23:05:47 +0000 (15:05 -0800)]
Fix a typo in the test cases for convolve test

BUG=webm:1591

Change-Id: I34aedcb5336a96e33932ce34967c12f187ee52e2

5 years agoMerge "Clean up code for yuv_temporal filter_test.cc"
Chi Yo Tsai [Wed, 23 Jan 2019 17:43:44 +0000 (17:43 +0000)]
Merge "Clean up code for yuv_temporal filter_test.cc"

5 years agoFix Windows SDK and VS version checks
Jon Kunkee [Tue, 22 Jan 2019 23:01:06 +0000 (15:01 -0800)]
Fix Windows SDK and VS version checks

If WindowsTargetPlatformVersion is not set, the Visual Studio 15 (2017)
toolchain assumes that Windows 8.1 is being targeted. Since ARM64
support is only present and unlocked in Windows SDKs >= Windows 10 1809,
set that SDK as required in the vcxproj files.

Note that this will not be an issue in Visual Studio 16 or greater,
hence the -eq major version check.

https://developercommunity.visualstudio.com/content/problem/128836/windowstargetplatformversion-to-use-the-latest-ava.html

Bug: chromium:893460

Change-Id: Ib069501ad384d91349b1f635722dedd31a4edd97

5 years agoClean up code for yuv_temporal filter_test.cc
chiyotsai [Fri, 18 Jan 2019 23:48:55 +0000 (15:48 -0800)]
Clean up code for yuv_temporal filter_test.cc

Some cosmetic changes to make the code google c++-style compliant.

BUG=webm:1591

Change-Id: Icef3ccc8ebed7210b6b6f915885d5f648e62da72

5 years agoMerge "ads2gas: remove DO1STROUNDING"
Johann Koenig [Tue, 22 Jan 2019 22:31:13 +0000 (22:31 +0000)]
Merge "ads2gas: remove DO1STROUNDING"

5 years agoRevert "Revert "Add Tile-SB-Row based Multi-threading in Decoder""
Ritu Baldwa [Wed, 2 Jan 2019 06:28:34 +0000 (11:58 +0530)]
Revert "Revert "Add Tile-SB-Row based Multi-threading in Decoder""

This reverts commit 06983668cf41f66765528db044419f954e5a5d64.
Fixes Visual Studio build errors introduced by earlier row mt commit

BUG=webm:1587

Change-Id: I792df86e8254cd6b2a511955b691af619a569cd0

5 years agoChange temporal filter's search_method on speed 1
chiyotsai [Thu, 17 Jan 2019 22:15:00 +0000 (14:15 -0800)]
Change temporal filter's search_method on speed 1

This commit introduces a new speed feature that determines the
SEARCH_METHOD used by temporal filter when doing 16x16 block on
full_pixel_motion_search. On speed 0, the most exhaustive method MESH is
used. On speed 1 and above, a faster method NSTEP is used.

Performance:
        | AVG_PSNR | AVG_SPDUP | AVG_SPDUP:AVG_PSNR
 MISRES |  0.007%  |   2.818%  |        402:1
  HDRES |  0.004%  |   4.897%  |       1224:1

In the case of midres, there is a small quality gain of -0.021% on
OVR_PSNR.

Performance measurement is done on speed 1 with auto_alt_ref=1.
Quality is measured on full midres set over 60 frames. Speed is measured
on 5 midres clips over 4 bitrates over 30 frames.

STATS_CHANGED

Change-Id: Ic1879d2237f8734529e194767a6cf5e43e20b47b

5 years agoMerge "Add unit speed test for vp9_apply_temporal_filter"
Chi Yo Tsai [Fri, 18 Jan 2019 23:13:01 +0000 (23:13 +0000)]
Merge "Add unit speed test for vp9_apply_temporal_filter"

5 years agoMerge changes Id99ca6fc,I34cdbc6e,Iac7fee46
Angie Chiang [Fri, 18 Jan 2019 23:05:51 +0000 (23:05 +0000)]
Merge changes Id99ca6fc,I34cdbc6e,Iac7fee46

* changes:
  Correct pyramid_mv_arr's memory size
  Adjust lambda with bsize in build_motion_field()
  Free pyramid_mv_arr properly

5 years agoMerge "Use longer test clips in y4m_test"
Yunqing Wang [Fri, 18 Jan 2019 01:20:11 +0000 (01:20 +0000)]
Merge "Use longer test clips in y4m_test"

5 years agoMerge "Use longer videos in end-to-end tests"
Yunqing Wang [Fri, 18 Jan 2019 01:19:56 +0000 (01:19 +0000)]
Merge "Use longer videos in end-to-end tests"

5 years agoMerge "Add unit test for temporal filter on VP9"
Chi Yo Tsai [Fri, 18 Jan 2019 00:34:37 +0000 (00:34 +0000)]
Merge "Add unit test for temporal filter on VP9"

5 years agoads2gas: remove DO1STROUNDING
Johann [Thu, 17 Jan 2019 18:06:21 +0000 (10:06 -0800)]
ads2gas: remove DO1STROUNDING

Change-Id: Iacd1ad5673c71d350cad235e504da0e066dfc4a0