VTK object for representing a volume compression codec (normally a video compression codec)
More...
#include <Libs/vtkAddon/vtkStreamingVolumeCodec.h>
VTK object for representing a volume compression codec (normally a video compression codec)
Definition at line 47 of file vtkStreamingVolumeCodec.h.
◆ Superclass
◆ anonymous enum
Enumerator |
---|
ParameterModifiedEvent | Event invoked when a codec parameter is changed.
|
Definition at line 85 of file vtkStreamingVolumeCodec.h.
◆ vtkStreamingVolumeCodec()
vtkStreamingVolumeCodec::vtkStreamingVolumeCodec |
( |
| ) |
|
|
protected |
◆ ~vtkStreamingVolumeCodec()
vtkStreamingVolumeCodec::~vtkStreamingVolumeCodec |
( |
| ) |
|
|
protected |
◆ CreateCodecInstance()
◆ DecodeFrame()
virtual bool vtkStreamingVolumeCodec::DecodeFrame |
( |
vtkStreamingVolumeFrame * |
frame, |
|
|
vtkImageData * |
outputImageData |
|
) |
| |
|
virtual |
Decode compressed frame data and stores it in the imagedata Handles the decoding of additional previous frames if required
- Parameters
-
frame | Input frame containing the compressed frame data |
outputImageData | Output image which will store the uncompressed image Returns true if the frame is decoded successfully |
◆ DecodeFrameInternal()
virtual bool vtkStreamingVolumeCodec::DecodeFrameInternal |
( |
vtkStreamingVolumeFrame * |
inputFrame, |
|
|
vtkImageData * |
outputImageData, |
|
|
bool |
saveDecodedImage = true |
|
) |
| |
|
protectedpure virtual |
Decode a frame and store its contents in a vtkImageData This function performs the actual decoding for a single frame and should be implemented in all non abstract subclasses
- Parameters
-
inputFame | Frame object containing the compressed data to be decoded |
outputImageData | Image data object that will be used to store the output image |
saveDecodedImage | If true, writes the decoded image to the frame. If false, the decoded results are discarded Returns true if the frame is decoded successfully |
Implemented in vtkRawRGBVolumeCodec.
◆ EncodeImageData()
virtual bool vtkStreamingVolumeCodec::EncodeImageData |
( |
vtkImageData * |
inputImageData, |
|
|
vtkStreamingVolumeFrame * |
outputStreamingFrame, |
|
|
bool |
forceKeyFrame = false |
|
) |
| |
|
virtual |
Encode the image data and store it in the frame
- Parameters
-
inputImageData | Input image containing the uncompressed image |
outputStreamingFrame | Output frame that will be used to store the compressed frame |
forceKeyFrame | If the codec supports it, attempt to encode the image as a keyframe Returns true if the image is encoded successfully |
◆ EncodeImageDataInternal()
virtual bool vtkStreamingVolumeCodec::EncodeImageDataInternal |
( |
vtkImageData * |
inputImageData, |
|
|
vtkStreamingVolumeFrame * |
outputFrame, |
|
|
bool |
forceKeyFrame |
|
) |
| |
|
protectedpure virtual |
Decode a vtkImageData and store its contents in a frame This function performs the actual encoding for a single frame and should be implemented in all non abstract subclasses
- Parameters
-
inputImageData | Image data object containing the uncompressed data to be encoded |
outputFrame | Frame object that will be used to store the compressed data |
forceKeyFrame | When true, attempt to encode the image as a keyframe if the codec supports it Returns true if the image is encoded successfully |
Implemented in vtkRawRGBVolumeCodec.
◆ GetClassName()
virtual const char* vtkStreamingVolumeCodec::GetClassName |
( |
| ) |
|
|
virtual |
◆ GetDefaultParameterPresetValue()
virtual std::string vtkStreamingVolumeCodec::GetDefaultParameterPresetValue |
( |
| ) |
|
|
virtual |
◆ GetFourCC()
virtual std::string vtkStreamingVolumeCodec::GetFourCC |
( |
| ) |
|
|
pure virtual |
◆ GetNumberOfParameterPresets()
int vtkStreamingVolumeCodec::GetNumberOfParameterPresets |
( |
| ) |
const |
|
inline |
◆ GetParameter()
virtual bool vtkStreamingVolumeCodec::GetParameter |
( |
std::string |
parameterName, |
|
|
std::string & |
parameterValue |
|
) |
| |
|
virtual |
Get a parameter for the codec
- Parameters
-
parameterName | String containing the name of the parameter |
parameterValue | Value of the specified parameter Returns true if the parameter was found |
◆ GetParameterDescription()
virtual std::string vtkStreamingVolumeCodec::GetParameterDescription |
( |
std::string |
parameterName | ) |
|
|
pure virtual |
Get parameter description as a string
- Parameters
-
parameterName | String containing the name of the parameter Returns the description of the parameter as a string, and returns an empty string if the parameter name is invalid |
◆ GetParameterPresetName()
std::string vtkStreamingVolumeCodec::GetParameterPresetName |
( |
const std::string & |
presetValue | ) |
const |
Get the human readable preset name given the parameter value string
- Parameters
-
presetValue | String representing the preset value Returns the human readable name of the preset value |
◆ GetParameterPresetNames()
std::vector<std::string> vtkStreamingVolumeCodec::GetParameterPresetNames |
( |
| ) |
const |
Returns a list of the human readable names of the supported parameter presets.
◆ GetParameterPresetValue()
std::string vtkStreamingVolumeCodec::GetParameterPresetValue |
( |
const std::string & |
presetName | ) |
const |
Get the string representing the preset value given the name of the parameter
- Parameters
-
presetName | String containing the name of the preset Returns a string representing the preset value |
◆ GetParametersAsString()
virtual std::string vtkStreamingVolumeCodec::GetParametersAsString |
( |
| ) |
|
|
virtual |
Write this codec's information to a string representation Format is "ParameterName1:ParameterValue1;ParameterName2;ParameterValue2;ParameterNameN:ParameterValueN"
- See also
- SetParametersFromString()
◆ IsA()
virtual int vtkStreamingVolumeCodec::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ IsTypeOf()
static int vtkStreamingVolumeCodec::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ PrintSelf()
void vtkStreamingVolumeCodec::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
◆ SafeDownCast()
◆ SetParameter()
virtual bool vtkStreamingVolumeCodec::SetParameter |
( |
std::string |
parameterName, |
|
|
std::string |
parameterValue |
|
) |
| |
|
virtual |
Set a parameter for the codec
- Parameters
-
parameterName | String containing the name of the parameter |
parameterValue | Value of the specified parameter Returns true if the parameter is successfully set |
◆ SetParameters()
virtual void vtkStreamingVolumeCodec::SetParameters |
( |
std::map< std::string, std::string > |
parameters | ) |
|
|
virtual |
Sets all of the specified parameters in the codec
- Parameters
-
parameters | Map containing the parameters and values to be set |
◆ SetParametersFromPresetValue()
virtual bool vtkStreamingVolumeCodec::SetParametersFromPresetValue |
( |
const std::string & |
presetValue | ) |
|
|
virtual |
Set the current parameters of the codec based on the specified preset value. The method must be overridden in child classes that support presets.
- Parameters
-
presetValue | String representing the preset value Returns true on success. |
◆ SetParametersFromString()
virtual void vtkStreamingVolumeCodec::SetParametersFromString |
( |
std::string |
parameterString | ) |
|
|
virtual |
Read this codec's information from a string representation Format is "ParameterName1:ParameterValue1;ParameterName2;ParameterValue2;ParameterNameN:ParameterValueN"
- See also
- GetParametersAsString()
◆ UpdateParameterInternal()
virtual bool vtkStreamingVolumeCodec::UpdateParameterInternal |
( |
std::string |
parameterName, |
|
|
std::string |
parameterValue |
|
) |
| |
|
protectedpure virtual |
Updates parameter values for the codec
- Parameters
-
parameterName | String containing the name of the parameter |
parameterValue | Value of the specified parameter Returns true if the parameter was found and updated successfully |
◆ vtkGetStdVectorMacro() [1/2]
Returns a list of availiable parameter names for the codec.
◆ vtkGetStdVectorMacro() [2/2]
◆ AvailiableParameterNames
std::vector<std::string> vtkStreamingVolumeCodec::AvailiableParameterNames |
|
protected |
◆ DefaultParameterPresetValue
std::string vtkStreamingVolumeCodec::DefaultParameterPresetValue |
|
protected |
◆ LastDecodedFrame
◆ ParameterPresets
◆ Parameters
std::map<std::string, std::string> vtkStreamingVolumeCodec::Parameters |
|
protected |
The documentation for this class was generated from the following file: