Replace rtc::Optional with absl::optional in audio, call and video
This is a no-op change because rtc::Optional is an alias to absl::optional
This CL generated by running script with parameters 'audio call video':
#!/bin/bash
find $@ -type f \( -name \*.h -o -name \*.cc \) \
-exec sed -i 's|rtc::Optional|absl::optional|g' {} \+ \
-exec sed -i 's|rtc::nullopt|absl::nullopt|g' {} \+ \
-exec sed -i 's|#include "api/optional.h"|#include "absl/types/optional.h"|' {} \+
find $@ -type f -name BUILD.gn \
-exec sed -r -i 's|"(../)*api:optional"|"//third_party/abseil-cpp/absl/types:optional"|' {} \+;
git cl format
Bug: webrtc:9078
Change-Id: I02c5db956846a88a268a300ba086703a02d62e36
Reviewed-on: https://webrtc-review.googlesource.com/83722
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23628}
This commit is contained in:
committed by
Commit Bot
parent
e61d72b37c
commit
b9b146c9fe
@ -232,21 +232,21 @@ VideoStreamDecoderImpl::GetFrameTimestamps(int64_t timestamp) {
|
||||
|
||||
// VideoDecoder::DecodedImageCallback
|
||||
int32_t VideoStreamDecoderImpl::Decoded(VideoFrame& decoded_image) {
|
||||
Decoded(decoded_image, rtc::nullopt, rtc::nullopt);
|
||||
Decoded(decoded_image, absl::nullopt, absl::nullopt);
|
||||
return WEBRTC_VIDEO_CODEC_OK;
|
||||
}
|
||||
|
||||
// VideoDecoder::DecodedImageCallback
|
||||
int32_t VideoStreamDecoderImpl::Decoded(VideoFrame& decoded_image,
|
||||
int64_t decode_time_ms) {
|
||||
Decoded(decoded_image, decode_time_ms, rtc::nullopt);
|
||||
Decoded(decoded_image, decode_time_ms, absl::nullopt);
|
||||
return WEBRTC_VIDEO_CODEC_OK;
|
||||
}
|
||||
|
||||
// VideoDecoder::DecodedImageCallback
|
||||
void VideoStreamDecoderImpl::Decoded(VideoFrame& decoded_image,
|
||||
rtc::Optional<int32_t> decode_time_ms,
|
||||
rtc::Optional<uint8_t> qp) {
|
||||
absl::optional<int32_t> decode_time_ms,
|
||||
absl::optional<uint8_t> qp) {
|
||||
int64_t decode_stop_time_ms = rtc::TimeMillis();
|
||||
|
||||
bookkeeping_queue_.PostTask([this, decode_stop_time_ms, decoded_image,
|
||||
@ -261,11 +261,11 @@ void VideoStreamDecoderImpl::Decoded(VideoFrame& decoded_image,
|
||||
return;
|
||||
}
|
||||
|
||||
rtc::Optional<int> casted_qp;
|
||||
absl::optional<int> casted_qp;
|
||||
if (qp)
|
||||
casted_qp.emplace(*qp);
|
||||
|
||||
rtc::Optional<int> casted_decode_time_ms(decode_time_ms.value_or(
|
||||
absl::optional<int> casted_decode_time_ms(decode_time_ms.value_or(
|
||||
decode_stop_time_ms - frame_timestamps->decode_start_time_ms));
|
||||
|
||||
timing_.StopDecodeTimer(0, *casted_decode_time_ms, decode_stop_time_ms,
|
||||
|
||||
Reference in New Issue
Block a user