Closed Bug 1906767 Opened 2 years ago Closed 2 years ago

Update libvpx to new version 77974ec0413e8492d53aed1594549a78ded8f412 from 2024-07-12 00:34:57

Categories

(Core :: Audio/Video, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: update-bot, Assigned: chunmin)

Details

(Whiteboard: [3pl-filed][task_id: BjYQZGL6SB6hBnRzLYuo7g])

Attachments

(2 external files)

This update covers 19 commits. Here are the overall diff statistics, and then the commit information.


media/libvpx/config/generic/vp8_rtcd.h | 10 +
media/libvpx/config/generic/vp9_rtcd.h | 10 +
media/libvpx/config/generic/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/generic/vpx_scale_rtcd.h | 10 +
media/libvpx/config/linux/arm/vp8_rtcd.h | 10 +
media/libvpx/config/linux/arm/vp9_rtcd.h | 10 +
media/libvpx/config/linux/arm/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/linux/arm/vpx_scale_rtcd.h | 10 +
media/libvpx/config/linux/arm64/vp8_rtcd.h | 10 +
media/libvpx/config/linux/arm64/vp9_rtcd.h | 10 +
media/libvpx/config/linux/arm64/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/linux/arm64/vpx_scale_rtcd.h | 10 +
media/libvpx/config/linux/ia32/vp8_rtcd.h | 10 +
media/libvpx/config/linux/ia32/vp9_rtcd.h | 10 +
media/libvpx/config/linux/ia32/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/linux/ia32/vpx_scale_rtcd.h | 10 +
media/libvpx/config/linux/x64/vp8_rtcd.h | 10 +
media/libvpx/config/linux/x64/vp9_rtcd.h | 10 +
media/libvpx/config/linux/x64/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/linux/x64/vpx_scale_rtcd.h | 10 +
media/libvpx/config/mac/arm64/vp8_rtcd.h | 10 +
media/libvpx/config/mac/arm64/vp9_rtcd.h | 10 +
media/libvpx/config/mac/arm64/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/mac/arm64/vpx_scale_rtcd.h | 10 +
media/libvpx/config/mac/ia32/vp8_rtcd.h | 10 +
media/libvpx/config/mac/ia32/vp9_rtcd.h | 10 +
media/libvpx/config/mac/ia32/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/mac/ia32/vpx_scale_rtcd.h | 10 +
media/libvpx/config/mac/x64/vp8_rtcd.h | 10 +
media/libvpx/config/mac/x64/vp9_rtcd.h | 10 +
media/libvpx/config/mac/x64/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/mac/x64/vpx_scale_rtcd.h | 10 +
media/libvpx/config/win/aarch64/vp8_rtcd.h | 10 +
media/libvpx/config/win/aarch64/vp9_rtcd.h | 10 +
media/libvpx/config/win/aarch64/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/win/aarch64/vpx_scale_rtcd.h | 10 +
media/libvpx/config/win/ia32/vp8_rtcd.h | 10 +
media/libvpx/config/win/ia32/vp9_rtcd.h | 10 +
media/libvpx/config/win/ia32/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/win/ia32/vpx_scale_rtcd.h | 10 +
media/libvpx/config/win/x64/vp8_rtcd.h | 10 +
media/libvpx/config/win/x64/vp9_rtcd.h | 10 +
media/libvpx/config/win/x64/vpx_dsp_rtcd.h | 10 +
media/libvpx/config/win/x64/vpx_scale_rtcd.h | 10 +
media/libvpx/libvpx/README | 4 +-
media/libvpx/libvpx/build/make/configure.sh | 13 +-
media/libvpx/libvpx/build/make/rtcd.pl | 12 +
media/libvpx/libvpx/rate_hist.c | 10 +-
media/libvpx/libvpx/test/vp9_ethread_test.cc | 2 +
media/libvpx/libvpx/test/vp9_ext_ratectrl_test.cc | 65 ++---
media/libvpx/libvpx/vp8/encoder/firstpass.c | 46 ++-
media/libvpx/libvpx/vp8/vp8_cx_iface.c | 17 +-
media/libvpx/libvpx/vp9/encoder/vp9_encoder.c | 6 +-
media/libvpx/libvpx/vp9/encoder/vp9_ext_ratectrl.c | 12 +
media/libvpx/libvpx/vp9/encoder/vp9_ext_ratectrl.h | 4 +
media/libvpx/libvpx/vp9/encoder/vp9_firstpass.c | 218 ++++++++++++--------
media/libvpx/libvpx/vp9/encoder/vp9_ratectrl.c | 40 ++-
media/libvpx/libvpx/vp9/encoder/vp9_tpl_model.c | 14 +-
media/libvpx/libvpx/vp9/vp9_cx_iface.c | 19 +-
media/libvpx/libvpx/vpx/vpx_ext_ratectrl.h | 24 ++
media/libvpx/libvpx/vpx_ports/aarch64_cpudetect.c | 4 +-
media/libvpx/libvpx/vpxenc.c | 8 +-
media/libvpx/moz.yaml | 4 +-
63 files changed, 742 insertions(+), 220 deletions(-)


