Hardware Dev Center

AVStrMiniIntersectHandlerEx routine

AVStream calls a minidriver's AVStrMiniIntersectHandlerEx routine to determine the highest quality intersection of two data ranges.

Syntax


PFNKSINTERSECTHANDLEREX AVStrMiniIntersectHandlerEx;

NTSTATUS AVStrMiniIntersectHandlerEx(
  _In_  PVOID        Context,
  _In_  PIRP         Irp,
  _In_  PKSP_PIN     Pin,
  _In_  PKSDATARANGE DataRange,
  _In_  PKSDATARANGE MatchingDataRange,
  _In_  ULONG        DataBufferSize,
  _Out_ PVOID        Data,
  _Out_ PULONG       DataSize
)
{ ... }

Parameters

Context [in]

Pointer to the Context member of the corresponding KSFILTER structure.

Irp [in]

Pointer to the IRP containing the intersection request.

Pin [in]

Pointer to a structure of type KSP_PIN that was passed in the intersection property request.

DataRange [in]

Pointer to an array of KSDATARANGE structures.

MatchingDataRange [in]

Pointer to an array of KSDATARANGE structures to match to DataRange.

DataBufferSize [in]

Specifies a value of type ULONG that contains the size of the data buffer.

Data [out]

Pointer to an optional data buffer in which the minidriver outputs the intersection.

DataSize [out]

Pointer to a value of type ULONG specifying the size of the data buffer.

Return value

If the callback finds a match, return STATUS_SUCCESS. Otherwise return STATUS_NO_MATCH.

Remarks

The minidriver specifies this routine's address in the IntersectHandler member of a KSPIN_DESCRIPTOR_EX structure.

Requirements

Target platform

Desktop

Header

Ks.h

See also

KSFILTER
KSP_PIN
KSDATARANGE
KSPIN_DESCRIPTOR_EX
KSPROPERTY_PIN_DATAINTERSECTION
KsPinDataIntersectionEx

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft