Commit f44684a5 authored by Byron Campen's avatar Byron Campen
Browse files

Bug 1822194 - Vendor libwebrtc from 6a8776a108

Upstream commit: https://webrtc.googlesource.com/src/+/6a8776a1084edfd33a139e7788d4465f8ea8a9d2
    [DVQA] Provide more precise time for qp

    Bug: None
    Change-Id: Ic7b6323c296b20e164b7ff0aca861c439bb86c89
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/284721


    Reviewed-by: default avatarMirko Bonadei <mbonadei@webrtc.org>
    Commit-Queue: Artem Titov <titovartem@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#38716}
parent f392f30e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -19749,3 +19749,6 @@ c6ae33fb07
# MOZ_LIBWEBRTC_SRC=/home/bcampen/checkouts/moz-libwebrtc MOZ_LIBWEBRTC_BRANCH=mozpatches bash dom/media/webrtc/third_party_build/fast-forward-libwebrtc.sh
# base of lastest vendoring
bbc8fc165c
# MOZ_LIBWEBRTC_SRC=/home/bcampen/checkouts/moz-libwebrtc MOZ_LIBWEBRTC_BRANCH=mozpatches bash dom/media/webrtc/third_party_build/fast-forward-libwebrtc.sh
# base of lastest vendoring
6a8776a108
+2 −0
Original line number Diff line number Diff line
@@ -13188,3 +13188,5 @@ libwebrtc updated from /home/bcampen/checkouts/moz-libwebrtc commit mozpatches o
libwebrtc updated from /home/bcampen/checkouts/moz-libwebrtc commit mozpatches on 2023-03-31T23:49:03.090767.
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /home/bcampen/checkouts/moz-libwebrtc --commit mozpatches libwebrtc
libwebrtc updated from /home/bcampen/checkouts/moz-libwebrtc commit mozpatches on 2023-03-31T23:50:23.825203.
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /home/bcampen/checkouts/moz-libwebrtc --commit mozpatches libwebrtc
libwebrtc updated from /home/bcampen/checkouts/moz-libwebrtc commit mozpatches on 2023-03-31T23:51:40.812801.
+1 −0
Original line number Diff line number Diff line
@@ -231,6 +231,7 @@ rtc_library("default_video_quality_analyzer_internal") {
    "../..:metric_metadata_keys",
    "../../../../../api:array_view",
    "../../../../../api:scoped_refptr",
    "../../../../../api/numerics",
    "../../../../../api/units:data_size",
    "../../../../../api/units:timestamp",
    "../../../../../api/video:video_frame",
+3 −3
Original line number Diff line number Diff line
@@ -94,7 +94,8 @@ void FrameInFlight::OnFrameEncoded(webrtc::Timestamp time,
  frame_type_ = frame_type;
  encoded_image_size_ = encoded_image_size;
  target_encode_bitrate_ += target_encode_bitrate;
  qp_values_.push_back(qp);
  qp_values_.AddSample(SamplesStatsCounter::StatsSample{
      .value = static_cast<double>(qp), .time = time});
  // Update used encoder info. If simulcast/SVC is used, this method can
  // be called multiple times, in such case we should preserve the value
  // of `used_encoder_.switched_on_at` from the first invocation as the
@@ -184,8 +185,7 @@ FrameStats FrameInFlight::GetStatsForPeer(size_t peer) const {
  stats.encoded_frame_type = frame_type_;
  stats.encoded_image_size = encoded_image_size_;
  stats.used_encoder = used_encoder_;
  stats.qp_values.insert(stats.qp_values.begin(), qp_values_.begin(),
                         qp_values_.end());
  stats.qp_values = qp_values_;

  absl::optional<ReceiverFrameStats> receiver_stats =
      MaybeGetValue<ReceiverFrameStats>(receiver_stats_, peer);
+2 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <vector>

#include "absl/types/optional.h"
#include "api/numerics/samples_stats_counter.h"
#include "api/units/data_size.h"
#include "api/units/timestamp.h"
#include "api/video/video_frame.h"
@@ -153,7 +154,7 @@ class FrameInFlight {
  VideoFrameType frame_type_ = VideoFrameType::kEmptyFrame;
  DataSize encoded_image_size_ = DataSize::Bytes(0);
  uint32_t target_encode_bitrate_ = 0;
  std::vector<int> qp_values_;
  SamplesStatsCounter qp_values_;
  // Can be not set if frame was dropped by encoder.
  absl::optional<StreamCodecInfo> used_encoder_ = absl::nullopt;
  // Map from the receiver peer's index to frame stats for that peer.
Loading