// usbcamdi.h
PCAM_ALLOCATE_BW_ROUTINE_EX PcamAllocateBwRoutineEx;
NTSTATUS PcamAllocateBwRoutineEx(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PULONG RawFrameLength,
PVOID Format,
ULONG StreamNumber
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
A camera minidriver's CamAllocateBandwidthEx callback function selects the appropriate alternate setting within the USB video streaming interface and prepares the device to stream.
BusDeviceObjectPointer to the camera minidriver's device object created by the USB hub.
DeviceContextPointer to the camera minidriver's device context.
RawFrameLengthSpecifies the size, in bytes, of the raw frame data from the packet stream.
FormatPointer to a KS_DATAFORMAT_VIDEOINFOHEADER structure associated with this stream.
StreamNumberSpecifies the stream number.
CamAllocateBandwidthEx returns STATUS_SUCCESS or an appropriate error code.
USBCAMD calls the camera minidriver's CamAllocateBandwidthEx callback function immediately before the isochronous video capture stream is started. It is called in connection with a Run command.
Typically, this function calls the USBCAMD_SelectAlternateInterface service to select the correct alternate interface and prepare for streaming video.
The original USBCAMD does not call CamAllocateBandwidthEx.
This function is required.
USBCAMD_SelectAlternateInterface