PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
src
PlusDataCollection
NVidiaDVP
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
45
enum
eTestPattern
46
{
47
TEST_PATTERN_RGB_COLORBARS_100
,
48
TEST_PATTERN_RGB_COLORBARS_75
,
49
TEST_PATTERN_YCRCB_COLORBARS
,
50
TEST_PATTERN_COLORBARS8_75
,
51
TEST_PATTERN_COLORBARS8_100
,
52
TEST_PATTERN_COLORBARS10_75
,
53
TEST_PATTERN_COLORBARS10_100
,
54
TEST_PATTERN_FRAME
,
55
TEST_PATTERN_LOGO
,
56
TEST_PATTERN_RAMP8
,
57
TEST_PATTERN_RAMP16
,
58
TEST_PATTERN_BAR
,
59
TEST_PATTERN_LINES
,
60
TEST_PATTERN_SPHERE
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
;
71
eTestPattern
testPattern
;
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
;
83
int
flipQueueLength
;
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];
105
int
audioChannels
;
106
int
audioBits
;
107
//Capture settings//
108
int
captureGPU
;
//capture GPU
109
int
captureDevice
;
//capture card number
110
bool
dualLink
;
111
NVVIOCOMPONENTSAMPLING
sampling
;
112
int
bitsPerComponent
;
113
bool
expansionEnable
;
114
bool
fullScreen
;
115
};
116
117
#endif
nvOptions::hDelay
int hDelay
Definition:
nvCommon.h:81
nvOptions::gpu
int gpu
Definition:
nvCommon.h:76
TEST_PATTERN_LINES
Definition:
nvCommon.h:59
nvOptions::bitsPerComponent
int bitsPerComponent
Definition:
nvCommon.h:112
nvOptions::cscScale
double cscScale[3]
Definition:
nvCommon.h:89
nvOptions::y
int y
Definition:
nvCommon.h:100
nvOptions::dataFormat
NVVIODATAFORMAT dataFormat
Definition:
nvCommon.h:68
nvOptions::gamma
float gamma[3]
Definition:
nvCommon.h:91
nvOptions::syncSource
NVVIOSYNCSOURCE syncSource
Definition:
nvCommon.h:70
nvOptions::block
bool block
Definition:
nvCommon.h:77
nvOptions::fsaa
int fsaa
Definition:
nvCommon.h:80
eTestPattern
eTestPattern
Definition:
nvCommon.h:45
TEST_PATTERN_FRAME
Definition:
nvCommon.h:54
nvOptions::field
bool field
Definition:
nvCommon.h:84
nvOptions::fullScreen
bool fullScreen
Definition:
nvCommon.h:114
nvOptions::cscMatrix
float cscMatrix[3][3]
Definition:
nvCommon.h:90
nvOptions::filename
char filename[100]
Definition:
nvCommon.h:103
nvOptions::cbComp
bool cbComp
Definition:
nvCommon.h:95
nvOptions::audioChannels
int audioChannels
Definition:
nvCommon.h:105
nvOptions::height
int height
Definition:
nvCommon.h:102
TEST_PATTERN_RAMP16
Definition:
nvCommon.h:57
TEST_PATTERN_RGB_COLORBARS_75
Definition:
nvCommon.h:48
TEST_PATTERN_COLORBARS8_75
Definition:
nvCommon.h:50
nvOptions::frameLock
bool frameLock
Definition:
nvCommon.h:73
nvOptions::videoInfo
bool videoInfo
Definition:
nvCommon.h:78
nvOptions::audioFile
char audioFile[100]
Definition:
nvCommon.h:104
nvOptions::log
bool log
Definition:
nvCommon.h:86
nvOptions::cscEnable
bool cscEnable
Definition:
nvCommon.h:87
nvOptions::cbCompRange
int cbCompRange[4]
Definition:
nvCommon.h:98
nvOptions::sampling
NVVIOCOMPONENTSAMPLING sampling
Definition:
nvCommon.h:111
nvOptions
Definition:
nvCommon.h:65
TEST_PATTERN_LOGO
Definition:
nvCommon.h:55
nvOptions::yComp
bool yComp
Definition:
nvCommon.h:93
nvOptions::syncType
NVVIOCOMPSYNCTYPE syncType
Definition:
nvCommon.h:69
nvOptions::console
bool console
Definition:
nvCommon.h:85
nvOptions::alphaComp
bool alphaComp
Definition:
nvCommon.h:92
TEST_PATTERN_COLORBARS10_100
Definition:
nvCommon.h:53
nvOptions::crComp
bool crComp
Definition:
nvCommon.h:94
TEST_PATTERN_BAR
Definition:
nvCommon.h:58
nvOptions::repeat
int repeat
Definition:
nvCommon.h:75
nvOptions::fps
bool fps
Definition:
nvCommon.h:79
nvOptions::flipQueueLength
int flipQueueLength
Definition:
nvCommon.h:83
TEST_PATTERN_YCRCB_COLORBARS
Definition:
nvCommon.h:49
TEST_PATTERN_RAMP8
Definition:
nvCommon.h:56
nvOptions::videoFormat
NVVIOSIGNALFORMAT videoFormat
Definition:
nvCommon.h:67
nvOptions::dualLink
bool dualLink
Definition:
nvCommon.h:110
nvOptions::width
int width
Definition:
nvCommon.h:101
nvOptions::syncEnable
bool syncEnable
Definition:
nvCommon.h:72
TEST_PATTERN_RGB_COLORBARS_100
Definition:
nvCommon.h:47
nvOptions::yCompRange
int yCompRange[4]
Definition:
nvCommon.h:96
nvOptions::testPattern
eTestPattern testPattern
Definition:
nvCommon.h:71
TEST_PATTERN_COLORBARS10_75
Definition:
nvCommon.h:52
TEST_PATTERN_COLORBARS8_100
Definition:
nvCommon.h:51
nvOptions::numFrames
int numFrames
Definition:
nvCommon.h:74
nvOptions::expansionEnable
bool expansionEnable
Definition:
nvCommon.h:113
nvOptions::audioBits
int audioBits
Definition:
nvCommon.h:106
nvOptions::captureDevice
int captureDevice
Definition:
nvCommon.h:109
nvOptions::x
int x
Definition:
nvCommon.h:99
nvOptions::vDelay
int vDelay
Definition:
nvCommon.h:82
nvOptions::captureGPU
int captureGPU
Definition:
nvCommon.h:108
nvOptions::cscOffset
double cscOffset[3]
Definition:
nvCommon.h:88
TEST_PATTERN_SPHERE
Definition:
nvCommon.h:60
nvOptions::crCompRange
int crCompRange[4]
Definition:
nvCommon.h:97
Generated on Fri Nov 15 2024 01:47:34 for PlusLib by
1.8.15