Bewerken

Delen via


USBCAMD_DEVICE_DATA structure (usbcamdi.h)

This structure is obsolete and is provided to maintain backward compatibility with the original USBCAMD. New camera minidrivers should use the USBCAMD_DEVICE_DATA2 structure.

The USBCAMD_DEVICE_DATA structure specifies the entry points for a camera minidriver's functions that the original USBCAMD calls.

Syntax

typedef struct _USBCAMD_DEVICE_DATA {
  ULONG                          Sig;
  PCAM_INITIALIZE_ROUTINE        CamInitialize;
  PCAM_INITIALIZE_ROUTINE        CamUnInitialize;
  PCAM_PROCESS_PACKET_ROUTINE    CamProcessUSBPacket;
  PCAM_NEW_FRAME_ROUTINE         CamNewVideoFrame;
  PCAM_PROCESS_RAW_FRAME_ROUTINE CamProcessRawVideoFrame;
  PCAM_START_CAPTURE_ROUTINE     CamStartCapture;
  PCAM_STOP_CAPTURE_ROUTINE      CamStopCapture;
  PCAM_CONFIGURE_ROUTINE         CamConfigure;
  PCAM_STATE_ROUTINE             CamSaveState;
  PCAM_STATE_ROUTINE             CamRestoreState;
  PCAM_ALLOCATE_BW_ROUTINE       CamAllocateBandwidth;
  PCAM_FREE_BW_ROUTINE           CamFreeBandwidth;
} USBCAMD_DEVICE_DATA, *PUSBCAMD_DEVICE_DATA;

Members

Sig

Reserved. Do not use.

CamInitialize

Pointer to the camera minidriver defined CamInitialize callback function. This entry point is required.

CamUnInitialize

Pointer to the camera minidriver defined CamUnInitialize callback function. This entry point is required.

CamProcessUSBPacket

Pointer to the camera minidriver defined CamProcessUSBPacket callback function. This is an optional entry point. If the minidriver does not implement this function, it must point to an empty function.

CamNewVideoFrame

Pointer to the camera minidriver defined CamNewVideoFrame callback function. This is an optional entry point. If the minidriver does not implement this function, it must point to an empty function.

CamProcessRawVideoFrame

Pointer to the camera minidriver defined CamProcessRawVideoFrame callback function. This is an optional entry point. If the minidriver does not implement this function, it must point to an empty function.

CamStartCapture

Pointer to the camera minidriver defined CamStartCapture callback function. This entry point is required.

CamStopCapture

Pointer to the camera minidriver defined CamStopCapture callback function. This entry point is required.

CamConfigure

Pointer to the camera minidriver defined CamConfigure callback function. This entry point is required.

CamSaveState

Pointer to the camera minidriver defined CamSaveState callback function. This is an optional entry point. If the minidriver does not implement this function, it must point to an empty function.

CamRestoreState

Pointer to the camera minidriver defined CamRestoreState callback function. This is an optional entry point. If the minidriver does not implement this function, it must point to an empty function.

CamAllocateBandwidth

Pointer to the camera minidriver defined CamAllocateBandwidth callback function. This entry point is required.

CamFreeBandwidth

Pointer to the camera minidriver defined CamFreeBandwidth callback function. This entry point is required.

Remarks

A camera minidriver passes a USBCAMD_DEVICE_DATA structure to USBCAMD as a parameter to the USBCAMD library routine USBCAMD_AdapterReceivePacket in the original USBCAMD.

Requirements

Requirement Value
Header usbcamdi.h (include Usbcamdi.h)

See also

USBCAMD_DEVICE_DATA2