Don't poll EncoderInfo from encoder twice per frame
Bug: webrtc:9890 Change-Id: Id4c2062a1c0c6be699f2096b4c0b334c98f3c4ba Reviewed-on: https://webrtc-review.googlesource.com/c/111083 Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Mirta Dvornicic <mirtad@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25672}
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/types/optional.h"
|
||||
#include "modules/video_coding/decoder_database.h"
|
||||
#include "modules/video_coding/encoder_database.h"
|
||||
#include "modules/video_coding/frame_buffer.h"
|
||||
@ -93,7 +94,8 @@ class VideoSender {
|
||||
VideoBitrateAllocationObserver* bitrate_updated_callback);
|
||||
|
||||
int32_t AddVideoFrame(const VideoFrame& videoFrame,
|
||||
const CodecSpecificInfo* codecSpecificInfo);
|
||||
const CodecSpecificInfo* codecSpecificInfo,
|
||||
absl::optional<VideoEncoder::EncoderInfo> encoder_info);
|
||||
|
||||
int32_t IntraFrameRequest(size_t stream_index);
|
||||
int32_t EnableFrameDropper(bool enable);
|
||||
|
Reference in New Issue
Block a user