#include "media/cast/sender/video_bitrate_suggester.h"
#include <algorithm>
#include <limits>
#include <memory>
#include <utility>
#include <vector>
#include "base/feature_list.h"
#include "base/logging.h"
#include "media/base/media_switches.h"
#include "media/cast/common/openscreen_conversion_helpers.h"
#include "media/cast/common/sender_encoded_frame.h"
#include "media/cast/constants.h"
namespace media::cast {
VideoBitrateSuggester::VideoBitrateSuggester(
const FrameSenderConfig& config,
FrameSender::GetSuggestedVideoBitrateCB get_bitrate_cb)
: … { … }
VideoBitrateSuggester::~VideoBitrateSuggester() = default;
int VideoBitrateSuggester::GetSuggestedBitrate() { … }
void VideoBitrateSuggester::RecordShouldDropNextFrame(bool should_drop) { … }
void VideoBitrateSuggester::UpdateSuggestionUsingExponentialAlgorithm() { … }
void VideoBitrateSuggester::UpdateSuggestionUsingLinearAlgorithm() { … }
}