Skip to content

Latest commit

 

History

History
114 lines (75 loc) · 4.02 KB

nc-usbcamdi-pcam_process_packet_routine.md

File metadata and controls

114 lines (75 loc) · 4.02 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NC:usbcamdi.PCAM_PROCESS_PACKET_ROUTINE
PCAM_PROCESS_PACKET_ROUTINE (usbcamdi.h)
A camera minidriver's CamProcessUSBPacket callback function processes a USB packet.
stream\camprocessusbpacket.htm
stream
04/23/2018
PCAM_PROCESS_PACKET_ROUTINE callback function
CamProcessUSBPacket, CamProcessUSBPacket callback function [Streaming Media Devices], PCAM_PROCESS_PACKET_ROUTINE, PCAM_PROCESS_PACKET_ROUTINE callback, stream.camprocessusbpacket, usbcamdi/CamProcessUSBPacket, usbcmdpr_7eeca66e-b106-4cb0-b0c3-d7d07d82d841.xml
usbcamdi.h
Usbcamdi.h
Desktop
DISPATCH_LEVEL
Windows
PCAM_PROCESS_PACKET_ROUTINE
usbcamdi/PCAM_PROCESS_PACKET_ROUTINE
APIRef
kbSyntax
UserDefined
usbcamdi.h
PCAM_PROCESS_PACKET_ROUTINE

PCAM_PROCESS_PACKET_ROUTINE callback function

-description

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

A camera minidriver's CamProcessUSBPacket callback function processes a USB packet.

-parameters

-param BusDeviceObject

Pointer to the camera minidriver's device object created by the USB hub.

-param DeviceContext

Pointer to the camera minidriver's device context.

-param CurrentFrameContext

Pointer to the minidriver's frame context.

-param SyncPacket

Pointer to a USBD_ISO_PACKET_DESCRIPTOR structure from the sync pipe. This value is NULL if the interface has only one pipe.

-param SyncBuffer

Pointer to the data for the SyncPacket.

-param DataPacket

Pointer to a USBD_ISO_PACKET_DESCRIPTOR structure from the data pipe.

-param DataBuffer

Pointer to DataPacket.

-param FrameComplete

Pointer to a BOOLEAN value that the camera minidriver sets to indicate whether this is the first data packet for a new video frame. Set to TRUE if this is the first data packet for a new video frame.

-param NextFrameIsStill

Pointer to a BOOLEAN value that the camera minidriver sets to indicate whether the next frame is a still frame or not. This value should be set to FALSE if the video stream is providing a live image or TRUE if the next frame is a still image or an image capture stream.

-returns

This callback function returns a ULONG that indicates the number of bytes that should be copied into the buffer (RawFrameBuffer or FrameBuffer).

-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).

The minidriver should complete this function as quickly as possible. Image processing should be deferred to the CamProcessRawVideoFrame function.

This function is optional.

-see-also

CamProcessRawVideoFrame

CamProcessUSBPacketEx

USBD_ISO_PACKET_DESCRIPTOR