Commit Graph

20653 Commits

Author SHA1 Message Date
angiebird
ce023d5413 Remove twopass param from test_candidate_kf
Change-Id: I1f6ef8c6d453177e3b48c95434b66480ee19f91d
2019-10-21 18:18:16 -07:00
angiebird
793ae58853 Pass first_pass_info/show_idx to test_candidate_kf
Change-Id: I5c18de464be9981236f95c62391258c4963e469b
2019-10-21 18:04:49 -07:00
angiebird
d24a72ef73 Refactor test_candidate_kf()
Replace detect_flash() by detect_flash_from_frame_stats()

Change-Id: Ia4eca1ca553fdb2f4f63ff6f683c79d92fc52556
2019-10-21 17:56:54 -07:00
angiebird
d1832eab19 Decide the key frame directly when auto_key is off
Change-Id: I41d107558a8b1d31ef3b263ecc0ec1e1d91c8f7e
2019-10-21 17:20:17 -07:00
angiebird
55ee1fca03 Remove detect_transition_to_still()
Change-Id: I877f55355fc85d67f46bb76e521a19d35d76df09
2019-10-21 17:09:11 -07:00
angiebird
1bd337b1d8 Change the interface of find_next_key_frame
Change-Id: I9c25cbac2953755efa9fd72f59149f26513d1977
2019-10-21 16:51:27 -07:00
angiebird
b2e498000f Refactor kf_group_err in find_next_key_frame
Move the computation out of the while loop.

Change-Id: I00697e9a16d5d597c63e5d9895e4ae00efc7a2df
2019-10-21 16:07:28 -07:00
angiebird
f2d91e2c24 Simplify the logics in find_next_key_frame
Since the while loop's condition already check
rc->frames_to_key < cpi->oxcf.key_freq,
it impossible to have "frames_to_key >= 2 * cpi->oxcf.key_freq"
and "frames_to_key > cpi->oxcf.key_freq".

Hence, these logics are removed.

Change-Id: I9dfc2ba36e1012718c857fc710036e2d30acd3b8
2019-10-21 15:23:46 -07:00
angiebird
31193de1cc Add get_gop_coding_frame_num()
This function will decide number of coding frames and whether to
use altref

Change-Id: I736190512ea92ce5387600712bd0e250ad7cb44c
2019-10-21 12:03:10 -07:00
Johann Koenig
062a43acb6 Merge "Fix AVX-512 capability detection" 2019-10-21 18:24:31 +00:00
Angie Chiang
454877d874 Merge changes I2acc7d6b,I560dccfc,I3fb23f5c,Ifa24a501
* changes:
  Rename num_show_frames by num_coding_frames
  Use compute_arf_boost() in define_gf_group()
  Localize av_err mean_mod_score in define_gf_group
  Move code of deciding gop size into brackets
2019-10-18 19:19:06 +00:00
Birk Magnussen
602d25ec43 Fix AVX-512 capability detection
When Checking for AVX Support, only the CPU's Capabilities and YMM
Register support by the OS were queried. In case of AVX-512, that is
insufficient, and ZMM Register support by the OS needs querying,
otherwise the OS will raise an Illegal Operation Exception if the CPU
is capable of AVX-512 but the OS is not.

Change-Id: I3444b19156d5743841de96cecbdaac19cc3f2b3f
2019-10-17 13:16:54 +02:00
angiebird
d1124adef0 Localize zero_motion_accumulator
Change-Id: Ib4d37667c217cb06e6941de7b3204ba71b880396
2019-10-16 13:50:02 -07:00
angiebird
ab7974d36d Rename num_show_frames by num_coding_frames
Change-Id: I2acc7d6bde2ec2fae4460869663db1e8f6c576fe
2019-10-16 11:38:53 -07:00
angiebird
10eefccdc3 Use compute_arf_boost() in define_gf_group()
Remove reset_fpf_position() because
compute_arf_boost does not count on twopass->stats_in

Change-Id: I560dccfcc4a2cbaa8e78a493a070a416465db4a9
2019-10-16 11:38:45 -07:00
Angie Chiang
2be0ee5f05 Merge changes I1d71908a,Id1b41c3b,I07722c81,I31cf7889
* changes:
  Localize last_loop_decay_rate
  Make get_zero_mtion_factor avoid using cpi
  Add check_transition_to_still()
  Add compute_arf_boost()
2019-10-16 18:32:19 +00:00
angiebird
3c055612c6 Localize av_err mean_mod_score in define_gf_group
Change-Id: I3fb23f5c8df1c3276b663a32556ca800b7ba2ade
2019-10-15 15:13:33 -07:00
angiebird
9d377ff930 Localize last_loop_decay_rate
Change-Id: I1d71908a79ff494c4fb32dab0dc881f7a70bd519
2019-10-15 15:13:33 -07:00
angiebird
8f730cede0 Move code of deciding gop size into brackets
Identify the internal params used for deciding gop size

