[IEncoderAPI is no longer available for use. Instead, use ICodecAPI.]
The IEncoderAPI interface defines a standard way for applications and drivers to communicate with third-party hardware or software encoders that implement the interface. For more information on this interface, see Encoder API.
The IEncoderAPI interface inherits from the IUnknown interface. IEncoderAPI also has these types of members:
The IEncoderAPI interface has these methods.
Retrieves the default value for a parameter, if one exists.
Retrieves the valid range of values that the parameter supports, in cases where the parameter supports a stepped range as opposed to a list of specific values.
Retrieves the list of values supported by the given parameter.
Retrieves the current value of a specified parameter.
Queries whether a given parameter is available.
Queries whether a given parameter is supported.
Sets the current value of a parameter.
In the various interface methods, the following GUIDs, defined in uuids.h, are used to indicate which parameter is being set or retrieved.
|ENCAPIPARAM_BITRATE||Specifies the bit rate, in bits per second. In constant bit rate (CBR) mode, the value gives the constant bitrate. In either variable bit rate mode, it gives the average bit rate. The value is a 32-bit unsigned long.|
|ENCAPIPARAM_PEAK_BITRATE||Secifies the peak bit rate. This parameter is relevant only when ENCAPIPARAM_BITRATE_MODE has been set to VariableBitRatePeak.|
|ENCAPIPARAM_BITRATE_MODE||Specifies the bit-rate mode, as a VIDEOENCODER_BITRATE_MODE enumeration value (32-bit signed long).|
The following table describes the expected behavior of an encoder under extremely high or low bitrate conditions in the two variable bitrate modes defined in VIDEOENCODER_BITRATE_MODE.
|Scene falls to black or there is zero motion||VariableBitRateAverage||Over a short period of time (several seconds) the bit rate will fall below the rate specified for the ENCAPIPARAM_BITRATE parameter. But over a four-minute period of time, the encoder will maintain the average rate, if necessary by adding "dummy" bits to the stream.|
|Scene falls to black or there is zero motion.||VariableBitRatePeak||The bitrate will fall below the expected rate as specified in the value for the ENCAPIPARAM_BITRATE parameter. The rate will stay at that level until a more complicated scene begins.|
|The scene is extremely complex.||VariableBitRateAverage||For a few seconds the rate will go up. If the scene stays complex, the rate will come back down and the picture will become blocky in order to maintain the average as specified in the value for the ENCAPIPARAM_BITRATE parameter.|
|The scene is extremely complex.||VariableBitRatePeak||The rate will go up and stay up, possibly above the expected rate as specified in the value for the ENCAPIPARAM_BITRATE parameter, but never above the peak as specified in the ENCAPIPARAM_PEAK_BITRATE parameter.|
This interface supports OpenCable Unidirectional Cable Receiver (OCUR) devices. See OCUR Devices.
- Encoder API
Build date: 10/27/2012