Lines Matching +full:- +full:- +full:upgrade
85 static const float kUpBias = -0.9f;
107 float diff = target_num_pixels - test_num_pixels; in FindScale()
141 static const float kUpAvoidBias = -1000000000.f;
149 // input_format - set once by server to frame size expected from the camera.
151 // output_format - size that output would like to be. Includes framerate.
153 // output_num_pixels - size that output should be constrained to. Used to
155 // in_frame - actual camera captured frame size, which is typically the same
157 // out_frame - actual frame output by adapter. Should be a direct scale of
159 // OnOutputFormatRequest - server requests you send this resolution based on
161 // OnEncoderResolutionRequest - encoder requests you send this resolution based
163 // OnCpuLoadUpdated - cpu monitor requests you send this resolution based on
288 if ((frames_in_ - frames_out_) % 90 == 0) { in AdaptFrameResolution()
380 // Helper function to UPGRADE or DOWNGRADE a number of pixels
389 case CoordinatedVideoAdapter::UPGRADE: in StepPixelCount()
399 // Find the adaptation request of the cpu based on the load. Return UPGRADE if
408 // Upgrade if system is low. in FindCpuRequest()
410 return CoordinatedVideoAdapter::UPGRADE; in FindCpuRequest()
508 (UPGRADE == request ? "up" : "keep")) in OnEncoderResolutionRequest()
533 case UPGRADE: in OnCpuResolutionRequest()
537 --cpu_downgrade_count_; in OnCpuResolutionRequest()
539 LOG(LS_VERBOSE) << "VAdapt CPU load low but do not upgrade " in OnCpuResolutionRequest()
543 LOG(LS_VERBOSE) << "VAdapt CPU load low but do not upgrade " in OnCpuResolutionRequest()
562 (UPGRADE == request ? "up" : "keep")) in OnCpuResolutionRequest()
579 (1.0f - kCpuLoadWeightCoefficient) * system_load_average_; in OnCpuLoadUpdated()
590 << (cpu_load_min_samples_ - cpu_load_num_samples_) in OnCpuLoadUpdated()
711 // accurate. Clear out our state so we can re-learn at the new normal. in AdaptToMinimumFormat()