The quality command defines a custom quality level for either audio, video or still image data compression. Digital-video devices recognize this command.
wsprintf(lpstrCommand, "quality %s %s %s", lpszDeviceID, lpszQuality,
lpszFlags);
algorithm algorithm | Associates the quality level with the specified algorithm. This algorithm must be supported by the device and be compatible with the "audio", "still", or "video" flag that is used. If omitted, the current algorithm is used. |
audio name | Indicates this command specifies an "audio" quality level identified with name. |
dialog | Requests that the device display a dialog box. This dialog box has algorithm-specific fields that are used internally by the device to create the structure describing a specific quality level. |
handle handle | Specifies a handle to a structure that contains algorithmic-specific data describing a specific quality level. The structures for the data referenced by this handle are device specific. |
still name | Indicates the command specifies a "still" quality level identified with name. |
video name | Indicates the command specifies a "video" quality level identified with name. |
Returns zero if successful or an error otherwise.
This command defines a string name for the quality level, which can then be used in a setvideo "quality", setvideo "still quality", or setaudio "quality" command to establish it as the current video, still, or audio-compression quality level.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
MCI Overview, MCI Command Strings, setaudio, setvideo