Avoid extra EncodedFrame copy in RunPostEncode
All uses of encoded_image are const, except for the copy for running on the encoder_queue_. Bug: None Change-Id: I7fc8cb46f6afb42a2d27961d3d3ff8d9e63fe1b5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166442 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Evan Shrubsole <eshr@google.com> Cr-Commit-Position: refs/heads/master@{#30351}
This commit is contained in:

committed by
Commit Bot

parent
3986fa8c7e
commit
2bc91e8c6a
@ -1761,7 +1761,7 @@ void VideoStreamEncoder::OnVideoSourceRestrictionsUpdated(
|
||||
video_source_sink_controller_->PushSourceSinkSettings();
|
||||
}
|
||||
|
||||
void VideoStreamEncoder::RunPostEncode(EncodedImage encoded_image,
|
||||
void VideoStreamEncoder::RunPostEncode(const EncodedImage& encoded_image,
|
||||
int64_t time_sent_us,
|
||||
int temporal_index,
|
||||
DataSize frame_size) {
|
||||
|
@ -195,7 +195,7 @@ class VideoStreamEncoder : public VideoStreamEncoderInterface,
|
||||
void SetEncoderRates(const EncoderRateSettings& rate_settings)
|
||||
RTC_RUN_ON(&encoder_queue_);
|
||||
|
||||
void RunPostEncode(EncodedImage encoded_image,
|
||||
void RunPostEncode(const EncodedImage& encoded_image,
|
||||
int64_t time_sent_us,
|
||||
int temporal_index,
|
||||
DataSize frame_size);
|
||||
|
Reference in New Issue
Block a user