video_rate_control.cc 665 B

1234567891011121314151617181920
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "media/gpu/video_rate_control.h"
  5. #include "third_party/libvpx/source/libvpx/vp9/ratectrl_rtc.h"
  6. namespace media {
  7. // Template method specialization for VP9.
  8. // TODO(mcasas): Remove when VP8 also has a GetLoopfilterLevel() method.
  9. template <>
  10. int VideoRateControl<libvpx::VP9RateControlRtcConfig,
  11. libvpx::VP9RateControlRTC,
  12. libvpx::VP9FrameParamsQpRTC>::GetLoopfilterLevel() const {
  13. return impl_->GetLoopfilterLevel();
  14. }
  15. } // namespace media