Change-Id: Ifa24a501952e06e5779a4fd2050dd486083cfa4c
2019-10-15 15:13:33 -07:00
angiebird
1ef50d643b Make get_zero_mtion_factor avoid using cpi
Change-Id: Id1b41c3b77a7eae6c2934efbff2608094ee7b3c5
2019-10-15 15:13:33 -07:00
angiebird
98390f2d4e Add check_transition_to_still()
The behavior is the same as that of detect_transition_still,
only we void using cpi and twopass->stats_in

Change-Id: I07722c817d98d8e4991a0a883235a582db8b5c3c
2019-10-15 15:13:28 -07:00
angiebird
9f291d85b6 Add compute_arf_boost()
It's behavior is the same as that of calc_arf_boost()
But, we avoid using cpi and twopass->stats_in

Change-Id: I31cf7889abf43effcca9004a9d55f4b424ce388a
2019-10-15 12:55:36 -07:00
Hien Ho
b285035727 Merge "vp8/decoder/decodeframe: fix int sanitizer warnings" 2019-10-14 17:18:08 +00:00
angiebird
9dadf3189a Correct the num_frams of fps_init_first_pass_info
Note the last packet is cumulative first pass stats.
So the number of frames is packet number minus one

Change-Id: I5f617e7eeb63d17204beaaeb6422902ec076caeb
2019-10-11 18:49:27 -07:00
angiebird
b255d47775 Simplify the logics of computing gf_group_err etc
Move the logics of computing
gf_group_err, gf_group_raw_error, gf_group_noise,
gf_group_skip_pct, gf_group_inactive_zone_rowsa,
gf_group_inter, gf_group_motion
into one for loop

The behavior stays the same.

Change-Id: Idbc338a88469bf7a2786c831880e8aba8ed4feb5
2019-10-11 17:13:34 -07:00
angiebird
821db08a43 Add calc_norm_frame_score()
The behavior is the same as calculate_norm_frame_score(),
but we avoid use cpi.

Change-Id: I3400abcdd02e041eb3b1ebf402b40b97df00d6f4
2019-10-11 16:43:47 -07:00
angiebird
a2f62fec69 Remove mod_frame_err in define_gf_group
Change-Id: I3cefcc797e8756c9d3256321679784a356fc1946
2019-10-11 16:25:33 -07:00
angiebird
4398e01511 Simplify the if clause in define_gf_group
Change-Id: I70a06a4f48c5a215831d8b6e918eebc3041ef65a
2019-10-11 16:11:23 -07:00
angiebird
412547ad4b Refactor calc_frame_boost()
Replace detect_flash() by detect_flash_from_frame_stats()

Change-Id: I31862820926b5167ff70cebe2009c04aa745a019
2019-10-10 15:45:58 -07:00
angiebird
df0ec9f0b6 Add first_pass_info in TWO_PASS
This is part of the change aims at replacing
stats_in/stats_in_start/stats_in_end by first_pass_info.

Change-Id: Ibcd2a08e57cb749fe68996f33fe3a5e7f92b1758
2019-10-10 15:44:51 -07:00
angiebird
aa49cd4ad4 Refactor get_prediction_decay_rate()
Replace cpi by frame_info
Rename next_frame by frame_stats

Change-Id: I909f01ce724aac13030931970fba8b7b3f4d0080
2019-10-10 15:44:51 -07:00
angiebird
4748129151 Replace cpi by frame_info in get_sr_decay_rate()
Change-Id: I8ed925edb12345042cf3e446095b4ad4acfa11c4
2019-10-10 15:44:51 -07:00
angiebird
16cf728c53 Change the interface of calc_frame_boost
Replace cpi by frame_info and avg_frame_qindex

Change-Id: Ie63526ac9942acf75cc416fcaa0a169838b23322
2019-10-10 15:44:51 -07:00
angiebird
4a014dfdce Use frame_info in calculate_active_area
Change-Id: I16049bef4aee54c915dc5cf181111c5a334b5eaf
2019-10-10 15:44:51 -07:00
angiebird
6b7d221ca6 Add FRAME_INFO into VP9_COMP
Change-Id: Ibc804f2420113010013c04dc005b02dfebdfda8a
2019-10-10 15:44:51 -07:00
angiebird
3a210cae43 Add detect_flash_from_frame_stats()
Change-Id: I06a64b45045334cf9563d27e154a3b8095ad80a3
2019-10-10 15:44:46 -07:00
Jerome Jiang
65c4395237 vp9: fix non bitexact when reuse_inter_pred is 0.
when the best filter selected is not EIGHTTAP_SMOOTH, and
reuse_inter_pred is 0, pred buffer was not pointing to the right place.

