// ks.h
typedef struct {
ULONG RatioNumerator;
ULONG RatioDenominator;
ULONG RatioConstantMargin;
} KS_COMPRESSION, *PKS_COMPRESSION;
View the official Windows Driver Kit DDI referenceNo description available.
The KS_COMPRESSION structure defines the compression of frames on an output pin.
RatioNumeratorSpecifies the numerator of the compression/expansion ratio.
RatioDenominatorSpecifies the denominator of the compression/expansion ratio.
RatioConstantMarginSpecifies a scalar constant to apply to the compression ratio. Set this to zero for no compression.
For compression, specify a fraction less than 1. For decompression, specify a fraction greater than 1. For example, a compressor might specify 1:3. A decompressor could specify 3:1.