066ea57e3d51539194b669ee74117bf9ce27a6ad by Wan-Teh Chang <wtc@google.com>

https://chromium.googlesource.com/webm/libvpx/+/066ea57e3d51539194b669ee74117bf9ce27a6ad
Authored: 2024-07-08 14:31:23 -0700
Committed: 2024-07-08 14:31:23 -0700

Fix unused function warnings in real-time only

The compare_fp_stats() and compare_fp_stats_md5() functions are not used
when CONFIG_REALTIME_ONLY is equal to 1. Define these functions only if
CONFIG_REALTIME_ONLY is 0 to avoid the -Wunused-function warnings.

Change-Id: Iaae208f67708cfaeee5304b0320ebce63c863f96

Files Modified:

  • test/vp9_ethread_test.cc

7cc7bbba1f4bc0627ba45ea3efdf54e18a6d052f by Jingning Han <jingning@google.com>

https://chromium.googlesource.com/webm/libvpx/+/7cc7bbba1f4bc0627ba45ea3efdf54e18a6d052f
Authored: 2024-07-03 14:10:56 -0700
Committed: 2024-07-08 17:02:15 +0000

Allow TPL group to reference more frames

Allow the TPL group to use up to 3 reference frames from the
previous GOP. This slightly changes the coding stats in the range
of <0.1%.

STATS_CHANGED

Change-Id: Ieb4e948a783bf8ef9ca78717d56ff750f3f795a4

Files Modified:

  • vp9/encoder/vp9_tpl_model.c

4ac9c4ba32bde8beb86da2553f5e75a9c124fcc7 by Wan-Teh Chang <wtc@google.com>

https://chromium.googlesource.com/webm/libvpx/+/4ac9c4ba32bde8beb86da2553f5e75a9c124fcc7
Authored: 2024-06-28 23:47:47 -0700
Committed: 2024-07-03 17:09:52 +0000

Fix int cast errors in vp8 on max target bitrate

Fix double-to-int cast overflows in vp8 code caused by setting the
target bitrate to the maximum value (2000000).

Tested: Build libvpx with UndefinedBehaviorSanitizer and then run
./vpxenc husky.yuv -o AV1_husky_2000000_10000000_10000000.webm --good
--cpu-used=2 -v -t 0 -w 352 -h 288 --fps=10000000/10000000
--target-bitrate=2000000 --limit=150 --test-decode=fatal --passes=2
--lag-in-frames=25 --min-q=0 --max-q=63 --arnr-maxframes=7
--arnr-strength=5 --kf-max-dist=9999 --undershoot-pct=100
--overshoot-pct=100 --bias-pct=50 --codec=vp8

Note: This is essentially the VP8 version of the libaom CL
https://aomedia-review.googlesource.com/c/aom/+/191361.

Bug: 349440066
Change-Id: Ia43e1aad8fcab60ace49da960579081c2c3a5445

Files Modified:

  • vp8/encoder/firstpass.c

27c39522f56ab4541a9f0b2a5e08169b15b09af6 by Wan-Teh Chang <wtc@google.com>

https://chromium.googlesource.com/webm/libvpx/+/27c39522f56ab4541a9f0b2a5e08169b15b09af6
Authored: 2024-07-02 15:29:35 -0700
Committed: 2024-07-03 16:26:46 +0000

vpxenc.c: Fix UBSan integer errors in test_decode

Fix the following UBSan integer errors in test_decode():
vpxenc.c:1589:57: runtime error: implicit conversion from type 'int' of
value -16 (32-bit, signed) to type 'unsigned int' changed the value to
4294967280 (32-bit, unsigned)
vpxenc.c:1590:58: runtime error: implicit conversion from type 'int' of
value -16 (32-bit, signed) to type 'unsigned int' changed the value to
4294967280 (32-bit, unsigned)

Tested: Build libvpx with -fsanitize=integer and then run
./vpxenc husky.yuv -o AV1_husky_2000000_10000000_10000000.webm --good
--cpu-used=2 -v -t 0 -w 352 -h 288 --fps=10000000/10000000
--target-bitrate=2000000 --limit=150 --test-decode=fatal --passes=2
--lag-in-frames=25 --min-q=0 --max-q=63 --arnr-maxframes=7
--arnr-strength=5 --kf-max-dist=9999 --undershoot-pct=100
--overshoot-pct=100 --bias-pct=50 --codec=vp8