Change-Id: I5b519fedd2d892bf140879faa74b463a161e253b
2019-10-04 15:17:36 -07:00
Hien Ho
fdbd18a419 vpx_dsp/inv_txfm: fix int sanitizer warnings
with vp9-highbitdepth off.
Unit Test:  SSE2/Trans16x16DCT , VP9/LevelTest.TestTargetLevel20Large, VP9/CpuSpeedTest

implicit conversion from type 'int32_t' (aka 'int') of value -32851
(32-bit, signed) to type 'tran_low_t' (aka 'short') changed the value to
32685 (16-bit, signed)

BUG=webm:1615
BUG=webm:1647

Change-Id: I9ef064dc9ac734379628565ff6505b0876984123
2019-10-04 20:07:58 +00:00
Hien Ho
08da66d5df Merge "vp9/common/vp9_reconinter: fix int sanitizer warnings" 2019-10-04 15:53:02 +00:00
Hien Ho
ca42eebf62 vp8/decoder/decodeframe: fix int sanitizer warnings
Unit test: VP8/InvalidFileTest
implicit conversion from type 'int' of value -45844 (32-bit, signed) to
type 'short' changed the value to 19692 (16-bit, signed)

 BUG=webm:1615
 BUG=webm:1644

Change-Id: Id5d470f706d68e24f7a1e689526c9ecd3a8e8db8
2019-10-03 23:34:50 +00:00
Hien Ho
891c4b3ce6 Merge "vpx_dsp/quantize: fix int sanitizer warnings" 2019-10-03 23:34:20 +00:00
Hien Ho
e14acc942b vp9/common/vp9_reconinter: fix int sanitizer warnings
Unit Test: VP9/InvalidFileTest
implicit conversion from type 'int' of value -65536 (32-bit, signed) to
type 'int16_t' (aka 'short') changed the value to 0 (16-bit, signed)

BUG=webm:1615
BUG=webm:1645

Change-Id: I4ce0c6abf8b5bf43ee43e958ad75d9fa28b23eee
2019-10-03 11:56:27 -07:00
Hien Ho
37102e55ec vpx_dsp/quantize: fix int sanitizer warnings
From unit test: AVX/VP9QuantizeTest; SSSE3/VP9QuantizeTest ...
implicit conversion from type 'int' of value -139812 (32-bit, signed)
to type 'tran_low_t' (aka 'short') changed the value to -8740 (16-bit,
 signed)

BUG=webm:1615

Change-Id: I730946ac6c7a250dcbcfd8a2712c0f1150ddb4fd
2019-10-03 18:55:56 +00:00
Hien Ho
f70f5dbae2 vp9/decoder/vp9_detokenize: fix int sanitizer warnings
From unit test: VP9MultiThreaded/InvalidFileTest
implicit conversion from type 'int' of value 83144 (32-bit, signed) to
type 'tran_low_t' (aka 'short') changed the value to 17608 (16-bit,
 signed)

 BUG=webm:1615
 BUG=webm:1648

Change-Id: I4170494c328596ace66432c8563c55f31745cf76
2019-10-03 18:52:57 +00:00
James Zern
4e2cfb63de Merge "namespace ARCH_* defines" 2019-09-30 21:53:34 +00:00
James Zern
fad865c54a namespace ARCH_* defines
this prevents redefinition warnings if a toolchain sets one

BUG=b/117240165

Change-Id: Ib5d8c303cd05b4dbcc8d42c71ecfcba8f6d7b90c
2019-09-30 11:13:29 -07:00
Jerome Jiang
97cd0bd5db Fix python3 format issue
Change-Id: If0fed04c8682baee82efbdf5b4f90bcc8e8ac102
2019-09-27 19:07:20 -07:00
Marco Paniconi
4f69df9969 Merge "vp9-rtc: Fix to speed 4 for real-time mode" 2019-09-24 15:18:42 +00:00
Marco Paniconi
a7515c0877 vp9-rtc: Fix to speed 4 for real-time mode
Fix some speed feature settings for speed 4
in real-time mode.

Use rd pickmode (i.e.,nonrd_pick_mode=0), but
use variance partitioning. Allow aq-mode=3 to
work at speed 4 and modify some other speed settings.
This makes it much faster than the current speed 4,
and still better quality than speed 5.

Change-Id: I94ec43ccac022030a75b5a528703be0c37f9a35c
2019-09-23 16:43:52 -07:00
Angie Chiang
8fa9281b78 Merge "Remove USE_PQSORT and CHANGE_MV_SEARCH_ORDER" 2019-09-20 22:52:11 +00:00