Lines Matching refs:cap_window
59 HWND cap_window; member
124 if (cd->cap_window != NULL) { in _camera_device_free()
126 capDriverDisconnect(cd->cap_window); in _camera_device_free()
131 ReleaseDC(cd->cap_window, cd->dc); in _camera_device_free()
135 DestroyWindow(cd->cap_window); in _camera_device_free()
136 cd->cap_window = NULL; in _camera_device_free()
166 if (cd != NULL && cd->cap_window != NULL) { in _camera_device_reset()
167 capDriverDisconnect(cd->cap_window); in _camera_device_reset()
169 ReleaseDC(cd->cap_window, cd->dc); in _camera_device_reset()
191 DestroyWindow(cd->cap_window); in _camera_device_reset()
192 cd->cap_window = capCreateCaptureWindow(cd->window_name, WS_CHILD, 0, 0, in _camera_device_reset()
194 if (cd->cap_window != NULL) { in _camera_device_reset()
196 capSetUserData(cd->cap_window, cd); in _camera_device_reset()
273 wcd->cap_window = capCreateCaptureWindow(wcd->window_name, WS_CHILD, 0, 0, in camera_device_open()
275 if (wcd->cap_window == NULL) { in camera_device_open()
282 capSetUserData(wcd->cap_window, wcd); in camera_device_open()
313 if (!capDriverConnect(wcd->cap_window, wcd->input_channel)) { in camera_device_start_capturing()
318 format_info_size = capGetVideoFormatSize(wcd->cap_window); in camera_device_start_capturing()
331 if (!capGetVideoFormat(wcd->cap_window, wcd->frame_bitmap, in camera_device_start_capturing()
354 if (!capSetVideoFormat(wcd->cap_window, wcd->frame_bitmap, in camera_device_start_capturing()
382 wcd->dc = GetDC(wcd->cap_window); in camera_device_start_capturing()
391 if (capCaptureGetSetup(wcd->cap_window, &cap_param, sizeof(cap_param))) { in camera_device_start_capturing()
396 capCaptureSetSetup(wcd->cap_window, &cap_param, sizeof(cap_param)); in camera_device_start_capturing()
408 if (!capGrabFrameNoStop(wcd->cap_window) || in camera_device_start_capturing()
409 !capEditCopy(wcd->cap_window) || in camera_device_start_capturing()
410 !OpenClipboard(wcd->cap_window)) { in camera_device_start_capturing()
509 if (capSetCallbackOnFrame(wcd->cap_window, _on_captured_frame)) { in camera_device_start_capturing()
528 capSetCallbackOnFrame(wcd->cap_window, NULL); in camera_device_stop_capturing()
536 ReleaseDC(wcd->cap_window, wcd->dc); in camera_device_stop_capturing()
559 if (!capGrabFrameNoStop(wcd->cap_window) || wcd->last_frame == NULL) { in _camera_device_read_frame_callback()
591 if (!capGrabFrameNoStop(wcd->cap_window) || in _camera_device_read_frame_clipboard()
592 !capEditCopy(wcd->cap_window) || in _camera_device_read_frame_clipboard()
593 !OpenClipboard(wcd->cap_window)) { in _camera_device_read_frame_clipboard()