Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
8aa145ee
Commit
8aa145ee
authored
Dec 30, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed histogram window program 0xffe -> 0xfffe
parent
a7e2dd1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pgm_functions.c
src/drivers/elphel/pgm_functions.c
+4
-4
No files found.
src/drivers/elphel/pgm_functions.c
View file @
8aa145ee
...
...
@@ -1797,16 +1797,16 @@ int pgm_hist (int sensor_port, ///< sensor port number (0..3
poffs
=
HIST_SUBCHN_OFFSET
*
sub_chn
;
// int fpga_addr=(frame16 <0) ? X313_SEQ_ASAP : (X313_SEQ_FRAME0+frame16);
// calculate absolute window from the relative, apply limits
hist_setup_data
.
width
=
((
thispars
->
pars
[
P_HISTWND_RWIDTH
+
poffs
]
*
thispars
->
pars
[
P_ACTUAL_WIDTH
])
>>
16
)
&
0xffe
;
hist_setup_data
.
width
=
((
thispars
->
pars
[
P_HISTWND_RWIDTH
+
poffs
]
*
thispars
->
pars
[
P_ACTUAL_WIDTH
])
>>
16
)
&
0xff
f
e
;
if
(
hist_setup_data
.
width
<
2
)
hist_setup_data
.
width
=
2
;
else
if
(
hist_setup_data
.
width
>
thispars
->
pars
[
P_ACTUAL_WIDTH
])
hist_setup_data
.
width
=
thispars
->
pars
[
P_ACTUAL_WIDTH
];
hist_setup_data
.
left
=
((
thispars
->
pars
[
P_HISTWND_RLEFT
+
poffs
]
*
(
thispars
->
pars
[
P_ACTUAL_WIDTH
]
-
hist_setup_data
.
width
))
>>
16
)
&
0xffe
;
hist_setup_data
.
left
=
((
thispars
->
pars
[
P_HISTWND_RLEFT
+
poffs
]
*
(
thispars
->
pars
[
P_ACTUAL_WIDTH
]
-
hist_setup_data
.
width
))
>>
16
)
&
0xff
f
e
;
if
(
hist_setup_data
.
left
>
(
thispars
->
pars
[
P_ACTUAL_WIDTH
]
-
hist_setup_data
.
width
))
hist_setup_data
.
left
=
thispars
->
pars
[
P_ACTUAL_WIDTH
]
-
hist_setup_data
.
width
;
hist_setup_data
.
height
=
((
thispars
->
pars
[
P_HISTWND_RHEIGHT
+
poffs
]
*
thispars
->
pars
[
P_ACTUAL_HEIGHT
])
>>
16
)
&
0xffe
;
hist_setup_data
.
height
=
((
thispars
->
pars
[
P_HISTWND_RHEIGHT
+
poffs
]
*
thispars
->
pars
[
P_ACTUAL_HEIGHT
])
>>
16
)
&
0xff
f
e
;
if
(
hist_setup_data
.
height
<
2
)
hist_setup_data
.
height
=
2
;
else
if
(
hist_setup_data
.
height
>
thispars
->
pars
[
P_ACTUAL_HEIGHT
])
hist_setup_data
.
height
=
thispars
->
pars
[
P_ACTUAL_HEIGHT
];
hist_setup_data
.
top
=
((
thispars
->
pars
[
P_HISTWND_RTOP
+
poffs
]
*
(
thispars
->
pars
[
P_ACTUAL_HEIGHT
]
-
hist_setup_data
.
height
))
>>
16
)
&
0xffe
;
hist_setup_data
.
top
=
((
thispars
->
pars
[
P_HISTWND_RTOP
+
poffs
]
*
(
thispars
->
pars
[
P_ACTUAL_HEIGHT
]
-
hist_setup_data
.
height
))
>>
16
)
&
0xff
f
e
;
if
(
hist_setup_data
.
top
>
(
thispars
->
pars
[
P_ACTUAL_HEIGHT
]
-
hist_setup_data
.
height
))
hist_setup_data
.
top
=
thispars
->
pars
[
P_ACTUAL_HEIGHT
]
-
hist_setup_data
.
height
;
if
((
hist_setup_data
.
left
!=
thispars
->
pars
[
P_HISTWND_LEFT
+
poffs
])
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment