Use std::make_unique instead of absl::make_unique.
WebRTC is now using C++14 so there is no need to use the Abseil version of std::make_unique. This CL has been created with the following steps: git grep -l absl::make_unique | sort | uniq > /tmp/make_unique.txt git grep -l absl::WrapUnique | sort | uniq > /tmp/wrap_unique.txt git grep -l "#include <memory>" | sort | uniq > /tmp/memory.txt diff --new-line-format="" --unchanged-line-format="" \ /tmp/make_unique.txt /tmp/wrap_unique.txt | sort | \ uniq > /tmp/only_make_unique.txt diff --new-line-format="" --unchanged-line-format="" \ /tmp/only_make_unique.txt /tmp/memory.txt | \ xargs grep -l "absl/memory" > /tmp/add-memory.txt git grep -l "\babsl::make_unique\b" | \ xargs sed -i "s/\babsl::make_unique\b/std::make_unique/g" git checkout PRESUBMIT.py abseil-in-webrtc.md cat /tmp/add-memory.txt | \ xargs sed -i \ 's/#include "absl\/memory\/memory.h"/#include <memory>/g' git cl format # Manual fix order of the new inserted #include <memory> cat /tmp/only_make_unique | xargs grep -l "#include <memory>" | \ xargs sed -i '/#include "absl\/memory\/memory.h"/d' git ls-files | grep BUILD.gn | \ xargs sed -i '/\/\/third_party\/abseil-cpp\/absl\/memory/d' python tools_webrtc/gn_check_autofix.py \ -m tryserver.webrtc -b linux_rel # Repead the gn_check_autofix step for other platforms git ls-files | grep BUILD.gn | \ xargs sed -i 's/absl\/memory:memory/absl\/memory/g' git cl format Bug: webrtc:10945 Change-Id: I3fe28ea80f4dd3ba3cf28effd151d5e1f19aff89 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/153221 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29209}
This commit is contained in:
committed by
Commit Bot
parent
809198edff
commit
317a1f09ed
@ -337,7 +337,6 @@ rtc_static_library("webrtc_h264") {
|
||||
"../../rtc_base/system:rtc_export",
|
||||
"../../system_wrappers:field_trial",
|
||||
"../../system_wrappers:metrics",
|
||||
"//third_party/abseil-cpp/absl/memory",
|
||||
"//third_party/abseil-cpp/absl/strings",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
"//third_party/libyuv",
|
||||
@ -423,7 +422,6 @@ rtc_static_library("webrtc_vp8") {
|
||||
"../../rtc_base/experiments:rate_control_settings",
|
||||
"../../system_wrappers:field_trial",
|
||||
"../../system_wrappers:metrics",
|
||||
"//third_party/abseil-cpp/absl/memory",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
"//third_party/libyuv",
|
||||
]
|
||||
@ -457,7 +455,6 @@ rtc_static_library("webrtc_vp8_temporal_layers") {
|
||||
"../../rtc_base:rtc_numerics",
|
||||
"../../system_wrappers:field_trial",
|
||||
"../../system_wrappers:metrics",
|
||||
"//third_party/abseil-cpp/absl/memory",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
]
|
||||
}
|
||||
@ -593,7 +590,6 @@ if (rtc_include_tests) {
|
||||
"../../rtc_base:checks",
|
||||
"../../rtc_base:rtc_base_approved",
|
||||
"../../test:test_support",
|
||||
"//third_party/abseil-cpp/absl/memory",
|
||||
]
|
||||
}
|
||||
|
||||
@ -636,7 +632,6 @@ if (rtc_include_tests) {
|
||||
"../../test:video_test_common",
|
||||
"../../test:video_test_support",
|
||||
"../rtp_rtcp:rtp_rtcp_format",
|
||||
"//third_party/abseil-cpp/absl/memory",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
"//third_party/libyuv",
|
||||
]
|
||||
@ -712,7 +707,6 @@ if (rtc_include_tests) {
|
||||
"../../test:test_support",
|
||||
"../../test:video_test_common",
|
||||
"../../test:video_test_support",
|
||||
"//third_party/abseil-cpp/absl/memory",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
]
|
||||
}
|
||||
@ -787,7 +781,6 @@ if (rtc_include_tests) {
|
||||
"../../test:test_support",
|
||||
"../../test:video_test_common",
|
||||
"../rtp_rtcp:rtp_rtcp_format",
|
||||
"//third_party/abseil-cpp/absl/memory",
|
||||
"//third_party/abseil-cpp/absl/types:optional",
|
||||
"//third_party/libyuv",
|
||||
]
|
||||
|
||||
@ -11,9 +11,9 @@
|
||||
|
||||
#include "modules/video_coding/codecs/h264/include/h264.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "api/video_codecs/sdp_video_format.h"
|
||||
#include "media/base/h264_profile_level_id.h"
|
||||
@ -91,7 +91,7 @@ std::unique_ptr<H264Encoder> H264Encoder::Create(
|
||||
#if defined(WEBRTC_USE_H264)
|
||||
RTC_CHECK(g_rtc_use_h264);
|
||||
RTC_LOG(LS_INFO) << "Creating H264EncoderImpl.";
|
||||
return absl::make_unique<H264EncoderImpl>(codec);
|
||||
return std::make_unique<H264EncoderImpl>(codec);
|
||||
#else
|
||||
RTC_NOTREACHED();
|
||||
return nullptr;
|
||||
@ -107,7 +107,7 @@ std::unique_ptr<H264Decoder> H264Decoder::Create() {
|
||||
#if defined(WEBRTC_USE_H264)
|
||||
RTC_CHECK(g_rtc_use_h264);
|
||||
RTC_LOG(LS_INFO) << "Creating H264DecoderImpl.";
|
||||
return absl::make_unique<H264DecoderImpl>();
|
||||
return std::make_unique<H264DecoderImpl>();
|
||||
#else
|
||||
RTC_NOTREACHED();
|
||||
return nullptr;
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
|
||||
extern "C" {
|
||||
#include "third_party/ffmpeg/libavcodec/avcodec.h"
|
||||
@ -25,7 +26,6 @@ extern "C" {
|
||||
#include "third_party/ffmpeg/libavutil/imgutils.h"
|
||||
} // extern "C"
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/video/color_space.h"
|
||||
#include "api/video/i010_buffer.h"
|
||||
#include "api/video/i420_buffer.h"
|
||||
@ -130,13 +130,13 @@ int H264DecoderImpl::AVGetBuffer2(AVCodecContext* context,
|
||||
// Refactor to do not use a VideoFrame object at all.
|
||||
av_frame->buf[0] = av_buffer_create(
|
||||
av_frame->data[kYPlaneIndex], total_size, AVFreeBuffer2,
|
||||
static_cast<void*>(absl::make_unique<VideoFrame>(
|
||||
VideoFrame::Builder()
|
||||
.set_video_frame_buffer(frame_buffer)
|
||||
.set_rotation(kVideoRotation_0)
|
||||
.set_timestamp_us(0)
|
||||
.build())
|
||||
.release()),
|
||||
static_cast<void*>(
|
||||
std::make_unique<VideoFrame>(VideoFrame::Builder()
|
||||
.set_video_frame_buffer(frame_buffer)
|
||||
.set_rotation(kVideoRotation_0)
|
||||
.set_timestamp_us(0)
|
||||
.build())
|
||||
.release()),
|
||||
0);
|
||||
RTC_CHECK(av_frame->buf[0]);
|
||||
return 0;
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/test/create_simulcast_test_fixture.h"
|
||||
#include "api/test/simulcast_test_fixture.h"
|
||||
#include "api/test/video/function_video_decoder_factory.h"
|
||||
@ -24,10 +23,10 @@ namespace test {
|
||||
namespace {
|
||||
std::unique_ptr<SimulcastTestFixture> CreateSpecificSimulcastTestFixture() {
|
||||
std::unique_ptr<VideoEncoderFactory> encoder_factory =
|
||||
absl::make_unique<FunctionVideoEncoderFactory>(
|
||||
std::make_unique<FunctionVideoEncoderFactory>(
|
||||
[]() { return H264Encoder::Create(cricket::VideoCodec("H264")); });
|
||||
std::unique_ptr<VideoDecoderFactory> decoder_factory =
|
||||
absl::make_unique<FunctionVideoDecoderFactory>(
|
||||
std::make_unique<FunctionVideoDecoderFactory>(
|
||||
[]() { return H264Decoder::Create(); });
|
||||
return CreateSimulcastTestFixture(std::move(encoder_factory),
|
||||
std::move(decoder_factory),
|
||||
|
||||
@ -15,7 +15,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "api/scoped_refptr.h"
|
||||
#include "api/test/mock_video_decoder_factory.h"
|
||||
@ -65,13 +64,13 @@ class TestMultiplexAdapter : public VideoCodecUnitTest,
|
||||
|
||||
protected:
|
||||
std::unique_ptr<VideoDecoder> CreateDecoder() override {
|
||||
return absl::make_unique<MultiplexDecoderAdapter>(
|
||||
return std::make_unique<MultiplexDecoderAdapter>(
|
||||
decoder_factory_.get(), SdpVideoFormat(kMultiplexAssociatedCodecName),
|
||||
supports_augmenting_data_);
|
||||
}
|
||||
|
||||
std::unique_ptr<VideoEncoder> CreateEncoder() override {
|
||||
return absl::make_unique<MultiplexEncoderAdapter>(
|
||||
return std::make_unique<MultiplexEncoderAdapter>(
|
||||
encoder_factory_.get(), SdpVideoFormat(kMultiplexAssociatedCodecName),
|
||||
supports_augmenting_data_);
|
||||
}
|
||||
@ -95,7 +94,7 @@ class TestMultiplexAdapter : public VideoCodecUnitTest,
|
||||
rtc::scoped_refptr<AugmentedVideoFrameBuffer> augmented_video_frame_buffer =
|
||||
new rtc::RefCountedObject<AugmentedVideoFrameBuffer>(
|
||||
video_buffer, std::move(data), 16);
|
||||
return absl::make_unique<VideoFrame>(
|
||||
return std::make_unique<VideoFrame>(
|
||||
VideoFrame::Builder()
|
||||
.set_video_frame_buffer(augmented_video_frame_buffer)
|
||||
.set_timestamp_rtp(video_frame->timestamp())
|
||||
@ -114,13 +113,12 @@ class TestMultiplexAdapter : public VideoCodecUnitTest,
|
||||
yuv_buffer->StrideY(), yuv_buffer->DataU(), yuv_buffer->StrideU(),
|
||||
yuv_buffer->DataV(), yuv_buffer->StrideV(), yuv_buffer->DataY(),
|
||||
yuv_buffer->StrideY(), rtc::KeepRefUntilDone(yuv_buffer));
|
||||
return absl::make_unique<VideoFrame>(
|
||||
VideoFrame::Builder()
|
||||
.set_video_frame_buffer(yuva_buffer)
|
||||
.set_timestamp_rtp(123)
|
||||
.set_timestamp_ms(345)
|
||||
.set_rotation(kVideoRotation_0)
|
||||
.build());
|
||||
return std::make_unique<VideoFrame>(VideoFrame::Builder()
|
||||
.set_video_frame_buffer(yuva_buffer)
|
||||
.set_timestamp_rtp(123)
|
||||
.set_timestamp_ms(345)
|
||||
.set_rotation(kVideoRotation_0)
|
||||
.build());
|
||||
}
|
||||
|
||||
std::unique_ptr<VideoFrame> CreateInputFrame(bool contains_alpha) {
|
||||
@ -129,7 +127,7 @@ class TestMultiplexAdapter : public VideoCodecUnitTest,
|
||||
video_frame = CreateI420AInputFrame();
|
||||
} else {
|
||||
VideoFrame* next_frame = NextInputFrame();
|
||||
video_frame = absl::make_unique<VideoFrame>(
|
||||
video_frame = std::make_unique<VideoFrame>(
|
||||
VideoFrame::Builder()
|
||||
.set_video_frame_buffer(next_frame->video_frame_buffer())
|
||||
.set_timestamp_rtp(next_frame->timestamp())
|
||||
@ -172,12 +170,12 @@ class TestMultiplexAdapter : public VideoCodecUnitTest,
|
||||
yuva_buffer->StrideA(), yuva_buffer->DataU(), yuva_buffer->StrideU(),
|
||||
yuva_buffer->DataV(), yuva_buffer->StrideV(),
|
||||
rtc::KeepRefUntilDone(video_frame_buffer));
|
||||
return absl::make_unique<VideoFrame>(VideoFrame::Builder()
|
||||
.set_video_frame_buffer(axx_buffer)
|
||||
.set_timestamp_rtp(123)
|
||||
.set_timestamp_ms(345)
|
||||
.set_rotation(kVideoRotation_0)
|
||||
.build());
|
||||
return std::make_unique<VideoFrame>(VideoFrame::Builder()
|
||||
.set_video_frame_buffer(axx_buffer)
|
||||
.set_timestamp_rtp(123)
|
||||
.set_timestamp_ms(345)
|
||||
.set_rotation(kVideoRotation_0)
|
||||
.build());
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@ -20,7 +20,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "api/array_view.h"
|
||||
#include "api/video/video_bitrate_allocation.h"
|
||||
@ -379,8 +378,8 @@ class VideoCodecTestFixtureImpl::CpuProcessTime final {
|
||||
};
|
||||
|
||||
VideoCodecTestFixtureImpl::VideoCodecTestFixtureImpl(Config config)
|
||||
: encoder_factory_(absl::make_unique<InternalEncoderFactory>()),
|
||||
decoder_factory_(absl::make_unique<InternalDecoderFactory>()),
|
||||
: encoder_factory_(std::make_unique<InternalEncoderFactory>()),
|
||||
decoder_factory_(std::make_unique<InternalDecoderFactory>()),
|
||||
config_(config) {}
|
||||
|
||||
VideoCodecTestFixtureImpl::VideoCodecTestFixtureImpl(
|
||||
@ -689,7 +688,7 @@ void VideoCodecTestFixtureImpl::SetUpAndInitObjects(
|
||||
|
||||
task_queue->SendTask([this]() {
|
||||
CreateEncoderAndDecoder();
|
||||
processor_ = absl::make_unique<VideoProcessor>(
|
||||
processor_ = std::make_unique<VideoProcessor>(
|
||||
encoder_.get(), &decoders_, source_frame_reader_.get(), config_,
|
||||
&stats_, &encoded_frame_writers_,
|
||||
decoded_frame_writers_.empty() ? nullptr : &decoded_frame_writers_);
|
||||
|
||||
@ -8,9 +8,9 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/test/create_videocodec_test_fixture.h"
|
||||
#include "api/test/video/function_video_encoder_factory.h"
|
||||
#include "api/video_codecs/sdp_video_format.h"
|
||||
@ -94,7 +94,7 @@ TEST(VideoCodecTestLibvpx, HighBitrateVP9) {
|
||||
config.SetCodecSettings(cricket::kVp9CodecName, 1, 1, 1, false, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
config.num_frames = kNumFramesShort;
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -112,7 +112,7 @@ TEST(VideoCodecTestLibvpx, ChangeBitrateVP9) {
|
||||
auto config = CreateConfig();
|
||||
config.SetCodecSettings(cricket::kVp9CodecName, 1, 1, 1, false, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -136,7 +136,7 @@ TEST(VideoCodecTestLibvpx, ChangeFramerateVP9) {
|
||||
auto config = CreateConfig();
|
||||
config.SetCodecSettings(cricket::kVp9CodecName, 1, 1, 1, false, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -163,7 +163,7 @@ TEST(VideoCodecTestLibvpx, DenoiserOnVP9) {
|
||||
config.SetCodecSettings(cricket::kVp9CodecName, 1, 1, 1, true, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
config.num_frames = kNumFramesShort;
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -181,7 +181,7 @@ TEST(VideoCodecTestLibvpx, VeryLowBitrateVP9) {
|
||||
auto config = CreateConfig();
|
||||
config.SetCodecSettings(cricket::kVp9CodecName, 1, 1, 1, false, true, true,
|
||||
kCifWidth, kCifHeight);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -205,7 +205,7 @@ TEST(VideoCodecTestLibvpx, HighBitrateVP8) {
|
||||
config.SetCodecSettings(cricket::kVp8CodecName, 1, 1, 1, true, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
config.num_frames = kNumFramesShort;
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -241,7 +241,7 @@ TEST(VideoCodecTestLibvpx, MAYBE_ChangeBitrateVP8) {
|
||||
auto config = CreateConfig();
|
||||
config.SetCodecSettings(cricket::kVp8CodecName, 1, 1, 1, true, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -275,7 +275,7 @@ TEST(VideoCodecTestLibvpx, MAYBE_ChangeFramerateVP8) {
|
||||
auto config = CreateConfig();
|
||||
config.SetCodecSettings(cricket::kVp8CodecName, 1, 1, 1, true, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -315,7 +315,7 @@ TEST(VideoCodecTestLibvpx, MAYBE_TemporalLayersVP8) {
|
||||
auto config = CreateConfig();
|
||||
config.SetCodecSettings(cricket::kVp8CodecName, 1, 1, 3, true, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -351,7 +351,7 @@ TEST(VideoCodecTestLibvpx, MAYBE_MultiresVP8) {
|
||||
config.num_frames = 100;
|
||||
config.SetCodecSettings(cricket::kVp8CodecName, 3, 1, 3, true, true, false,
|
||||
1280, 720);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -380,13 +380,13 @@ TEST(VideoCodecTestLibvpx, MAYBE_SimulcastVP8) {
|
||||
config.num_frames = 100;
|
||||
config.SetCodecSettings(cricket::kVp8CodecName, 3, 1, 3, true, true, false,
|
||||
1280, 720);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
|
||||
InternalEncoderFactory internal_encoder_factory;
|
||||
std::unique_ptr<VideoEncoderFactory> adapted_encoder_factory =
|
||||
absl::make_unique<FunctionVideoEncoderFactory>([&]() {
|
||||
return absl::make_unique<SimulcastEncoderAdapter>(
|
||||
std::make_unique<FunctionVideoEncoderFactory>([&]() {
|
||||
return std::make_unique<SimulcastEncoderAdapter>(
|
||||
&internal_encoder_factory, SdpVideoFormat(cricket::kVp8CodecName));
|
||||
});
|
||||
std::unique_ptr<InternalDecoderFactory> internal_decoder_factory(
|
||||
@ -417,7 +417,7 @@ TEST(VideoCodecTestLibvpx, MAYBE_SvcVP9) {
|
||||
config.num_frames = 100;
|
||||
config.SetCodecSettings(cricket::kVp9CodecName, 1, 3, 3, true, true, false,
|
||||
1280, 720);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -438,7 +438,7 @@ TEST(VideoCodecTestLibvpx, DISABLED_MultiresVP8RdPerf) {
|
||||
config.print_frame_level_stats = true;
|
||||
config.SetCodecSettings(cricket::kVp8CodecName, 3, 1, 3, true, true, false,
|
||||
1280, 720);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
@ -464,7 +464,7 @@ TEST(VideoCodecTestLibvpx, DISABLED_SvcVP9RdPerf) {
|
||||
config.print_frame_level_stats = true;
|
||||
config.SetCodecSettings(cricket::kVp9CodecName, 1, 3, 3, true, true, false,
|
||||
1280, 720);
|
||||
const auto frame_checker = absl::make_unique<QpFrameChecker>();
|
||||
const auto frame_checker = std::make_unique<QpFrameChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
auto fixture = CreateVideoCodecTestFixture(config);
|
||||
|
||||
|
||||
@ -8,11 +8,11 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/test/create_videocodec_test_fixture.h"
|
||||
#include "media/base/media_constants.h"
|
||||
#include "modules/video_coding/codecs/test/android_codec_factory_helper.h"
|
||||
@ -69,7 +69,7 @@ TEST(VideoCodecTestMediaCodec, ForemanCif500kbpsVp8) {
|
||||
TEST(VideoCodecTestMediaCodec, ForemanCif500kbpsH264CBP) {
|
||||
auto config = CreateConfig();
|
||||
const auto frame_checker =
|
||||
absl::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
std::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
config.SetCodecSettings(cricket::kH264CodecName, 1, 1, 1, false, false, false,
|
||||
352, 288);
|
||||
@ -93,7 +93,7 @@ TEST(VideoCodecTestMediaCodec, ForemanCif500kbpsH264CBP) {
|
||||
TEST(VideoCodecTestMediaCodec, DISABLED_ForemanCif500kbpsH264CHP) {
|
||||
auto config = CreateConfig();
|
||||
const auto frame_checker =
|
||||
absl::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
std::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
|
||||
config.h264_codec_settings.profile = H264::kProfileConstrainedHigh;
|
||||
config.encoded_frame_checker = frame_checker.get();
|
||||
|
||||
@ -8,9 +8,9 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/test/create_videocodec_test_fixture.h"
|
||||
#include "media/base/media_constants.h"
|
||||
#include "modules/video_coding/codecs/test/videocodec_test_fixture_impl.h"
|
||||
@ -39,7 +39,7 @@ VideoCodecTestFixture::Config CreateConfig() {
|
||||
|
||||
TEST(VideoCodecTestOpenH264, ConstantHighBitrate) {
|
||||
auto frame_checker =
|
||||
absl::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
std::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
auto config = CreateConfig();
|
||||
config.SetCodecSettings(cricket::kH264CodecName, 1, 1, 1, false, true, false,
|
||||
kCifWidth, kCifHeight);
|
||||
@ -60,7 +60,7 @@ TEST(VideoCodecTestOpenH264, ConstantHighBitrate) {
|
||||
// large frames into multiple slices and limit length of NAL units.
|
||||
TEST(VideoCodecTestOpenH264, SingleNalUnit) {
|
||||
auto frame_checker =
|
||||
absl::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
std::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
auto config = CreateConfig();
|
||||
config.h264_codec_settings.packetization_mode =
|
||||
H264PacketizationMode::SingleNalUnit;
|
||||
|
||||
@ -8,9 +8,9 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/test/create_videocodec_test_fixture.h"
|
||||
#include "media/base/media_constants.h"
|
||||
#include "modules/video_coding/codecs/test/objc_codec_factory_helper.h"
|
||||
@ -53,7 +53,7 @@ std::unique_ptr<VideoCodecTestFixture> CreateTestFixtureWithConfig(
|
||||
// longer in use.
|
||||
MAYBE_TEST(VideoCodecTestVideoToolbox, ForemanCif500kbpsH264CBP) {
|
||||
const auto frame_checker =
|
||||
absl::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
std::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
auto config = CreateConfig();
|
||||
config.SetCodecSettings(cricket::kH264CodecName, 1, 1, 1, false, false, false,
|
||||
352, 288);
|
||||
@ -69,7 +69,7 @@ MAYBE_TEST(VideoCodecTestVideoToolbox, ForemanCif500kbpsH264CBP) {
|
||||
|
||||
MAYBE_TEST(VideoCodecTestVideoToolbox, ForemanCif500kbpsH264CHP) {
|
||||
const auto frame_checker =
|
||||
absl::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
std::make_unique<VideoCodecTestFixtureImpl::H264KeyframeChecker>();
|
||||
auto config = CreateConfig();
|
||||
config.h264_codec_settings.profile = H264::kProfileConstrainedHigh;
|
||||
config.SetCodecSettings(cricket::kH264CodecName, 1, 1, 1, false, false, false,
|
||||
|
||||
@ -15,9 +15,9 @@
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/scoped_refptr.h"
|
||||
#include "api/video/builtin_video_bitrate_allocator_factory.h"
|
||||
#include "api/video/i420_buffer.h"
|
||||
@ -220,7 +220,7 @@ VideoProcessor::VideoProcessor(webrtc::VideoEncoder* encoder,
|
||||
|
||||
for (size_t i = 0; i < num_simulcast_or_spatial_layers_; ++i) {
|
||||
decode_callback_.push_back(
|
||||
absl::make_unique<VideoProcessorDecodeCompleteCallback>(this, i));
|
||||
std::make_unique<VideoProcessorDecodeCompleteCallback>(this, i));
|
||||
RTC_CHECK_EQ(
|
||||
decoders_->at(i)->InitDecode(&config_.codec_settings,
|
||||
static_cast<int>(config_.NumberOfCores())),
|
||||
|
||||
@ -19,7 +19,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "api/task_queue/queued_task.h"
|
||||
#include "api/task_queue/task_queue_base.h"
|
||||
@ -98,7 +97,7 @@ class VideoProcessor {
|
||||
|
||||
// Post the callback to the right task queue, if needed.
|
||||
if (!task_queue_->IsCurrent()) {
|
||||
task_queue_->PostTask(absl::make_unique<EncodeCallbackTask>(
|
||||
task_queue_->PostTask(std::make_unique<EncodeCallbackTask>(
|
||||
video_processor_, encoded_image, codec_specific_info));
|
||||
return Result(Result::OK, 0);
|
||||
}
|
||||
|
||||
@ -12,7 +12,6 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/scoped_refptr.h"
|
||||
#include "api/test/mock_video_decoder.h"
|
||||
#include "api/test/mock_video_encoder.h"
|
||||
@ -56,7 +55,7 @@ class VideoProcessorTest : public ::testing::Test {
|
||||
EXPECT_CALL(frame_reader_mock_, FrameLength())
|
||||
.WillRepeatedly(Return(kFrameSize));
|
||||
q_.SendTask([this] {
|
||||
video_processor_ = absl::make_unique<VideoProcessor>(
|
||||
video_processor_ = std::make_unique<VideoProcessor>(
|
||||
&encoder_mock_, &decoders_, &frame_reader_mock_, config_, &stats_,
|
||||
&encoded_frame_writers_, /*decoded_frame_writers=*/nullptr);
|
||||
});
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
#include "modules/video_coding/codecs/vp8/default_temporal_layers.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/video/video_bitrate_allocation.h"
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
#include "api/video_codecs/vp8_frame_config.h"
|
||||
@ -114,7 +114,7 @@ class TemporalLayersTest : public ::testing::Test {
|
||||
~TemporalLayersTest() override = default;
|
||||
|
||||
CodecSpecificInfo* IgnoredCodecSpecificInfo() {
|
||||
codec_specific_info_ = absl::make_unique<CodecSpecificInfo>();
|
||||
codec_specific_info_ = std::make_unique<CodecSpecificInfo>();
|
||||
return codec_specific_info_.get();
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
|
||||
#include "modules/video_coding/codecs/vp8/libvpx_interface.h"
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include <memory>
|
||||
|
||||
#include "rtc_base/checks.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -199,7 +200,7 @@ class LibvpxVp8Facade : public LibvpxInterface {
|
||||
} // namespace
|
||||
|
||||
std::unique_ptr<LibvpxInterface> LibvpxInterface::CreateEncoder() {
|
||||
return absl::make_unique<LibvpxVp8Facade>();
|
||||
return std::make_unique<LibvpxVp8Facade>();
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
@ -14,9 +14,9 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "api/scoped_refptr.h"
|
||||
#include "api/video/i420_buffer.h"
|
||||
@ -69,7 +69,7 @@ void GetPostProcParamsFromFieldTrialGroup(
|
||||
} // namespace
|
||||
|
||||
std::unique_ptr<VideoDecoder> VP8Decoder::Create() {
|
||||
return absl::make_unique<LibvpxVp8Decoder>();
|
||||
return std::make_unique<LibvpxVp8Decoder>();
|
||||
}
|
||||
|
||||
class LibvpxVp8Decoder::QpSmoother {
|
||||
|
||||
@ -21,7 +21,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/scoped_refptr.h"
|
||||
#include "api/video/video_content_type.h"
|
||||
#include "api/video/video_frame_buffer.h"
|
||||
@ -229,7 +228,7 @@ std::unique_ptr<VideoEncoder> VP8Encoder::Create() {
|
||||
std::unique_ptr<VideoEncoder> VP8Encoder::Create(
|
||||
std::unique_ptr<Vp8FrameBufferControllerFactory>
|
||||
frame_buffer_controller_factory) {
|
||||
return absl::make_unique<LibvpxVp8Encoder>(
|
||||
return std::make_unique<LibvpxVp8Encoder>(
|
||||
std::move(frame_buffer_controller_factory));
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/test/create_simulcast_test_fixture.h"
|
||||
#include "api/test/simulcast_test_fixture.h"
|
||||
#include "api/test/video/function_video_decoder_factory.h"
|
||||
@ -24,10 +23,10 @@ namespace test {
|
||||
namespace {
|
||||
std::unique_ptr<SimulcastTestFixture> CreateSpecificSimulcastTestFixture() {
|
||||
std::unique_ptr<VideoEncoderFactory> encoder_factory =
|
||||
absl::make_unique<FunctionVideoEncoderFactory>(
|
||||
std::make_unique<FunctionVideoEncoderFactory>(
|
||||
[]() { return VP8Encoder::Create(); });
|
||||
std::unique_ptr<VideoDecoderFactory> decoder_factory =
|
||||
absl::make_unique<FunctionVideoDecoderFactory>(
|
||||
std::make_unique<FunctionVideoDecoderFactory>(
|
||||
[]() { return VP8Decoder::Create(); });
|
||||
return CreateSimulcastTestFixture(std::move(encoder_factory),
|
||||
std::move(decoder_factory),
|
||||
|
||||
@ -17,7 +17,6 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/video_codecs/vp8_frame_config.h"
|
||||
#include "modules/video_coding/codecs/interface/common_constants.h"
|
||||
#include "modules/video_coding/codecs/vp8/libvpx_vp8_encoder.h"
|
||||
@ -204,7 +203,7 @@ class ScreenshareLayerTest : public ::testing::Test {
|
||||
bool config_updated_;
|
||||
|
||||
CodecSpecificInfo* IgnoredCodecSpecificInfo() {
|
||||
ignored_codec_specific_info_ = absl::make_unique<CodecSpecificInfo>();
|
||||
ignored_codec_specific_info_ = std::make_unique<CodecSpecificInfo>();
|
||||
return ignored_codec_specific_info_.get();
|
||||
}
|
||||
|
||||
@ -218,14 +217,14 @@ TEST_F(ScreenshareLayerTest, 1Layer) {
|
||||
// One layer screenshare should not use the frame dropper as all frames will
|
||||
// belong to the base layer.
|
||||
const int kSingleLayerFlags = 0;
|
||||
auto info = absl::make_unique<CodecSpecificInfo>();
|
||||
auto info = std::make_unique<CodecSpecificInfo>();
|
||||
int flags = EncodeFrame(false, info.get());
|
||||
timestamp_ += kTimestampDelta5Fps;
|
||||
EXPECT_EQ(static_cast<uint8_t>(kNoTemporalIdx),
|
||||
info->codecSpecific.VP8.temporalIdx);
|
||||
EXPECT_FALSE(info->codecSpecific.VP8.layerSync);
|
||||
|
||||
info = absl::make_unique<CodecSpecificInfo>();
|
||||
info = std::make_unique<CodecSpecificInfo>();
|
||||
flags = EncodeFrame(false, info.get());
|
||||
EXPECT_EQ(kSingleLayerFlags, flags);
|
||||
EXPECT_EQ(static_cast<uint8_t>(kNoTemporalIdx),
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
|
||||
#include "modules/video_coding/codecs/vp8/include/temporal_layers_checker.h"
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include <memory>
|
||||
|
||||
#include "modules/video_coding/codecs/interface/common_constants.h"
|
||||
#include "modules/video_coding/codecs/vp8/default_temporal_layers.h"
|
||||
#include "rtc_base/logging.h"
|
||||
@ -22,11 +23,11 @@ TemporalLayersChecker::CreateTemporalLayersChecker(Vp8TemporalLayersType type,
|
||||
int num_temporal_layers) {
|
||||
switch (type) {
|
||||
case Vp8TemporalLayersType::kFixedPattern:
|
||||
return absl::make_unique<DefaultTemporalLayersChecker>(
|
||||
return std::make_unique<DefaultTemporalLayersChecker>(
|
||||
num_temporal_layers);
|
||||
case Vp8TemporalLayersType::kBitrateDynamic:
|
||||
// Conference mode temporal layering for screen content in base stream.
|
||||
return absl::make_unique<TemporalLayersChecker>(num_temporal_layers);
|
||||
return std::make_unique<TemporalLayersChecker>(num_temporal_layers);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
|
||||
#include "modules/video_coding/codecs/vp9/include/vp9.h"
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include <memory>
|
||||
|
||||
#include "api/video_codecs/sdp_video_format.h"
|
||||
#include "modules/video_coding/codecs/vp9/vp9_impl.h"
|
||||
#include "rtc_base/checks.h"
|
||||
@ -46,7 +47,7 @@ std::vector<SdpVideoFormat> SupportedVP9Codecs() {
|
||||
|
||||
std::unique_ptr<VP9Encoder> VP9Encoder::Create() {
|
||||
#ifdef RTC_ENABLE_VP9
|
||||
return absl::make_unique<VP9EncoderImpl>(cricket::VideoCodec());
|
||||
return std::make_unique<VP9EncoderImpl>(cricket::VideoCodec());
|
||||
#else
|
||||
RTC_NOTREACHED();
|
||||
return nullptr;
|
||||
@ -56,7 +57,7 @@ std::unique_ptr<VP9Encoder> VP9Encoder::Create() {
|
||||
std::unique_ptr<VP9Encoder> VP9Encoder::Create(
|
||||
const cricket::VideoCodec& codec) {
|
||||
#ifdef RTC_ENABLE_VP9
|
||||
return absl::make_unique<VP9EncoderImpl>(codec);
|
||||
return std::make_unique<VP9EncoderImpl>(codec);
|
||||
#else
|
||||
RTC_NOTREACHED();
|
||||
return nullptr;
|
||||
@ -65,7 +66,7 @@ std::unique_ptr<VP9Encoder> VP9Encoder::Create(
|
||||
|
||||
std::unique_ptr<VP9Decoder> VP9Decoder::Create() {
|
||||
#ifdef RTC_ENABLE_VP9
|
||||
return absl::make_unique<VP9DecoderImpl>();
|
||||
return std::make_unique<VP9DecoderImpl>();
|
||||
#else
|
||||
RTC_NOTREACHED();
|
||||
return nullptr;
|
||||
|
||||
@ -13,9 +13,9 @@
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "modules/video_coding/frame_object.h"
|
||||
#include "modules/video_coding/jitter_estimator.h"
|
||||
#include "modules/video_coding/timing.h"
|
||||
@ -162,7 +162,7 @@ class TestFrameBuffer2 : public ::testing::Test {
|
||||
std::array<uint16_t, sizeof...(refs)> references = {
|
||||
{rtc::checked_cast<uint16_t>(refs)...}};
|
||||
|
||||
auto frame = absl::make_unique<FrameObjectFake>();
|
||||
auto frame = std::make_unique<FrameObjectFake>();
|
||||
frame->id.picture_id = picture_id;
|
||||
frame->id.spatial_layer = spatial_layer;
|
||||
frame->SetSpatialIndex(spatial_layer);
|
||||
|
||||
@ -12,7 +12,6 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "api/array_view.h"
|
||||
#include "modules/video_coding/jitter_estimator.h"
|
||||
@ -31,7 +30,7 @@ class TestVCMJitterEstimator : public ::testing::Test {
|
||||
TestVCMJitterEstimator() : fake_clock_(0) {}
|
||||
|
||||
virtual void SetUp() {
|
||||
estimator_ = absl::make_unique<VCMJitterEstimator>(&fake_clock_);
|
||||
estimator_ = std::make_unique<VCMJitterEstimator>(&fake_clock_);
|
||||
}
|
||||
|
||||
void AdvanceClock(int64_t microseconds) {
|
||||
|
||||
@ -15,7 +15,6 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/video/encoded_image.h"
|
||||
#include "api/video_codecs/sdp_video_format.h"
|
||||
#include "api/video_codecs/video_encoder.h"
|
||||
@ -288,7 +287,7 @@ void SimulcastTestFixtureImpl::SetUpCodec(const int* temporal_layer_profile) {
|
||||
EXPECT_EQ(0, decoder_->InitDecode(&settings_, 1));
|
||||
input_buffer_ = I420Buffer::Create(kDefaultWidth, kDefaultHeight);
|
||||
input_buffer_->InitializeData();
|
||||
input_frame_ = absl::make_unique<webrtc::VideoFrame>(
|
||||
input_frame_ = std::make_unique<webrtc::VideoFrame>(
|
||||
webrtc::VideoFrame::Builder()
|
||||
.set_video_frame_buffer(input_buffer_)
|
||||
.set_rotation(webrtc::kVideoRotation_0)
|
||||
@ -615,7 +614,7 @@ void SimulcastTestFixtureImpl::SwitchingToOneStream(int width, int height) {
|
||||
input_buffer_ = I420Buffer::Create(settings_.width, settings_.height);
|
||||
input_buffer_->InitializeData();
|
||||
|
||||
input_frame_ = absl::make_unique<webrtc::VideoFrame>(
|
||||
input_frame_ = std::make_unique<webrtc::VideoFrame>(
|
||||
webrtc::VideoFrame::Builder()
|
||||
.set_video_frame_buffer(input_buffer_)
|
||||
.set_rotation(webrtc::kVideoRotation_0)
|
||||
@ -660,7 +659,7 @@ void SimulcastTestFixtureImpl::SwitchingToOneStream(int width, int height) {
|
||||
// Resize |input_frame_| to the new resolution.
|
||||
input_buffer_ = I420Buffer::Create(settings_.width, settings_.height);
|
||||
input_buffer_->InitializeData();
|
||||
input_frame_ = absl::make_unique<webrtc::VideoFrame>(
|
||||
input_frame_ = std::make_unique<webrtc::VideoFrame>(
|
||||
webrtc::VideoFrame::Builder()
|
||||
.set_video_frame_buffer(input_buffer_)
|
||||
.set_rotation(webrtc::kVideoRotation_0)
|
||||
@ -824,7 +823,7 @@ void SimulcastTestFixtureImpl::TestStrideEncodeDecode() {
|
||||
int stride_uv = ((kDefaultWidth + 1) / 2) + 5;
|
||||
input_buffer_ = I420Buffer::Create(kDefaultWidth, kDefaultHeight, stride_y,
|
||||
stride_uv, stride_uv);
|
||||
input_frame_ = absl::make_unique<webrtc::VideoFrame>(
|
||||
input_frame_ = std::make_unique<webrtc::VideoFrame>(
|
||||
webrtc::VideoFrame::Builder()
|
||||
.set_video_frame_buffer(input_buffer_)
|
||||
.set_rotation(webrtc::kVideoRotation_0)
|
||||
|
||||
Reference in New Issue
Block a user