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
2eafe4e1
Commit
2eafe4e1
authored
Dec 13, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should support immediate mode (*:-2)
parent
af54c7cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
parsedit.php
src/php_top/parsedit.php
+6
-20
No files found.
src/php_top/parsedit.php
View file @
2eafe4e1
...
@@ -809,31 +809,20 @@ function applyPost_debug($todo,$noFinalWait=false) {
...
@@ -809,31 +809,20 @@ function applyPost_debug($todo,$noFinalWait=false) {
}
}
$broadcast_sorted
=
split_broadcast
(
$pgmpars
);
$broadcast_sorted
=
split_broadcast
(
$pgmpars
);
ksort
(
$broadcast_sorted
);
ksort
(
$broadcast_sorted
);
$frame_to_apply
=
$frame_zero
+
$since
;
if
(
$since
<
0
){
$frame_to_apply
=
ELPHEL_CONST_FRAME_IMMED
;
}
foreach
(
$broadcast_sorted
as
$bcast
=>
$params
){
foreach
(
$broadcast_sorted
as
$bcast
=>
$params
){
if
(
$bcast
){
if
(
$bcast
){
elphel_set_P_arr
(
$GLOBALS
[
sensor_port
],
$pgmpars
,
$frame_zero
+
$since
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
,
$bcast
);
elphel_set_P_arr
(
$GLOBALS
[
sensor_port
],
$pgmpars
,
$frame_to_apply
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
,
$bcast
);
}
else
{
}
else
{
elphel_set_P_arr
(
$GLOBALS
[
sensor_port
],
$pgmpars
,
$frame_zero
+
$since
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
/// Are these flags needed?
elphel_set_P_arr
(
$GLOBALS
[
sensor_port
],
$pgmpars
,
$frame_to_apply
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
/// Are these flags needed?
}
}
}
}
// elphel_set_P_arr ($GLOBALS [sensor_port], $pgmpars, $frame_zero+$since,ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC); /// Are these flags needed?
// if ($showSeqMode > 0) {
// printf ( "frame_zero=%d, since=%d",$frame_zero,$since);
// printf ( "elphel_set_P_arr ($GLOBALS [sensor_port], $pgmpars, $frame_zero+$since,ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC)");
// ob_flush ();
// flush ();
// }
}
}
if
(
!
$noFinalWait
)
{
if
(
!
$noFinalWait
)
{
$frame_now
=
$since
+
$frame_zero
+
1
;
/// wait just 1 frame longer that the target of the last command in $todo
$frame_now
=
$since
+
$frame_zero
+
1
;
/// wait just 1 frame longer that the target of the last command in $todo
// $frame_now+=256;
// if ($showSeqMode > 0) {
// printf ( "frame_zero=%d, since=%d",$frame_zero,$since);
// printf ( "elphel_set_P_arr ($GLOBALS [sensor_port], $pgmpars, $frame_zero+$since,ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC)");
// ob_flush ();
// flush ();
// }
// echo "since=$since\n"; ob_flush(); flush();
// echo "since=$since\n"; ob_flush(); flush();
if
(
$showSeqMode
>
0
)
{
printf
(
"(final) waiting frame %d (0x%x) ... "
,
$frame_now
,
$frame_now
);
ob_flush
();
flush
();}
if
(
$showSeqMode
>
0
)
{
printf
(
"(final) waiting frame %d (0x%x) ... "
,
$frame_now
,
$frame_now
);
ob_flush
();
flush
();}
if
(
$waitingEnabled
)
{
if
(
$waitingEnabled
)
{
...
@@ -847,9 +836,6 @@ function applyPost_debug($todo,$noFinalWait=false) {
...
@@ -847,9 +836,6 @@ function applyPost_debug($todo,$noFinalWait=false) {
}
}
}
}
}
}
// $rslt2 = elphel_wait_frame_abs($GLOBALS [sensor_port], 100);
// $rslt3 = elphel_wait_frame_abs($GLOBALS [sensor_port], $frame_now);
// $rslt4 = elphel_skip_frames($GLOBALS [sensor_port],4);
if
(
$showSeqMode
>
0
)
{
printf
(
"done, frame is %d, rslt=%d, frame_now was %d, waitingEnabled=%d
\n
"
,
if
(
$showSeqMode
>
0
)
{
printf
(
"done, frame is %d, rslt=%d, frame_now was %d, waitingEnabled=%d
\n
"
,
elphel_get_frame
(
$GLOBALS
[
sensor_port
]),
$rslt
,
$frame_now
,
$waitingEnabled
);
elphel_get_frame
(
$GLOBALS
[
sensor_port
]),
$rslt
,
$frame_now
,
$waitingEnabled
);
...
...
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