Commit 2a176016 authored by Andrey Filippov's avatar Andrey Filippov

working on 16-bit mode

parent 6ddc329c
...@@ -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]){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment