Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-php-extension
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-php-extension
Commits
56fe52f2
Commit
56fe52f2
authored
Jul 04, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed typo
parent
185e5c46
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
elphel_php.c
src/ext/elphel/elphel_php.c
+1
-1
No files found.
src/ext/elphel/elphel_php.c
View file @
56fe52f2
...
@@ -2380,7 +2380,7 @@ PHP_FUNCTION(elphel_frame2ts) {
...
@@ -2380,7 +2380,7 @@ PHP_FUNCTION(elphel_frame2ts) {
cframe
=
ELPHEL_GLOBALPARS
(
port
,
G_COMPRESSOR_FRAME
);
cframe
=
ELPHEL_GLOBALPARS
(
port
,
G_COMPRESSOR_FRAME
);
cts
=
ELPHEL_GLOBALPARS
(
port
,
G_COMPRESSOR_SEC
)
+
0
.
000001
*
ELPHEL_GLOBALPARS
(
port
,
G_COMPRESSOR_USEC
);
cts
=
ELPHEL_GLOBALPARS
(
port
,
G_COMPRESSOR_SEC
)
+
0
.
000001
*
ELPHEL_GLOBALPARS
(
port
,
G_COMPRESSOR_USEC
);
if
(
frame
>
0
){
// if <=0 (or absent) return last compressed frame
if
(
frame
>
0
){
// if <=0 (or absent) return last compressed frame
// Read trigger decimation (used when slower se
sn
or is triggered by the faster one, like MT9P006 from Boson-640
// Read trigger decimation (used when slower se
ns
or is triggered by the faster one, like MT9P006 from Boson-640
trig_decimate
=
((
struct
framepars_t
*
)
ELPHEL_G
(
framePars
[
port
]))[
cframe
&
PARS_FRAMES_MASK
].
pars
[
P_TRIG_DECIMATE
]
+
1
;
trig_decimate
=
((
struct
framepars_t
*
)
ELPHEL_G
(
framePars
[
port
]))[
cframe
&
PARS_FRAMES_MASK
].
pars
[
P_TRIG_DECIMATE
]
+
1
;
// read trigger period (even for externally triggered slaves this value has to be defined and used for period)
// read trigger period (even for externally triggered slaves this value has to be defined and used for period)
period_sec
=
0
.
00000001
*
trig_decimate
*
(((
struct
framepars_t
*
)
ELPHEL_G
(
framePars
[
port
]))[
cframe
&
PARS_FRAMES_MASK
].
pars
[
P_TRIG_PERIOD
]);
period_sec
=
0
.
00000001
*
trig_decimate
*
(((
struct
framepars_t
*
)
ELPHEL_G
(
framePars
[
port
]))[
cframe
&
PARS_FRAMES_MASK
].
pars
[
P_TRIG_PERIOD
]);
...
...
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