阅读:1287回复:1
testcap的一个初级问题求助!
DDK的testcap例子中capmain.c 中的多数函数在AdapterReceivePacket()函数中有入口,但却找不到
capvideo.c文件中的函数的入口在哪里!如当stream class driver 发送SRB_READ_DATA 请求时,minidriver怎么知道该执行 VideoReceiveDataPacket()函数呢?是通过什么方式做的? |
|
|
沙发#
发布于:2004-11-09 16:26
static ALL_STREAM_INFO Streams [] =
{ // ----------------------------------------------------------------- // STREAM_Capture // ----------------------------------------------------------------- { // HW_STREAM_INFORMATION ------------------------------------------- { 1, // NumberOfPossibleInstances KSPIN_DATAFLOW_OUT, // DataFlow TRUE, // DataAccessible NUM_STREAM_CAPTURE_FORMATS, // NumberOfFormatArrayEntries StreamCaptureFormats, // StreamFormatsArray 0, // ClassReserved[0] 0, // ClassReserved[1] 0, // ClassReserved[2] 0, // ClassReserved[3] NUMBER_VIDEO_STREAM_PROPERTIES, // NumStreamPropArrayEntries (PKSPROPERTY_SET) VideoStreamProperties,// StreamPropertiesArray 0, // NumStreamEventArrayEntries; 0, // StreamEventsArray; (GUID *) &PINNAME_VIDEO_CAPTURE, // Category (GUID *) &PINNAME_VIDEO_CAPTURE, // Name 1, // MediumsCount &StandardMedium, // Mediums FALSE, // BridgeStream }, // HW_STREAM_OBJECT ------------------------------------------------ { sizeof (HW_STREAM_OBJECT), // SizeOfThisPacket STREAM_Capture, // StreamNumber 0, // HwStreamExtension VideoReceiveDataPacket, // HwReceiveDataPacket VideoReceiveCtrlPacket, // HwReceiveControlPacket { NULL, 0 }, // HW_CLOCK_OBJECT FALSE, // Dma TRUE, // Pio NULL, // HwDeviceExtension sizeof (KS_FRAME_INFO), // StreamHeaderMediaSpecific 0, // StreamHeaderWorkspace FALSE, // Allocator NULL, // HwEventRoutine { 0, 0 }, // Reserved[2] }, }, 在上面,系统会register,然後在run之後,会被呼叫.这祥你懂了. |
|
|