Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-autoexposure
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-autoexposure
Commits
69defb6b
Commit
69defb6b
authored
Nov 27, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added debug output
parent
d495822f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
aexp_utils.c
src/aexp_utils.c
+1
-1
autoexposure.c
src/autoexposure.c
+4
-1
No files found.
src/aexp_utils.c
View file @
69defb6b
...
...
@@ -133,7 +133,7 @@ long getPercentile(unsigned long frame,int color, unsigned long fraction, int re
else
lseek
(
fd_histogram_cache
,
LSEEK_HIST_WAIT_Y
,
SEEK_END
);
/// wait for just Y (G1)
MDF2
(
fprintf
(
stderr
,
"this_frame: 0x%lx, NOW: 0x%lx
\n
"
,
this_frame
,
GLOBALPARS_SNGL
(
G_THIS_FRAME
)));
lseek
(
fd_histogram_cache
,
LSEEK_HIST_NEEDED
+
(
request_colors
<<
8
),
SEEK_END
);
/// specify that reverse histogram(s) are needed
hist_index
=
lseek
(
fd_histogram_cache
,
frame
,
SEEK_SET
);
/// request histograms for the specified frame
hist_index
=
lseek
(
fd_histogram_cache
,
frame
,
SEEK_SET
);
/// request histograms for the specified frame
MDF2
(
fprintf
(
stderr
,
"got histogram for frame: 0x%lx, NOW: 0x%lx
\n
"
,
histogram_cache
[
hist_index
].
frame
,
GLOBALPARS_SNGL
(
G_THIS_FRAME
)));
/// histograms for frame will be available 1 frame later
if
(
hist_index
<
0
)
{
...
...
src/autoexposure.c
View file @
69defb6b
...
...
@@ -151,7 +151,10 @@ int main (int argc, char *argv[]) {
// lseek(fd_fparmsall,10+LSEEK_FRAME_WAIT_ABS, SEEK_END); /// skip 3 frames (first got 0 pixels, 2- 0x3fff) - one extra, sometimes it is needed
// with 10 - 3 bad frames
lseek
(
fd_fparmsall
,
14
+
LSEEK_FRAME_WAIT_ABS
,
SEEK_END
);
/// skip 3 frames (first got 0 pixels, 2- 0x3fff) - one extra, sometimes it is needed
MDF0
(
fprintf
(
stderr
,
"autoexposure#%d this_frame = 0x%x
\n
"
,
sensor_port
,
(
int
)
GLOBALPARS_SNGL
(
G_THIS_FRAME
)));
// lseek(fd_fparmsall,14+LSEEK_FRAME_WAIT_ABS, SEEK_END); /// skip 3 frames (first got 0 pixels, 2- 0x3fff) - one extra, sometimes it is needed
lseek
(
fd_fparmsall
,
20
+
LSEEK_FRAME_WAIT_ABS
,
SEEK_END
);
/// skip 3 frames (first got 0 pixels, 2- 0x3fff) - one extra, sometimes it is needed
MDF0
(
fprintf
(
stderr
,
"frame 14: autoexposure#%d this_frame = 0x%x
\n
"
,
sensor_port
,
(
int
)
GLOBALPARS_SNGL
(
G_THIS_FRAME
)));
while
(
1
)
{
/// restart loop
if
(
initParams
(
daemon_bit
)
<
0
)
exit
(
1
);
/// initialization errors
...
...
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