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

working on 16-bit mode

parent 6ddc329c
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2195,7 +2195,14 @@ int pgm_memcompressor (int sensor_port, ///< sensor port number (
    width_marg = thispars->pars[P_ACTUAL_WIDTH];
    height_marg = thispars->pars[P_ACTUAL_HEIGHT];
    // 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_rows_m1 = (height_marg>> 4) - 1; // before adding margins;

    switch(thispars->pars[P_COLOR]){