class VideoBitrateAllocation
Defined at line 23 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 30 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
void VideoBitrateAllocation (Bitrate::Mode mode)
Defined at line 39 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
bool SetBitrate (size_tspatial_index,size_ttemporal_index,int32_tbitrate_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 45 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
bool SetBitrate (size_tspatial_index,size_ttemporal_index,int64_tbitrate_bps)
Defined at line 48 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
bool SetBitrate (size_tspatial_index,size_ttemporal_index,uint64_tbitrate_bps)
Defined at line 51 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.h
bool SetBitrate (size_tspatial_index,size_ttemporal_index,uint32_tbitrate_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 72 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 57 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
bool operator!= (const VideoBitrateAllocation & other)
Defined at line 78 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 94 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
uint32_t GetSumBps ()
Sum of all bitrates.
Defined at line 101 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
uint32_t GetPeakBps ()
Returns peak bitrate.
Defined at line 105 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 109 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
Bitrate::Mode GetMode ()
Returns the encoding rate control mode of this allocation.
Defined at line 113 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
std::string ToString ()
Defined at line 117 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc
bool operator== (const VideoBitrateAllocation & other)
Defined at line 169 of file ../../src/media/third_party/chromium_media/media/base/video_bitrate_allocation.cc