PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
nvCommon.h
Go to the documentation of this file.
1 /***************************************************************************\
2 |* *|
3 |* Copyright 2007 NVIDIA Corporation. All rights reserved. *|
4 |* *|
5 |* NOTICE TO USER: *|
6 |* *|
7 |* This source code is subject to NVIDIA ownership rights under U.S. *|
8 |* and international Copyright laws. Users and possessors of this *|
9 |* source code are hereby granted a nonexclusive, royalty-free *|
10 |* license to use this code in individual and commercial software. *|
11 |* *|
12 |* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE *|
13 |* CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR *|
14 |* IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH *|
15 |* REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF *|
16 |* MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR *|
17 |* PURPOSE. IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, *|
18 |* INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES *|
19 |* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN *|
20 |* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING *|
21 |* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE *|
22 |* CODE. *|
23 |* *|
24 |* U.S. Government End Users. This source code is a "commercial item" *|
25 |* as that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting *|
26 |* of "commercial computer software" and "commercial computer software *|
27 |* documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) *|
28 |* and is provided to the U.S. Government only as a commercial end item. *|
29 |* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through *|
30 |* 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the *|
31 |* source code with only those rights set forth herein. *|
32 |* *|
33 |* Any use of this source code in individual and commercial software must *|
34 |* include, in the user documentation and internal comments to the code, *|
35 |* the above Disclaimer and U.S. Government End Users Notice. *|
36 |* *|
37 |* *|
38 \***************************************************************************/
39 
40 #ifndef NVCOMMON_H
41 #define NVCOMMON_H
42 
43 #include "nvapi.h"
44 
46 {
61 };
62 
63 
64 // Definition of command line option structure.
65 struct nvOptions
66 {
67  NVVIOSIGNALFORMAT videoFormat;
68  NVVIODATAFORMAT dataFormat;
69  NVVIOCOMPSYNCTYPE syncType;
70  NVVIOSYNCSOURCE syncSource;
72  bool syncEnable;
73  bool frameLock;
74  int numFrames;
75  int repeat;
76  int gpu; //output GPU
77  bool block;
78  bool videoInfo;
79  bool fps;
80  int fsaa;
81  int hDelay;
82  int vDelay;
84  bool field;
85  bool console;
86  bool log;
87  bool cscEnable;
88  double cscOffset[3];
89  double cscScale[3];
90  float cscMatrix[3][3];
91  float gamma[3];
92  bool alphaComp;
93  bool yComp;
94  bool crComp;
95  bool cbComp;
96  int yCompRange[4];
97  int crCompRange[4];
98  int cbCompRange[4];
99  int x;
100  int y;
101  int width;
102  int height;
103  char filename[100];
104  char audioFile[100];
107  //Capture settings//
108  int captureGPU; //capture GPU
109  int captureDevice; //capture card number
110  bool dualLink;
111  NVVIOCOMPONENTSAMPLING sampling;
115 };
116 
117 #endif
int hDelay
Definition: nvCommon.h:81
int gpu
Definition: nvCommon.h:76
int bitsPerComponent
Definition: nvCommon.h:112
double cscScale[3]
Definition: nvCommon.h:89
NVVIODATAFORMAT dataFormat
Definition: nvCommon.h:68
float gamma[3]
Definition: nvCommon.h:91
NVVIOSYNCSOURCE syncSource
Definition: nvCommon.h:70
bool block
Definition: nvCommon.h:77
int fsaa
Definition: nvCommon.h:80
eTestPattern
Definition: nvCommon.h:45
bool field
Definition: nvCommon.h:84
bool fullScreen
Definition: nvCommon.h:114
float cscMatrix[3][3]
Definition: nvCommon.h:90
char filename[100]
Definition: nvCommon.h:103
bool cbComp
Definition: nvCommon.h:95
int audioChannels
Definition: nvCommon.h:105
int height
Definition: nvCommon.h:102
bool frameLock
Definition: nvCommon.h:73
bool videoInfo
Definition: nvCommon.h:78
char audioFile[100]
Definition: nvCommon.h:104
bool log
Definition: nvCommon.h:86
bool cscEnable
Definition: nvCommon.h:87
int cbCompRange[4]
Definition: nvCommon.h:98
NVVIOCOMPONENTSAMPLING sampling
Definition: nvCommon.h:111
bool yComp
Definition: nvCommon.h:93
NVVIOCOMPSYNCTYPE syncType
Definition: nvCommon.h:69
bool console
Definition: nvCommon.h:85
bool alphaComp
Definition: nvCommon.h:92
bool crComp
Definition: nvCommon.h:94
int repeat
Definition: nvCommon.h:75
bool fps
Definition: nvCommon.h:79
int flipQueueLength
Definition: nvCommon.h:83
NVVIOSIGNALFORMAT videoFormat
Definition: nvCommon.h:67
bool dualLink
Definition: nvCommon.h:110
int width
Definition: nvCommon.h:101
bool syncEnable
Definition: nvCommon.h:72
int yCompRange[4]
Definition: nvCommon.h:96
eTestPattern testPattern
Definition: nvCommon.h:71
int numFrames
Definition: nvCommon.h:74
bool expansionEnable
Definition: nvCommon.h:113
int audioBits
Definition: nvCommon.h:106
int captureDevice
Definition: nvCommon.h:109
int x
Definition: nvCommon.h:99
int vDelay
Definition: nvCommon.h:82
int captureGPU
Definition: nvCommon.h:108
double cscOffset[3]
Definition: nvCommon.h:88
int crCompRange[4]
Definition: nvCommon.h:97