commit 2ad7af33c9de3cf35413f37089db3408c793244d
parent 2c3c7ac79adebc401b378387560779aed8991891
Author: Dan Baker <dbaker@mozilla.com>
Date: Mon, 1 Dec 2025 20:33:56 -0700
Bug 2000941 - Vendor libwebrtc from df2a9247c2
Upstream commit: https://webrtc.googlesource.com/src/+/df2a9247c2d8a8d8a0afa31e9aeb1de324be0173
Add FileBasedEncoderWithIvfTransform
Bug: webrtc:358039777
Change-Id: I98ba65e67d24d8cf360ed770831951a20d725736
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/406780
Reviewed-by: Fanny Linderborg <linderborg@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Emil Vardar (xWF) <vardar@google.com>
Cr-Commit-Position: refs/heads/main@{#45648}
Diffstat:
3 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor
@@ -1,4 +1,4 @@
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc
-libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-12-02T03:31:28.110173+00:00.
+libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-12-02T03:33:42.004174+00:00.
# base of lastest vendoring
-e47a725e10
+df2a9247c2
diff --git a/third_party/libwebrtc/video/corruption_detection/evaluation/BUILD.gn b/third_party/libwebrtc/video/corruption_detection/evaluation/BUILD.gn
@@ -28,6 +28,15 @@ rtc_library("file_based_encoder") {
]
}
+rtc_library("file_based_encoder_with_ivf_transform") {
+ testonly = true
+ sources = [ "file_based_encoder_with_ivf_transform.h" ]
+ deps = [
+ ":file_based_encoder",
+ "../../../api:rtc_error",
+ ]
+}
+
rtc_library("picture_pair_provider") {
testonly = true
sources = [ "picture_pair_provider.h" ]
diff --git a/third_party/libwebrtc/video/corruption_detection/evaluation/file_based_encoder_with_ivf_transform.h b/third_party/libwebrtc/video/corruption_detection/evaluation/file_based_encoder_with_ivf_transform.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2025 The WebRTC project authors. All rights reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#ifndef VIDEO_CORRUPTION_DETECTION_EVALUATION_FILE_BASED_ENCODER_WITH_IVF_TRANSFORM_H_
+#define VIDEO_CORRUPTION_DETECTION_EVALUATION_FILE_BASED_ENCODER_WITH_IVF_TRANSFORM_H_
+
+#include <string>
+
+#include "api/rtc_error.h"
+#include "video/corruption_detection/evaluation/file_based_encoder.h"
+
+namespace webrtc {
+
+class FileBasedEncoderWithIvfTransform : public FileBasedEncoder {
+ public:
+ // Transforms the encoded video by the `Encode` method to IVF format. It
+ // returns the path to the IVF file if successful.
+ virtual RTCErrorOr<std::string> TransformToIvf() = 0;
+};
+
+} // namespace webrtc
+
+#endif // VIDEO_CORRUPTION_DETECTION_EVALUATION_FILE_BASED_ENCODER_WITH_IVF_TRANSFORM_H_