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
2a176016
Commit
2a176016
authored
Mar 29, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on 16-bit mode
parent
6ddc329c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
pgm_functions.c
src/drivers/elphel/pgm_functions.c
+8
-1
No files found.
src/drivers/elphel/pgm_functions.c
View file @
2a176016
...
@@ -2195,7 +2195,14 @@ int pgm_memcompressor (int sensor_port, ///< sensor port number (
...
@@ -2195,7 +2195,14 @@ int pgm_memcompressor (int sensor_port, ///< sensor port number (
width_marg
=
thispars
->
pars
[
P_ACTUAL_WIDTH
];
width_marg
=
thispars
->
pars
[
P_ACTUAL_WIDTH
];
height_marg
=
thispars
->
pars
[
P_ACTUAL_HEIGHT
];
height_marg
=
thispars
->
pars
[
P_ACTUAL_HEIGHT
];
// NC393: maybe add later monochrome mode with small tiles?
// NC393: maybe add later monochrome mode with small tiles?
if
((
thispars
->
pars
[
P_COLOR
]
==
COLORMODE_RAW
)
&&
(
thispars
->
pars
[
P_BITS
]
>
8
)){
cmprs_frame_format
.
num_macro_cols_m1
=
((
width_marg
>>
4
)
<<
1
)
-
1
;
// before adding margins
}
else
{
cmprs_frame_format
.
num_macro_cols_m1
=
(
width_marg
>>
4
)
-
1
;
// before adding margins
cmprs_frame_format
.
num_macro_cols_m1
=
(
width_marg
>>
4
)
-
1
;
// before adding margins
}
// cmprs_frame_format.num_macro_cols_m1 = (width_marg>> 4) - 1; // before adding margins
cmprs_frame_format
.
num_macro_rows_m1
=
(
height_marg
>>
4
)
-
1
;
// before adding margins;
cmprs_frame_format
.
num_macro_rows_m1
=
(
height_marg
>>
4
)
-
1
;
// before adding margins;
switch
(
thispars
->
pars
[
P_COLOR
]){
switch
(
thispars
->
pars
[
P_COLOR
]){
...
...
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