Bug: 349440066
Change-Id: Ice2f0e7176ffec664856559e2c02bd51113c4d74

Files Modified:

  • vpxenc.c

a396ac214dfb258f8c60a522720528742c7cc59c by Wan-Teh Chang <wtc@google.com>

https://chromium.googlesource.com/webm/libvpx/+/a396ac214dfb258f8c60a522720528742c7cc59c
Authored: 2024-07-02 15:25:11 -0700
Committed: 2024-07-02 15:25:11 -0700

Fix unsigned int overflow in init_rate_histogram()

Tested: Build libvpx with -fsanitize=integer and then run
./vpxenc husky.yuv -o AV1_husky_2000000_10000000_10000000.webm --good
--cpu-used=2 -v -t 0 -w 352 -h 288 --fps=10000000/10000000
--target-bitrate=2000000 --limit=150 --test-decode=fatal --passes=2
--lag-in-frames=25 --min-q=0 --max-q=63 --min-gf-interval=4
--max-gf-interval=22 --arnr-maxframes=7 --arnr-strength=5
--kf-max-dist=9999 --aq-mode=0 --undershoot-pct=100
--overshoot-pct=100 --bias-pct=50

This unsigned integer overflow seems to be caused by
g_timebase.num=1000000.

Note: This is a port of the libaom CL
https://aomedia-review.googlesource.com/c/aom/+/191401.

Bug: 349440066
Change-Id: I924fa9c653400764dd7320938b88b4ea40f38172

Files Modified:

  • rate_hist.c

af599a0c5fc4529ce0b70368eb2ba63eda320fe9 by Wan-Teh Chang <wtc@google.com>

https://chromium.googlesource.com/webm/libvpx/+/af599a0c5fc4529ce0b70368eb2ba63eda320fe9
Authored: 2024-06-05 12:56:50 -0700
Committed: 2024-06-28 21:29:04 -0700

Fix further overflow issue in VBR.

This patch fixes some additional cases where under extreme conditions
some of the VBR adjustment variables can wrap.

As this happens on a per frame level the extra saturation checks should
not be an issue for performance.

Note: This CL is a port of the following libaom CLs:
https://aomedia-review.googlesource.com/c/aom/+/190521
https://aomedia-review.googlesource.com/c/aom/+/190888

Change-Id: I87c4ecca10f39767002f7d90d0f43b19c7150832

Files Modified:

  • vp8/encoder/firstpass.c
  • vp9/encoder/vp9_firstpass.c
  • vp9/encoder/vp9_ratectrl.c

ac117ca7f903ef87d4c248d0c29e1710ddb64807 by Wan-Teh Chang <wtc@google.com>

https://chromium.googlesource.com/webm/libvpx/+/ac117ca7f903ef87d4c248d0c29e1710ddb64807
Authored: 2024-06-27 17:30:01 -0700
Committed: 2024-06-27 17:30:01 -0700

Remove static from vars in parse_stream_params()

Those variables in parse_stream_params() don't need to be function-scope
static variables.

Change-Id: I5e0b0f78deb0aa8b4f95dcd2352d89342b9d528a

Files Modified:

  • vpxenc.c

2693255a2557a63db4139a96488ad187851dfc13 by Angie Chiang <angiebird@google.com>

https://chromium.googlesource.com/webm/libvpx/+/2693255a2557a63db4139a96488ad187851dfc13
Authored: 2024-06-20 14:05:32 -0700
Committed: 2024-06-21 11:21:18 -0700

Let vp9_ext_ratectrl getting key frame decision

BUG = b/347936295

Change-Id: Ic152d3f6873ebe02977c1ede6a5663bd5f9be363

Files Modified:

  • vp9/encoder/vp9_ext_ratectrl.c
  • vp9/encoder/vp9_ext_ratectrl.h
  • vp9/encoder/vp9_firstpass.c
  • vpx/vpx_ext_ratectrl.h

253d6365e3f134f4aca6f5fc312336cb501a1c6f by Marco Paniconi <marpan@google.com>

https://chromium.googlesource.com/webm/libvpx/+/253d6365e3f134f4aca6f5fc312336cb501a1c6f
Authored: 2024-06-17 11:21:19 -0700
Committed: 2024-06-18 16:58:00 +0000

rtc-vp9: Allow scene detection for all speeds

Current code was disallowing scene detection for
speeds >= 8, to avoid any encode_time increase
(see comment in the code).

