class VideoBitrateAllocation
Defined at line 20 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
Class that describes how video bitrate, in bps, is allocated across temporal
and spatial layers. Note that bitrates are NOT cumulative. Depending on if
layers are dependent or not, it is up to the user to aggregate.
Public Members
static const size_t kMaxSpatialLayers
static const size_t kMaxTemporalLayers
Public Methods
void ~VideoBitrateAllocation ()
Defined at line 27 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
void VideoBitrateAllocation (Bitrate::Mode mode)
Defined at line 35 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
bool SetBitrate (size_t spatial_index, size_t temporal_index, int32_t bitrate_bps)
Deleted variants: you must SAFELY convert to uint32_t before calling.
See base/numerics/safe_conversions.h for functions to safely convert
between types.
Defined at line 42 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
bool SetBitrate (size_t spatial_index, size_t temporal_index, int64_t bitrate_bps)
Defined at line 45 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
bool SetBitrate (size_t spatial_index, size_t temporal_index, uint64_t bitrate_bps)
Defined at line 48 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
bool SetBitrate (size_t spatial_index, size_t temporal_index, uint32_t bitrate_bps)
Returns true iff. the bitrate was set (sum within uint32_t max value). If
a variable bitrate is used and the previous peak bitrate was below the new
sum of bitrates across layers, this will automatically set the new peak to
equal the new sum. If you have a signed or 64-bit value you want to use as
input, you must explicitly convert to uint32_t before calling. This is
intended to prevent implicit and unsafe type conversion.
Defined at line 63 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
bool SetPeakBps (uint32_t peak_bps)
True iff. this bitrate allocation can have its peak set to |peak_bps| (the
peak must be greater than the sum of the layers' bitrates, and the bitrate
mode must be variable bitrate).
Defined at line 48 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
bool operator!= (const VideoBitrateAllocation & other)
Defined at line 70 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
uint32_t GetBitrateBps (size_t spatial_index, size_t temporal_index)
Returns the bitrate for specified spatial/temporal index, or 0 if not set.
Defined at line 85 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
uint32_t GetSumBps ()
Sum of all bitrates.
Defined at line 92 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
const Bitrate GetSumBitrate ()
Non-layered bitrate allocation. If there are layers, this bitrate's target
bps equals the sum of the layers' bitrates.
Defined at line 96 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
std::string ToString ()
Defined at line 100 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
bool operator== (const VideoBitrateAllocation & other)
Defined at line 149 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc