文件最后提交记录最后更新时间
Format ^(api|call|common_audio|examples|media|net|p2p|pc)/ half of the remaining folders git ls-files | grep -e "\(\.h\|\.cc\)$" | grep -E "^(api|call|common_audio|examples|media|net|p2p|pc)/" | xargs clang-format -i ; git cl format after landing: add to .git-blame-ignore-revs Bug: webrtc:15082 Change-Id: I8b2cac13f4587d3ce9b2fccc7362967283f57ea2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/302062 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39977} 3 年前
Apply resolution-bitrate limits collected from field trial (cl/294600) for AV1. Bug: webrtc:14931 Change-Id: I1e8471a499bc884cb9479609a2b093de90f638d8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/296120 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Commit-Queue: Michael Horowitz <mhoro@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39582} 3 年前
Switch to eshr@webrtc.org in OWNER files Bug: None Change-Id: I2457e68302a2afbdf7febbb47fd1531cac38e381 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/234860 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Evan Shrubsole <eshr@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35187} 4 年前
[Adaptation] Move IsAdaptationUpAllowed/OnAdaptationApplied out of API. IsAdaptationUpAllowed is moved from Resource to AdaptationConstraint. OnAdaptationApplied is moved from Resource to AdaptationListener. In a future CL, Resource will be moved to api/, but AdaptationConstraint and AdaptationListener will stay in call/. The processor, encode stream and manager are updated to keep track of both resources, constraints and listeners. Fakes and tests are updated. After this CL, the manager's inner classes that prevent adaptation implement AdaptationConstraint instead of Resource. Bug: webrtc:11525 Change-Id: Ie9cd5b1ba7d8e161951e131ab8f6bd9d5cf765bf Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176368 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@google.com> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31409} 5 年前
[Adaptation] Remove resource adaptation queue Resource adaptation needs refactoring for async adaptations. For now the resource adaptation processor can work on the encoder thread, until it is refactored to support async adaptation. Bug: webrtc:11867 Change-Id: I9c46da356db19c0fd52748c999ccb216f2ca923b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/182040 Commit-Queue: Evan Shrubsole <eshr@google.com> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31991} 5 年前
Move rtc::make_ref_counted to api/ Bug: webrtc:12701 Change-Id: If49095b101c1a1763c2a44a0284c0d670cce953f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/265390 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37219} 3 年前
Migrate call/ to webrtc::Mutex. Bug: webrtc:11567 Change-Id: Iab7142c77bc0c1a026cf5121b756094e05bccefe Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176742 Commit-Queue: Markus Handell <handellm@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31636} 5 年前
[Adaptation] Multi-processor support for injected Resources. Because a single Resource only has a single ResourceListener, injected Resources only gets wired up to the stream's ResourceAdaptationProcessor that was last to call SetResourceListener. This could potentially lead to the relevant stream not adapting based on the injected resource because it got wired up to the wrong stream's processor. This CL fixes this issue by introducing BroadcastResourceListener. By listening to 1 resource (the injected one), it can spawn N "adapter" resources that mirror's the injected resource's usage signal, allowing all ResourceAdaptationProcessor's to react to the signal. This is wired up in Call, and tests are updated to verify the signal gets through. Bug: chromium:1101263, webrtc:11720 Change-Id: I8a37284cb9a68f08ca1bdb1ee050b7144c451297 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178386 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@google.com> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31612} 5 年前
[Adaptation] Move deg.pref. out of ResourceAdaptationProcessor This patch creates a new class which provides the DegradationPreference thread safe to all classes that need if (BalancedConstraint and QpScalerResource). It also broadcasts to all listeners when the preferences are updated, so the ResourceAdaptationProcessor can update the video if needed. In future work, this could be used to remove the need for two task queues for the VideoStreamEncoder resources. Bug: webrtc:11700 Change-Id: I05480db8b7157b5643f6f86ec9c64850839b3e76 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/177522 Commit-Queue: Evan Shrubsole <eshr@google.com> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31623} 5 年前
[Adaptation] Remove resource adaptation queue Resource adaptation needs refactoring for async adaptations. For now the resource adaptation processor can work on the encoder thread, until it is refactored to support async adaptation. Bug: webrtc:11867 Change-Id: I9c46da356db19c0fd52748c999ccb216f2ca923b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/182040 Commit-Queue: Evan Shrubsole <eshr@google.com> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31991} 5 年前
[Adaptation] Refactor AdaptationTarget. Peek next restrictions. This CL introduces the Adaptation class used by VideoStreamRestrictor. This refactors the AdaptationTarget, AdaptationTargetOrReason, CannotAdaptReason and AdaptationAction. What is publicly exposed is simply a Status code. If it's kValid then we can adapt, otherwise the status code describes why we can't adapt (just like CannotAdaptReason prior to this CL). This means AdaptationTargetOrReason is no longer needed. Target+reason are merged. The other classes are renamed and moved and put in the private namespace of Adaptation: Only the VideoStreamAdapter (now a friend class of Adaptation) and its inner class VideoSourceRestrictor needs to know how to execute the adaptation. Publicly, you can now tell the effects of the adaptation without applying it with PeekNextRestrictions() - both current and next steps are described in terms of VideoSourceRestrictions. The rest are hidden. This would make it possible, in the future, for a Resource to accept or reject a proposed Adaptation by examining the resulting frame rate and resolution described by the resulting restrictions. E.g. even if we are not overusing bandwidth at the moment, the BW resource can prevent us from applying a restriction that would exceed the BW limit before we apply it. This CL also moves input to a SetInput() method, and Increase/Decrease methods of VideoSourceRestrictor are made private in favor of ApplyAdaptationSteps(). Bug: webrtc:11393 Change-Id: Ie5e2181836ab3713b8021c1a152694ca745aeb0d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/170111 Commit-Queue: Henrik Boström <hbos@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@google.com> Cr-Commit-Position: refs/heads/master@{#30794} 6 年前
Move VideoEncoderConfig from api/ into video/config This cl move VideoEncoderConfig from api/ to video/config. VideoStreamEncoderInterface and VideoStreamEncoderObserver are moved as collateral. brandt@ think that the reason these were in api/ in the first place had to downstream project. Functionality wise, this is a NOP, but it makes it easier to modify the encoder (config). Bug: webrtc:14451 Change-Id: I2610d815aeb186298498e7102cac773ecac8cd36 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277002 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38242} 3 年前
Migrate remaining webrtc usage of TaskQueueBase to absl::AnyInvocable Bug: webrtc:14245 Change-Id: I8de2c23da5fbdfc0b1efbbe07fb6e8de744424a3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268191 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37565} 3 年前
Move VideoEncoderConfig from api/ into video/config This cl move VideoEncoderConfig from api/ to video/config. VideoStreamEncoderInterface and VideoStreamEncoderObserver are moved as collateral. brandt@ think that the reason these were in api/ in the first place had to downstream project. Functionality wise, this is a NOP, but it makes it easier to modify the encoder (config). Bug: webrtc:14451 Change-Id: I2610d815aeb186298498e7102cac773ecac8cd36 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277002 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38242} 3 年前
[Adaptation] VideoStreamAdapter broadcasts adaptations This moves this responsibility from the ResourceAdaptaitonProcessor to the VideoStreamAdapter. A new interface for listening to adaptation changes was added, and the ResourceAdaptationProcessor now listens on the VideoStreamAdapter for those changes. This means that going forward, 1. We can do adaptations outside of resource limitations, like setting prior adaptations on a resource like initial frame dropper is designed to. 2. Adaptations can be on a different queue than the ResourceAdaptaitonProcessor's queue since updates are pushed through the listener. Bug: webrtc:11700 Change-Id: I6de0dec748dba095e702f0b9893c5afa50b51aa9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176859 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Evan Shrubsole <eshr@google.com> Cr-Commit-Position: refs/heads/master@{#31615} 5 年前
VideoStreamEncoder - wait less. Some of the state that's managed in VideoStreamEncoder, is updated and accessed on the encoder queue, but a method that's used for testing only (GetAdaptationResources()), represents a race between PostTask operations that update state and checking for said state on the worker thread. This CL removes Wait() operations related to adaptation resources from the common path and puts one in the test path instead. Bug: webrtc:13612 Change-Id: Ie3e018e815e24951bc0634ed70de17eaf336a508 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249220 Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35797} 4 年前
Update rtc::Event::Wait call sites to use TimeDelta. Bug: webrtc:14366 Change-Id: I949c1d26f030696b18153afef977633c9a5bd4cf Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/272003 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Markus Handell <handellm@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37835} 3 年前
[Adaptation] Multi-processor support for injected Resources. Because a single Resource only has a single ResourceListener, injected Resources only gets wired up to the stream's ResourceAdaptationProcessor that was last to call SetResourceListener. This could potentially lead to the relevant stream not adapting based on the injected resource because it got wired up to the wrong stream's processor. This CL fixes this issue by introducing BroadcastResourceListener. By listening to 1 resource (the injected one), it can spawn N "adapter" resources that mirror's the injected resource's usage signal, allowing all ResourceAdaptationProcessor's to react to the signal. This is wired up in Call, and tests are updated to verify the signal gets through. Bug: chromium:1101263, webrtc:11720 Change-Id: I8a37284cb9a68f08ca1bdb1ee050b7144c451297 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178386 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@google.com> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31612} 5 年前
RtpEncodingParameters::request_resolution patch 3 This cl/ adds resource adapation to the requested_resolution feature. The restrictions that are sent to the video source are also saved inside video_stream_encoder and used when determining layer resolution. Anticipated further patches 4) Let VideoSource do adaption if possible Bug: webrtc:14451 Change-Id: Ia9b990a6b92b76af7ff6665a562f84585f79c35b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277580 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38306} 3 年前
RtpEncodingParameters::request_resolution patch 3 This cl/ adds resource adapation to the requested_resolution feature. The restrictions that are sent to the video source are also saved inside video_stream_encoder and used when determining layer resolution. Anticipated further patches 4) Let VideoSource do adaption if possible Bug: webrtc:14451 Change-Id: Ia9b990a6b92b76af7ff6665a562f84585f79c35b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277580 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38306} 3 年前
RtpEncodingParameters::request_resolution patch 3 This cl/ adds resource adapation to the requested_resolution feature. The restrictions that are sent to the video source are also saved inside video_stream_encoder and used when determining layer resolution. Anticipated further patches 4) Let VideoSource do adaption if possible Bug: webrtc:14451 Change-Id: Ia9b990a6b92b76af7ff6665a562f84585f79c35b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277580 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38306} 3 年前
Apply resolution-bitrate limits collected from field trial (cl/294600) for AV1. Bug: webrtc:14931 Change-Id: I1e8471a499bc884cb9479609a2b093de90f638d8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/296120 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Commit-Queue: Michael Horowitz <mhoro@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39582} 3 年前
Move VideoEncoderConfig from api/ into video/config This cl move VideoEncoderConfig from api/ to video/config. VideoStreamEncoderInterface and VideoStreamEncoderObserver are moved as collateral. brandt@ think that the reason these were in api/ in the first place had to downstream project. Functionality wise, this is a NOP, but it makes it easier to modify the encoder (config). Bug: webrtc:14451 Change-Id: I2610d815aeb186298498e7102cac773ecac8cd36 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277002 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38242} 3 年前
Move VideoEncoderConfig from api/ into video/config This cl move VideoEncoderConfig from api/ to video/config. VideoStreamEncoderInterface and VideoStreamEncoderObserver are moved as collateral. brandt@ think that the reason these were in api/ in the first place had to downstream project. Functionality wise, this is a NOP, but it makes it easier to modify the encoder (config). Bug: webrtc:14451 Change-Id: I2610d815aeb186298498e7102cac773ecac8cd36 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277002 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38242} 3 年前
Use pixels from single active stream if set in CanDecreaseResolutionTo Simulcast with one active stream: Use pixels from single active stream if set (instead of input stream which could be larger) to avoid going below the min_pixel_per_frame limit when downgrading resolution. Bug: none Change-Id: I65acb12cc53e46f726ccb5bfab8ce08ff0c4cf78 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208101 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33309} 5 年前
Use pixels from single active stream if set in CanDecreaseResolutionTo Simulcast with one active stream: Use pixels from single active stream if set (instead of input stream which could be larger) to avoid going below the min_pixel_per_frame limit when downgrading resolution. Bug: none Change-Id: I65acb12cc53e46f726ccb5bfab8ce08ff0c4cf78 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208101 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33309} 5 年前
Use pixels from single active stream if set in CanDecreaseResolutionTo Simulcast with one active stream: Use pixels from single active stream if set (instead of input stream which could be larger) to avoid going below the min_pixel_per_frame limit when downgrading resolution. Bug: none Change-Id: I65acb12cc53e46f726ccb5bfab8ce08ff0c4cf78 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208101 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33309} 5 年前
Move VideoEncoderConfig from api/ into video/config This cl move VideoEncoderConfig from api/ to video/config. VideoStreamEncoderInterface and VideoStreamEncoderObserver are moved as collateral. brandt@ think that the reason these were in api/ in the first place had to downstream project. Functionality wise, this is a NOP, but it makes it easier to modify the encoder (config). Bug: webrtc:14451 Change-Id: I2610d815aeb186298498e7102cac773ecac8cd36 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277002 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38242} 3 年前
Use pixels from single active stream if set in CanDecreaseResolutionTo Simulcast with one active stream: Use pixels from single active stream if set (instead of input stream which could be larger) to avoid going below the min_pixel_per_frame limit when downgrading resolution. Bug: none Change-Id: I65acb12cc53e46f726ccb5bfab8ce08ff0c4cf78 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208101 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33309} 5 年前