But we can expect the cost to be small even at speed 8,9,
and that concern on encode_time was from some time ago
before 8 and 9 were further optimized. And this is
needed for content with scene changes (see issue attached).
So allow scene detection now for all RTC speed settings (speed >= 5).

Bug: b/346846607
Change-Id: I678dbb88ff1399ed89b2bf9770ae9427e3044fc4

Files Modified:

  • vp9/encoder/vp9_encoder.c

f07ca82f7a0cc556a415e06772534a8bdcb0151a by James Zern <jzern@google.com>

https://chromium.googlesource.com/webm/libvpx/+/f07ca82f7a0cc556a415e06772534a8bdcb0151a
Authored: 2024-06-14 12:14:04 -0700
Committed: 2024-06-14 12:16:33 -0700

set_analyzer_env.sh: remove -fno-strict-aliasing

The last reference to the flag in configure was removed in:
fad70a358 Remove -fno-strict-aliasing flag

The library should be expected to function without this flag; it's built
and tested elsewhere without it.

Bug: webm:570, webm:603
Change-Id: Icf85fd9bd5c9cb0c81d6eecf10fba07807f48b4a

Files Modified:

  • tools/set_analyzer_env.sh

d6ae3ea465d32ea16a4814513f43022b88c5bdfe by James Zern <jzern@google.com>

https://chromium.googlesource.com/webm/libvpx/+/d6ae3ea465d32ea16a4814513f43022b88c5bdfe
Authored: 2024-06-13 11:54:43 -0700
Committed: 2024-06-13 11:54:43 -0700

rtcd.pl: add license header to generated files

Bug: aomedia:3525
Change-Id: I614056558fb5439b448342e0c01e53bd8da85585

Files Modified:

  • build/make/rtcd.pl

68deb7ee20e932ec70ac3df06737c298b2138e17 by Angie Chiang <angiebird@google.com>

https://chromium.googlesource.com/webm/libvpx/+/68deb7ee20e932ec70ac3df06737c298b2138e17
Authored: 2024-06-12 14:29:08 -0700
Committed: 2024-06-12 14:29:08 -0700

Add missing header in vp9_firstpass.c

Change-Id: I675fa2b74b567e47f2a8fe2a7e4b4d3e77880d13

Files Modified:

  • vp9/encoder/vp9_firstpass.c

ff67a4f209eabc02f8d76c8195bff05870febcdf by Angie Chiang <angiebird@google.com>

https://chromium.googlesource.com/webm/libvpx/+/ff67a4f209eabc02f8d76c8195bff05870febcdf
Authored: 2024-06-12 14:17:00 -0700
Committed: 2024-06-12 14:17:00 -0700

Fix typo of received again

Change-Id: I6df009ec0423c2ef244399107c968ae1255337e5

Files Modified:

  • test/vp9_ext_ratectrl_test.cc

277a5cdaa4b8d7d0a5c4f43a81efdd2ab7def5a0 by Angie Chiang <angiebird@google.com>

https://chromium.googlesource.com/webm/libvpx/+/277a5cdaa4b8d7d0a5c4f43a81efdd2ab7def5a0
Authored: 2024-06-12 11:56:54 -0700
Committed: 2024-06-12 12:30:41 -0700

Remove redundant setting of max_layer_depth.

Change-Id: Ide2b6852339471b8e82109c846ba24fe7dc94aaa

Files Modified:

  • vp9/encoder/vp9_firstpass.c

2ca6e875c35ce6a9e58b75f4a73eb14a56fdb1c7 by Angie Chiang <angiebird@google.com>

https://chromium.googlesource.com/webm/libvpx/+/2ca6e875c35ce6a9e58b75f4a73eb14a56fdb1c7
Authored: 2024-06-12 10:28:12 -0700
Committed: 2024-06-12 10:28:12 -0700

Typo recieved -> received

Change-Id: I140b5c2a5cefc346b3961dad09fd145d85d44d17

Files Modified:

  • test/vp9_ext_ratectrl_test.cc

fb01e53c989aa90e6555da325b75029b8afb2cf0 by James Zern <jzern@google.com>

https://chromium.googlesource.com/webm/libvpx/+/fb01e53c989aa90e6555da325b75029b8afb2cf0
Authored: 2024-06-11 13:55:36 -0700
Committed: 2024-06-11 22:55:22 +0000

configure: add -c to ASFLAGS for android + AS=clang

The GNU Assembler was removed in r24. clang's internal assembler works,
but -c is necessary to avoid linking.

Bug: webm:1856
Change-Id: I61f80cf78657d3b71d5e73c5b2510575533ca5ea

