Lines Matching refs:size
666 opts[HP5590_OPT_NUM].size = sizeof(SANE_Word);
687 opts[HP5590_OPT_TL_X].size = sizeof(SANE_Fixed);
697 opts[HP5590_OPT_TL_Y].size = sizeof(SANE_Fixed);
707 opts[HP5590_OPT_BR_X].size = sizeof(SANE_Fixed);
717 opts[HP5590_OPT_BR_Y].size = sizeof(SANE_Fixed);
727 opts[HP5590_OPT_MODE].size = MAX_SCAN_MODE_VALUE_LEN;
738 opts[HP5590_OPT_SOURCE].size = MAX_SCAN_SOURCE_VALUE_LEN;
748 opts[HP5590_OPT_RESOLUTION].size = sizeof(SANE_Int);
758 opts[HP5590_OPT_LAMP_TIMEOUT].size = sizeof(SANE_Bool);
768 opts[HP5590_OPT_WAIT_FOR_BUTTON].size = sizeof(SANE_Bool);
778 opts[HP5590_OPT_BUTTON_PRESSED].size = BUTTON_PRESSED_VALUE_MAX_KEY_LEN;
788 opts[HP5590_OPT_COLOR_LED].size = COLOR_LED_VALUE_MAX_KEY_LEN;
798 opts[HP5590_OPT_LCD_COUNTER].size = sizeof(SANE_Int);
808 opts[HP5590_OPT_DOC_IN_ADF].size = sizeof(SANE_Bool);
818 opts[HP5590_OPT_PREVIEW].size = sizeof(SANE_Bool);
828 opts[HP5590_OPT_OVERWRITE_EOP_PIXEL].size = sizeof(SANE_Bool);
838 opts[HP5590_OPT_TRAILING_LINES_MODE].size = TRAILING_LINES_MODE_MAX_KEY_LEN;
848 opts[HP5590_OPT_TRAILING_LINES_COLOR].size = sizeof(SANE_Int);
1002 memset (value , 0, scanner->opts[option].size);
1006 memset (value , 0, scanner->opts[option].size);
1010 memset (value , 0, scanner->opts[option].size);
1014 memset (value , 0, scanner->opts[option].size);
1026 memset (value , 0, scanner->opts[option].size);
1030 memset (value , 0, scanner->opts[option].size);
1034 memset (value , 0, scanner->opts[option].size);
1038 memset (value , 0, scanner->opts[option].size);
1042 memset (value , 0, scanner->opts[option].size);
1074 strncpy (value, BUTTON_PRESSED_VALUE_POWER_KEY, scanner->opts[option].size);
1077 strncpy (value, BUTTON_PRESSED_VALUE_SCAN_KEY, scanner->opts[option].size);
1080 strncpy (value, BUTTON_PRESSED_VALUE_COLLECT_KEY, scanner->opts[option].size);
1083 strncpy (value, BUTTON_PRESSED_VALUE_FILE_KEY, scanner->opts[option].size);
1086 strncpy (value, BUTTON_PRESSED_VALUE_EMAIL_KEY, scanner->opts[option].size);
1089 strncpy (value, BUTTON_PRESSED_VALUE_COPY_KEY, scanner->opts[option].size);
1092 strncpy (value, BUTTON_PRESSED_VALUE_UP_KEY, scanner->opts[option].size);
1095 strncpy (value, BUTTON_PRESSED_VALUE_DOWN_KEY, scanner->opts[option].size);
1098 strncpy (value, BUTTON_PRESSED_VALUE_MODE_KEY, scanner->opts[option].size);
1101 strncpy (value, BUTTON_PRESSED_VALUE_CANCEL_KEY, scanner->opts[option].size);
1105 strncpy (value, BUTTON_PRESSED_VALUE_NONE_KEY, scanner->opts[option].size);
1118 strncpy (value, COLOR_LED_VALUE_BLACKWHITE_KEY, scanner->opts[option].size);
1122 strncpy (value, COLOR_LED_VALUE_COLOR_KEY, scanner->opts[option].size);
1159 memset (value , 0, scanner->opts[option].size);
1163 memset (value , 0, scanner->opts[option].size);
1167 memset (value , 0, scanner->opts[option].size);
1171 memset (value , 0, scanner->opts[option].size);
1175 memset (value , 0, scanner->opts[option].size);
1179 memset (value , 0, scanner->opts[option].size);
1602 DBG (1, "Color 24/48 bits: checking if image size is correctly "
1606 DBG (DBG_err, "Color 24/48 bits: image size doesn't lined up on number of colors (3) "
1607 "(image size: %llu, bytes per line %u)\n",
1612 DBG (1, "Color 24/48 bits: image size is correctly aligned on number of colors "
1613 "(image size: %llu, bytes per line %u)\n",
1616 DBG (1, "Color 24/48 bits: checking if image size is correctly "
1620 DBG (DBG_err, "Color 24/48 bits: image size doesn't lined up on bytes per line "
1621 "(image size: %llu, bytes per line %u)\n",
1626 DBG (1, "Color 24/48 bits: image size correctly aligned on bytes per line "
1627 "(images size: %llu, bytes per line: %u)\n",
1631 DBG (DBG_verbose, "Final image size: %llu\n", scanner->image_size);
1693 convert_gray_and_lineart (struct hp5590_scanner *scanner, SANE_Byte *data, SANE_Int size)
1717 lines = size / bytes_per_line;
1866 DBG (DBG_details, "get from array out of range: idx=%u, size=%u\n", i, length);
1872 convert_to_rgb (struct hp5590_scanner *scanner, SANE_Byte *data, SANE_Int size)
1906 lines = size / bytes_per_line;
1916 DBG (DBG_verbose, "Length : %u\n", size);
1927 bufptr = malloc (size);
1930 memset (bufptr, 0, size);
2104 memcpy (data, bufptr, size);
2119 /* Copy scan data from temporary read buffer and return size copied data. */
2162 /* Align reading size to bytes per line. */
2176 DBG (DBG_verbose, "Aligning requested size to bytes per line "