AviCompressor.CompressorData Property

Returns or sets the data of an AviCompressor.
Syntax:
Public CompressorData As Variant
Remarks:

The returned data should only be used to store the state of the codecs. The data in the array is not to be modified. If inconsistent data is passed to the codec, an error is returned. Furthermore, the data of one codec will not match each other.

Sample:

The following example shows how to save and load codec data into and from a binary file. The codec which is currently used, must be declared globally. If it is declared locally in the sub procedure, it would loose its settings after exiting the sub procedure, because it would be removed from memory. The complete example can be found in the samples directory in Saving Codec Properties.

' Global declaration of the AviCompressor object
Dim Codec As AviCompressor

Save the data from a codec that was selected in a combo box.

Load the previously saved data and assign it to a codec.

See Also: AviCompressor, AviCompressor.CompressorDataSize

<< AviCompressor