Files Modified:

  • build/make/configure.sh

b0c9d0c6fe5e6f7b47cf1f1b76d64eca751abd23 by James Zern <jzern@google.com>

https://chromium.googlesource.com/webm/libvpx/+/b0c9d0c6fe5e6f7b47cf1f1b76d64eca751abd23
Authored: 2024-06-11 13:46:00 -0700
Committed: 2024-06-11 22:55:22 +0000

configure: remove unused NM & RANLIB variables

  • update list in README

Change-Id: I363e9bc36b2e160de43d0fbcba4700297a582549

Files Modified:

  • README
  • build/make/configure.sh

ed95b102c431ac3939f89faec32f65a7cefcbe9d by Angie Chiang <angiebird@google.com>

https://chromium.googlesource.com/webm/libvpx/+/ed95b102c431ac3939f89faec32f65a7cefcbe9d
Authored: 2024-06-06 13:37:06 -0700
Committed: 2024-06-11 20:19:04 +0000

Move ext_rc_define_gf_group_structure

Move the function into define_gf_group().
define_gf_group() has a lot of settings that might cause
performance drop if skipped.

Imitate define_gf_group_structure()'s behavior which add
an extra overlay frame at the end of gf_group whenever
alt_ref is used.

After this change, we can feed the baseline decision through
webmrc and get the same result as baseline.

This CL is tested with city_cif.yuv using ffmpeg

BUG = b/345528565

Change-Id: Ib61f0a0a72251f8662fb4072e0cfd7f456a243b3

Files Modified:

  • test/vp9_ext_ratectrl_test.cc
  • vp9/encoder/vp9_firstpass.c

271b3f0bf0fc4b36ad977da993357b40e35d720e by James Zern <jzern@google.com>

https://chromium.googlesource.com/webm/libvpx/+/271b3f0bf0fc4b36ad977da993357b40e35d720e
Authored: 2024-06-07 19:12:53 -0700
Committed: 2024-06-10 16:05:06 -0700

tiny_ssim: mv read error checks closer to assignment

Quiets some spurious -Wmaybe-uninitialized warnings with gcc 14.1.0.

In function 'calc_plane_error16',
inlined from 'main' at ../tools/tiny_ssim.c:464:5:
../tools/tiny_ssim.c:37:12: warning: 'v[0]' may be used uninitialized
[-Wmaybe-uninitialized]
37 | if (orig == NULL || recon == NULL) {
| ^
In function 'calc_plane_error16',
inlined from 'main' at ../tools/tiny_ssim.c:462:5:
../tools/tiny_ssim.c:37:12: warning: 'u[0]' may be used uninitialized
[-Wmaybe-uninitialized]
37 | if (orig == NULL || recon == NULL) {
| ^
In function 'calc_plane_error',
inlined from 'main' at ../tools/tiny_ssim.c:461:5:
../tools/tiny_ssim.c:61:12: warning: 'y[0]' may be used uninitialized
[-Wmaybe-uninitialized]
61 | if (orig == NULL || recon == NULL) {

To reduce confusion, read_input_file() is changed to return an int as
previously it would only return (size_t)-1/0/1 (and now returns 0/1).

Change-Id: I2344048ecc2bd233891ffcef08002ee98d6d262a

Files Modified:

  • tools/tiny_ssim.c

Updatebot encountered an error while trying to submit to phabricator.
Updatebot will be unable to do anything more for this library version.

Flags: needinfo?(cchang)
Severity: -- → N/A

This patch updates the libvpx source by running
./mach vendor media/libvpx/moz.yaml --patch-mode=none

This patch modifies the libvpx code by running
./mach vendor media/libvpx/moz.yaml --patch-mode=only

Depends on D216422

Assignee: nobody → cchang
Flags: needinfo?(cchang)
Summary: Update libvpx to new version 066ea57e3d51539194b669ee74117bf9ce27a6ad from 2024-07-15 00:00:00 → Update libvpx to new version 77974ec0413e8492d53aed1594549a78ded8f412 from 2024-07-12 00:34:57
Summary: Update libvpx to new version 77974ec0413e8492d53aed1594549a78ded8f412 from 2024-07-12 00:34:57 → Update libvpx to new version 77974ec0413e8492d53aed1594549a78ded8f412 from 2024-07-12 00:34:57
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9a12c9e8d1a6 Update libvpx to 77974ec0413e8492d53aed1594549a78ded8f412 r=media-playback-reviewers,alwu https://hg.mozilla.org/integration/autoland/rev/b9bbff2cd97d Apply local patches r=media-playback-reviewers,alwu
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: