Class EncodedFrame
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.remoteviz.rendering.EncodedFrame
- All Implemented Interfaces:
Cloneable
This class provides the features of an encoded frame that is sent to the client.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
long
Gets the frame buffer size in bytes.Gets the frame encoding format.long
getId()
Gets the frame id.Gets the frame message.boolean
Returns if an user interaction is in progress when the frame has been encoded.boolean
Returns if the frame is lossless.Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
EncodedFrame
Copy constructor. -
EncodedFrame
public EncodedFrame()Constructor.
-
-
Method Details
-
clone
-
isInteractive
public boolean isInteractive()Returns if an user interaction is in progress when the frame has been encoded. If the frame is interactive, the frame has been encoded with the interactive frame encoder and a quality adapted to the network bandwidth.
Otherwise (the frame is still), the frame has been encoded with the still frame encoder and the best available quality.
- Returns:
- true if the frame is interactive
-
getEncodingFormat
Gets the frame encoding format.- Returns:
- the encoding format of the encoded frame.
-
getMessage
Gets the frame message.- Returns:
- the message joint with the encoded frame.
-
getId
public long getId()Gets the frame id.- Returns:
- the frame id of the encoded frame.
-
getBufferSize
public long getBufferSize()Gets the frame buffer size in bytes.- Returns:
- the buffer size of the encoded frame.
-
isLossless
public boolean isLossless()Returns if the frame is lossless.- Returns:
- true if the frame is lossless
-