PCAM_NEW_FRAME_ROUTINE callback function (usbcamdi.h)

[CamNewVideoFrame is not supported and may be altered or unavailable in the future. Instead, use CamNewVideoFrameEx. ]

A camera minidriver's CamNewVideoFrame callback function initializes a new video frame context structure.

Syntax

PCAM_NEW_FRAME_ROUTINE PcamNewFrameRoutine;

void PcamNewFrameRoutine(
  PVOID DeviceContext,
  PVOID FrameContext
)
{...}

Parameters

DeviceContext

Pointer to the camera minidriver's device context.

FrameContext

Pointer to the camera minidriver's frame context.

Return value

None

Remarks

Camera minidrivers that must maintain backward compatibility with the original USBCAMD must use the USBCAMD_DEVICE_DATA structure and its associated callback functions (that is, callback functions that do not contain the "Ex" suffix).

USBCAMD calls the camera minidriver's CamNewVideoFrame callback function at IRQL = DISPATCH_LEVEL.

This function is optional.

Requirements

Requirement Value
Target Platform Desktop
Header usbcamdi.h (include Usbcamdi.h)
IRQL DISPATCH_LEVEL (See Remarks section)

See also

CamNewVideoFrameEx