Lines Matching refs:height

41   int height;  member
85 void MaybeExchangeWidthHeight(int* width, int* height) { in MaybeExchangeWidthHeight() argument
88 if (*width < *height) { in MaybeExchangeWidthHeight()
90 *width = *height; in MaybeExchangeWidthHeight()
91 *height = temp; in MaybeExchangeWidthHeight()
95 int FindSimulcastFormatIndex(int width, int height) { in FindSimulcastFormatIndex() argument
96 MaybeExchangeWidthHeight(&width, &height); in FindSimulcastFormatIndex()
100 height >= kSimulcastFormats[i].height) { in FindSimulcastFormatIndex()
107 int FindSimulcastFormatIndex(int width, int height, size_t max_layers) { in FindSimulcastFormatIndex() argument
108 MaybeExchangeWidthHeight(&width, &height); in FindSimulcastFormatIndex()
112 height >= kSimulcastFormats[i].height && in FindSimulcastFormatIndex()
127 size_t FindSimulcastMaxLayers(int width, int height) { in FindSimulcastMaxLayers() argument
128 int index = FindSimulcastFormatIndex(width, height); in FindSimulcastMaxLayers()
138 int FindSimulcastMaxBitrateBps(int width, int height, size_t max_layers) { in FindSimulcastMaxBitrateBps() argument
139 const int format_index = FindSimulcastFormatIndex(width, height); in FindSimulcastMaxBitrateBps()
147 int height, in FindSimulcastTargetBitrateBps() argument
149 const int format_index = FindSimulcastFormatIndex(width, height); in FindSimulcastTargetBitrateBps()
156 int FindSimulcastMinBitrateBps(int width, int height, size_t max_layers) { in FindSimulcastMinBitrateBps() argument
157 const int format_index = FindSimulcastFormatIndex(width, height); in FindSimulcastMinBitrateBps()
164 bool SlotSimulcastMaxResolution(size_t max_layers, int* width, int* height) { in SlotSimulcastMaxResolution() argument
165 int index = FindSimulcastFormatIndex(*width, *height, max_layers); in SlotSimulcastMaxResolution()
172 *height = kSimulcastFormats[index].height; in SlotSimulcastMaxResolution()
174 << " height:" << *height; in SlotSimulcastMaxResolution()
190 int height, in GetSimulcastConfig() argument
194 size_t simulcast_layers = FindSimulcastMaxLayers(width, height); in GetSimulcastConfig()
199 if (!SlotSimulcastMaxResolution(max_streams, &width, &height)) { in GetSimulcastConfig()
209 height = NormalizeSimulcastSize(height, simulcast_layers); in GetSimulcastConfig()
216 streams[s].height = height; in GetSimulcastConfig()
221 FindSimulcastMaxBitrateBps(width, height, simulcast_layers); in GetSimulcastConfig()
223 FindSimulcastTargetBitrateBps(width, height, simulcast_layers); in GetSimulcastConfig()
225 FindSimulcastMinBitrateBps(width, height, simulcast_layers); in GetSimulcastConfig()
229 height /= 2; in GetSimulcastConfig()