Filters Reference
This topic documents a feature of Visual Filters and Transitions, which is deprecated as of Windows Internet Explorer 9 and obsolete as of Internet Explorer 10.
This section contains reference information for Microsoft DirectX Transform filters.
Interfaces
CDXBaseARGBPtrThe CDXBaseARGBPtr template class is used to simplify the creation of sample read pointers for procedural surfaces.
CDXBaseNTo1You can use the CDXBaseNTo1 template base class to simplify transform development. This base class implements the necessary public interfaces, providing parameter validation and default implementations for most methods. An Active Template Library (ATL) object derived from this class can override a few virtual member functions, such as CDXBaseNTo1::OnExecute or CDXBaseNTo1::WorkProc, and quickly create a fully functional transform.
CDXBaseSurfaceThe CDXBaseSurface class is used to simplify the creation of procedural surfaces. An Active Template Library (ATL) Component Object Model (COM) object derived from this class inherits most of the default functionality of an object that can be used as both a transform and a surface. Procedural surfaces are usually created by calling the IDXSurfaceFactory::CreateSurface method, specifying the pFormatID parameter equal to the object's class identifier (CLSID), and specifying DXSF_FORMAT_IS_CLSID in the dwFlags parameter.
CDXBndsThe CDXBnds template class is used to simplify construction and manipulation of the DXBNDS structure.
CDXMMXInfoThis template class is used to determine when to call MMX-optimized code, which you would do when MMX instructions are present.
CDXScaleThis template class uses a pre-computed lookup table to scale samples.
CDXTWorkInfoNTo1The CDXTWorkInfoNTo1 class contains the information necessary to describe a rendering request to the CDXBaseNTo1::WorkProc method.
CDXVecThe CDXVec template class is used to simplify construction and manipulation of the DXVEC data type.
DXBASESAMPLEDescribes a color in 32-bit pixel format, consisting of relative red, green, blue, and alpha intensities.
DXPMSAMPLEDescribes a color in 32-bit pixel format, consisting of relative red, green, blue, and alpha intensities. In this class, the stored color values have been alpha premultiplied.
DXSAMPLEDescribes a color in 32-bit pixel format, consisting of relative red, green, blue, and alpha intensities.
ICSSFilterDispatchProvides methods and properties to manipulate an effect.
IDXARGBReadPtrThe IDXARGBReadPtr interface enables DirectX Transform objects to gain read-only access to samples contained in a DXSurface object.
IDXARGBReadWritePtrThe IDXARGBReadWritePtr interface enables DirectX Transform objects to gain read/write access to samples contained in a DXSurface object.
IDXARGBSurfaceInitThe IDXARGBSurfaceInit interface initializes a DXSurface object created from a DirectDrawSurface or a buffer.
IDXBaseObjectThe IDXBaseObject interface manages the generation ID of an object.
IDXBasicImageProvides properties to support the BasicImage filter.
IDXDCLockThe IDXDCLock interface is used to lock a surface and to obtain a device context (DC) that can be used with Windows Graphics Device Interface (GDI) calls.
IDXDLUTBuilderProvides properties to support an input DXSurface.
IDXEffectThis interface generically controls transition settings on all transform objects.
IDXGradientThe IDXGradient interface produces gradient images that fade gradually from one color to another.
IDXLookupTableThe IDXLookupTable interface changes the color balance for a set of samples. Each color in the pixel is used as an index in a table that indicates what the adjusted color value should be.
IDXLUTBuilderThis interface enables you to construct a lookup table for an input DXSurface. A lookup table is a set of four arrays of 256 numbers each, with one array for each color channel and one array for the alpha channel.
IDXRawSurfaceThe IDXRawSurface interface is used to implement custom surface types that are not based on Microsoft DirectDraw surfaces. These surface types are called custom raw surfaces. This interface enables a custom raw surface to be accessed as a DXSurface through the IDXSurface interface.
IDXSurfaceThe IDXSurface interface is used to access DXSurface objects, which store images.
IDXSurfaceFactoryThe IDXSurfaceFactory interface provides methods to create and load data into DXSurface data objects.
IDXSurfaceInitThe IDXSurfaceInit interface initializes a DXSurface object of the specified bounding volume and pixel format created with the CoCreateInstance COM method.
IDXSurfaceModifierThe IDXSurfaceModifier interface is a procedural surface that uses up to two input surfaces. The methods of this interface set background colors, background surfaces, and foreground surfaces, which the DXSurfaceModifier object (Surface Modifier) uses to create another surface based on the options you set.
IDXSurfacePickThe IDXSurfacePick interface enables picking, which is the process of identifying which of the transform inputs contributed to the output at a given point.
IDXTaskManagerThe IDXTaskManager interface enables you to configure the task manager to specify the thread pool size and the thread concurrency limit.
IDXTBindHostThis interface enables the container to specify which bind host to use, if your transform needs this service. The bind host is the interface supplied by the container that enables the client to open storage elements specified by a moniker—usually a URL moniker.
IDXTConvolutionThis interface performs image convolutions for DXSurface objects.
IDXTransformThe IDXTransform interface is used to set up a transform and cause it to produce its graphics output. This interface is exposed on all DirectX Transform objects created with the IDXTransformFactory::CreateTransform method.
IDXTransformFactoryThe IDXTransformFactory interface creates and initializes a transform. It is created by calling the CoCreateInstance method and specifying
IDXTScaleCLSID_DXTransformFactoryas the CLSID and IID_IDXTransformFactory as the interface ID.The IDXTScale interface controls how the transform scales the input data to produce the output surface and what filter type it should use. This interface inherits from the IUnknown interface.
IDXTScaleOutputThe IDXTScaleOutput interface is an optional interface supported by certain image transforms. It enables you to scale transform output to a specified size. It is typically supported by zero input image transforms, such as the Gradient sample included with the software development kit (SDK).
IHTMLDXTransformProvides a method to set the host URL.
IObjectWithBehaviorSiteProvides methods to manipulate the behavior site.
Functions
CreateMIMEMapCreates a MIME mapping object.
DecodeImageExDecodes an image using a specified MIME type.
DXAPCPROCPrototype for an asynchronous procedure call function that is called by a task manager.
DXApplyColorChannelLookupArrayApplies a color channel lookup table to an array of DXBASESAMPLE structures.
DXApplyLookupTableApplies a lookup table to a single DXBASESAMPLE structure.
DXApplyLookupTableArrayApplies a lookup table to an array of DXBASESAMPLE structures.
DXBASESAMPLE_AllocaAllocates an array of DXBASESAMPLE structures.
DXBitBltCopies a region of a DXSurface to a second DXSurface.
DXClipToOutputWithPlacementModifies a CDXDBnds class so that it is clipped by a clipping boundary.
DXColorFromBSTRConverts a BSTR enumerated color to a 32-bit ARGB value.
DXCompositeOverComposites an alpha premultiplied source sample over a destination sample.
DXCompositeUnderComposites an alpha premultiplied source sample under a destination sample.
DXConstOverArrayComposites a single color over an array of samples.
DXConstUnderArrayComposites a single color under an array of samples.
DXConvertToGrayConverts a color sample to gray scale.
DXDitherArrayDithers a specified array of samples.
DXFillSurfaceFills an entire DXSurface with a color.
DXFillSurfaceRectFills a region of a surface with a specified color.
DXGaussCoeffComputes the coefficient for a Gaussian filter coordinate.
DXInitGaussianFilterInitializes a Gaussian convolution filter.
DXInvertAlphaInverts the specified alpha value.
DXIsBadInterfacePtrVerifies that the calling process has read access to the specified interface pointer.
DXIsBadReadPtrVerifies that the calling process has read access to the specified range of memory.
DXIsBadWritePtrVerifies that the calling process has write access to the specified range of memory.
DXLinearInterpolateArrayUses linear interpolation to resize an array of samples.
DXOverArrayComposites an array of source samples over an array of destination samples.
DXOverArrayMMXComposites an array of source samples over an array of destination samples, using the MMX instruction set for large arrays of samples.
DXPMSAMPLE_AllocaAllocates an array of DXPMSAMPLE structures.
DXPreMultArrayMultiplies the color components of an array of samples by its alpha value.
DXPreMultSampleMultiplies the color components of a sample by its alpha value.
DXSAMPLE_AllocaAllocates an array of DXSAMPLE structures.
DXSampleFromColorRefConverts a COLORREF value to a DXSAMPLE structure format.
DXScalePremultArrayScales the red, green, blue, and alpha channels in an array of samples of type DXPMSAMPLE.
DXScaleSampleScales the red, green, blue, and alpha channels of a sample.
DXScaleSamplePercentScales the red, green, blue, and alpha channels of a sample by a specified percent.
DXSrcCopyCopies a region of a source surface to a destination surface.
DXTASKPROCPrototype for a task function that is called by the task manager.
DXUnPreMultArrayConverts an array of DXPMSAMPLE colors to DXSAMPLE format.
DXUnPreMultSampleConverts a DXPMSAMPLE color to DXSAMPLE format.
DXWeightedAverageProduces a weighted average of two samples.
DXWeightedAverageArrayProduces a weighted average of two arrays of samples.
DXWeightedAverageArrayOverTakes a weighted average of two sample arrays and composites the result over a third array.
Structures
DXBNDSDescribes either a continuous or a discrete boundary for a transform object.
DXCBNDDescribes a continuous, 32-bit boundary for a transform object.
DXCBND64Describes a continuous, 64-bit boundary for a transform object.
DXDBNDDescribes a discrete, 32-bit boundary for a transform object.
DXDBND64Describes a discrete, 64-bit boundary for a transform object.
DXDITHERDESCContains the information needed by the DXDitherArray helper function to dither an array of samples.
DXLIMAPINFODescribes sample indexes and weights used for linear interpolation.
DXNATIVETYPEINFODescribes the underlying native pixel format of a DXSurface object.
DXOVERSAMPLEDESCDescribes a pixel to blend over another pixel.
DXPACKEDRECTDESCDescribes a rectangular array of pixels in a DXSurface object.
DXPtrFillInfoDescribes a fill operation that should be performed on procedural surfaces. It is used by the CDXBaseARGBPtr::FillSamples function.
DXRAWSURFACEINFOContains information needed by the IDXRawSurface interface to initialize a DXSurface from a custom raw surface.
DXRUNINFODescribes run information associated with a DXSurface object.
DXTMTASKINFODescribes a task to be performed by a DXTaskManager (task manager) object.
DXVECDescribes either a continuous or a discrete four-dimensional (4-D) vector.
Enumerations
DXBLTOPTIONSDescribes the methods to use when blitting an image onto a DXSurface.
DXBNDIDIdentifies an axis for a surface boundary.
DXBNDTYPEIdentifies the data type within a DXBNDS union.
DXCOMPFUNCDescribes the method used for compositing by the Compositor transform.
DXCONVFILTERTYPEIdentifies a filter type to use with the IDXTConvolution interface.
DXEFFECTTYPEDescribes the type of effect used for a particular transform.
DXFILTERTYPEIdentifies a filtering algorithm to be used with the IDXTScale interface.
DXINOUTINFOFLAGSUsed by IDXTransform::GetInOutInfo to specify whether an input or output data object is required.
DXLOCKSURFDetermines how a surface should be locked by the IDXSurface::LockSurface method.
DXLUTCOLORIdentifies which color balance is to be adjusted by a lookup table. It is used in the IDXLUTBuilder::GetColorBalance and IDXLUTBuilder::SetColorBalance methods.
DXRUNTYPEDescribes the opacity of a sample run in the DXRUNINFO structure.
DXSAMPLEFORMATENUMIndicates the pixel format of a DXSurface object. This enumerated type is returned by the IDXARGBReadPtr::GetNativeType and IDXSurface::GetPixelFormat methods.
DXSFCREATEEnables you to set special properties of DXSurface objects that are created with the IDXSurfaceFactory interface.
DXSURFMODCOMPOPDescribes the method used by the IDXSurfaceModifier interface for compositing operations.
DXSURFSTATUSDescribes general properties of a DXSurface object.
DXTFILTER_DISPIDDescribes the dispid.
DXTFILTER_STATUSDescribes event status.
DXTMISCFLAGSDescribes flags that specify transform capabilities and rendering options.
OPIDDXLUTBUILDERLists the possible lookup table operations used by the lookup table builder interface, IDXLUTBuilder.