public class KeepFrameQualityPolicy extends IFrameEncodingPolicy
Connection. If the
Clientowns multiple connections, the network bandwidth allocated to each
Connectionwill be equitably shared. Otherwise, the network bandwidth allocated to the
Connectionwill be equal to the network bandwidth allocated to the
Client. The network bandwidth allocated to the
Clientcan be defined from
ClientSettings.setBandwidth. This policy works as described below:
Connectiondecreases, the frame quality value will keep the frame quality target value and the FPS will decrease.
Connectionincreases, the frame quality will increase until it reaches the frame quality target and then the FPS will increase until it reaches the FPS target.
ConnectionSettings.setFrameEncodingPolicy to define the frame encoding policy.
|Constructor and Description|
getFrameQuality, getFramesPerSecond, update
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public KeepFrameQualityPolicy(float qualityTarget, int fpsTarget, int fpsThreshold)
qualityTarget- : frame quality target, the value range is [0, 1].
fpsTarget- : FPS target, the value range is [1, 60].
fpsThreshold- : frames per second threshold, the value range is [1, 60]. (fpsThreshold <= fpsTarget)
Generated on September 3, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com