public class KeepFramesPerSecondPolicy extends IFrameEncodingPolicy
Connection.
If the Client owns multiple connections, the network bandwidth allocated to each Connection will be equitably shared. Otherwise, the network bandwidth allocated to the Connection will be equal to the network bandwidth allocated to the Client. The network bandwidth allocated to the Client can be defined from ClientSettings.setBandwidth. This policy works as described below:
Connection decreases, the FPS value will keep the FPS target value and the frame quality will decrease.
Connection increases, the FPS will increase until it reaches the FPS target and then the frame quality will increase until it reaches the frame quality target.
See ConnectionSettings.setFrameEncodingPolicy to define the frame encoding policy.
See also:
Inventor.ConstructorCommandVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
KeepFramesPerSecondPolicy()
Constructor.
|
KeepFramesPerSecondPolicy(int fpsTarget,
float qualityTarget,
float qualityThreshold)
Convenience Constructor.
|
getFrameQuality, getFramesPerSecond, updatedispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic KeepFramesPerSecondPolicy(int fpsTarget,
float qualityTarget,
float qualityThreshold)
fpsTarget - : FPS target, the value range is [1, 60].
qualityTarget - : frame quality target, the value range is [0, 1].
qualityThreshold - : frame quality threshold, the value range is [0, 1]. (qualityThreshold <= qualityTarget)public KeepFramesPerSecondPolicy()
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com