Unigraf UFG-10 series Programming Manual

Frame grabbers easy programming guide for windows

Advertisement

Quick Links

UFG-10 Family
Frame Grabbers
Easy
Programming
Guide
Windows

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UFG-10 series and is the answer not in the manual?

Questions and answers

Summary of Contents for Unigraf UFG-10 series

  • Page 1 UFG-10 Family Frame Grabbers Easy Programming Guide Windows...
  • Page 2 Introduction Copyright This manual, Copyright © 2014 Unigraf Oy. All rights reserved Reproduction of this manual in whole or in part without written permission of Unigraf Oy is prohibited. Notice The information given in this manual is verified in the correctness on the date of issue. The authors reserve the rights to make any changes to this product and to revise the information about the products contained in this manual without an obligation to notify any persons about such revisions or changes.
  • Page 3: Table Of Contents

    Introduction Table of Contents Introduction ............................... 4 Overview ..............................4 Setting DLL File ............................ 4 Initialize Device APIs ..........................4 Uninitialize Device APIs ........................... 4 Start Channel Record APIs ........................5 Stop Channel Record APIs ........................5 Start Share Record APIs ..........................5 Set Share Record Data APIs ........................
  • Page 4: Introduction

    Introduction INTRODUCTION Overview This document will provide step-by-step quidance of the use of basic UFG-10 QCAP SDK functions needed to control and capture video using the UFG-10 models without on-board hardware compression in Windows operating system. Please refer to UFG-10 MC Easy Programming Guide for use of the UFG-10 MC model with hardware compression and UFG-10 Linux Software Programming Guide for the use of the non compression models in Linux operating system.
  • Page 5: Start Channel Record Apis

    Start Channel Record APIs START CHANNEL RECORD APIS QCAP_SET_VIDEO_RECORD_PROPERTY( m_pDevice, 0, … ); QCAP_SET_AUDIO_RECORD_PROPERTY( m_pDevice, 0, … ); QCAP_START_RECORD( m_pDevice, 0, “CHANNEL01.MP4” ); STOP CHANNEL RECORD APIS QCAP_STOP_RECORD( m_pDevice, 0 ); START SHARE RECORD APIS QCAP_SET_VIDEO_SHARE_RECORD_PROPERTY( 0, … ); QCAP_SET_AUDIO_SHARE_RECORD_PROPERTY( 0, … ); QCAP_START_SHARE_RECORD( 0, “SHARE01.MP4”...
  • Page 6: Stop Share Record Apis

    Stop Share Record APIs STOP SHARE RECORD APIS QCAP_STOP_SHARE_RECORD( 0 ); Share Record with Multi-Threading DWORD WINAPI on_video_preview_callback_ex( LPVOID params ) … HANDLE events[ 2 ] = { g_h_share_record_thread_stop_events[ 0 ], _h_share_record_buffer_ready_events[ 0 ] }; while( TRUE ) { DWORD returns = WaitForMultipleObjects( 2, events, FALSE, INFINITE ); if( returns == (WAIT_OBJECT_0) ) { break ;...
  • Page 7 Stop Share Record APIs Cntd… DWORD WINAPI on_audio_preview_callback_ex( LPVOID params ) … HANDLE events[ 2 ] = { g_h_share_record_thread_stop_events[ 1 ], g_h_share_record_buffer_ready_events[ 1 ] }; while( TRUE ) { DWORD returns = WaitForMultipleObjects( 2, events, FALSE, INFINITE ); if( returns == (WAIT_OBJECT_0) ) { break ; } if( returns == (WAIT_OBJECT_0 + 1) ) { EnterCriticalSection( g_h_share_record_access_critical_sections[ 1 ] );...
  • Page 8: Start Broadcast Apis

    Start Broadcast APIs START BROADCAST APIS QCAP_CREATE_BROADCAST_RTSP_SERVER( 0, …, &pServer, … ); CAP_SET_VIDEO_BROADCAST_SERVER_PROPERTY( pServer, …, dwFlags ); QCAP_SET_AUDIO_BROADCAST_SERVER_PROPERTY( pServer, … ); QCAP_START_BROADCAST_SERVER( pServer ); Note For compression data user, the QCAP_BROADCAST_FLAG_ENCODE flag should be cleared from the parameter, dwFlags, in QCAP_START_SHARE_RECORD API to disable the software encoder’s resource.
  • Page 9: Broadcast With Multi-Threading

    Broadcast with Multi-Threading 12. BROADCAST WITH MULTI-THREADING DWORD WINAPI on_video_preview_callback_ex( LPVOID params ) … HANDLE events[ 2 ] = { g_h_broadcast_server_thread_stop_events[ 0 ], g_h_broadcast_server_buffer_ready_events[ 0 ] }; while( TRUE ) { DWORD returns = WaitForMultipleObjects( 2, events, FALSE, INFINITE ); if( returns == (WAIT_OBJECT_0) ) { break ;...
  • Page 10 Broadcast with Multi-Threading Cntd… DWORD WINAPI on_audio_preview_callback_ex( LPVOID params ) … HANDLE events[ 2 ] = { g_h_broadcast_server_thread_stop_events[ 1 ], g_h_broadcast_server_buffer_ready_events[ 1 ] }; while( TRUE ) { DWORD returns = WaitForMultipleObjects( 2, events, FALSE, INFINITE ); if( returns == (WAIT_OBJECT_0) ) { break ; } if( returns == (WAIT_OBJECT_0 + 1) ) { EnterCriticalSection( g_h_broadcast_server_access_critical_sections[ 1 ] );...
  • Page 11: Custom Property For Ufg-10

    Custom Property for UFG-10 13. CUSTOM PROPERTY FOR UFG-10 Example for video input’s media content owns HDCP or MarcoVision protection. QCAP_GET_DEVICE_CUSTOM_PROPERTY( pDevice, 202, &HDCP ); IF( HDCP == 1 ) { RECORD_FUNCTION = DISABLE; } IF( HDCP == 0 ) { RECORD_FUNCTION = ENABLE; }...

Table of Contents