Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
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-web-393
Commits
357b02d6
Commit
357b02d6
authored
Jan 19, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more comments
parent
9f686319
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
raw.php
src/php_top/raw.php
+2
-0
raw.py
src/python_tests/raw.py
+1
-1
No files found.
src/php_top/raw.php
View file @
357b02d6
...
@@ -88,6 +88,8 @@ if($cmd=="run"){
...
@@ -88,6 +88,8 @@ if($cmd=="run"){
// STEP 2: run
// STEP 2: run
for
(
$i
=
0
;
$i
<
count
(
$ports
);
$i
++
){
for
(
$i
=
0
;
$i
<
count
(
$ports
);
$i
++
){
// second argument: 0 or 1 - location in video buffer
// second argument: 0 or 1 - location in video buffer
// setting to 0 here and waiting frame_num+1, but
// if frame_num+2 is also of interest - it needs to be set to 1
set_vbuf_position
(
$ports
[
$i
],
0
);
set_vbuf_position
(
$ports
[
$i
],
0
);
// waiting for frame is built-in in the driver
// waiting for frame is built-in in the driver
copy_vbuf_to_sbuf
(
$ports
[
$i
],
$frame_num
+
1
);
copy_vbuf_to_sbuf
(
$ports
[
$i
],
$frame_num
+
1
);
...
...
src/python_tests/raw.py
View file @
357b02d6
...
@@ -157,7 +157,7 @@ for i in sensors:
...
@@ -157,7 +157,7 @@ for i in sensors:
print
(
"Port "
+
str
(
i
)
+
":"
)
print
(
"Port "
+
str
(
i
)
+
":"
)
# set video buf position: 0 or 1
# set video buf position: 0 or 1
- need to manually alterate for each frame (if have time)
set_vbuf_position
(
i
,
0
)
set_vbuf_position
(
i
,
0
)
# waiting for frame is built-in in the driver
# waiting for frame is built-in in the driver
copy_vbuf_to_sbuf
(
i
,
tmp_frame_num
+
1
)
copy_vbuf_to_sbuf
(
i
,
tmp_frame_num
+
1
)
...
...
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