kopia lustrzana https://gitlab.com/sane-project/backends
spelling fixes for pieusb backend
rodzic
064d73ed5a
commit
63c686b929
|
@ -853,7 +853,7 @@ sane_get_parameters (SANE_Handle handle, SANE_Parameters * params)
|
|||
}
|
||||
|
||||
/**
|
||||
* Initiates aquisition of an image from the scanner.
|
||||
* Initiates acquisition of an image from the scanner.
|
||||
* SCAN Phase 1: initialization and calibration
|
||||
* (SCAN Phase 2: line-by-line scan & read is not implemented)
|
||||
* SCAN Phase 3: get CCD-mask
|
||||
|
|
|
@ -548,7 +548,7 @@ sanei_pieusb_buffer_get(struct Pieusb_Read_Buffer* buffer, SANE_Byte* data, SANE
|
|||
}
|
||||
} else {
|
||||
/* not implemented */
|
||||
DBG(DBG_error, "buffer_put(): paccket size & density of %d/%d not implementd\n", buffer->packet_size_bytes, buffer->packing_density);
|
||||
DBG(DBG_error, "buffer_put(): paccket size & density of %d/%d not implemented\n", buffer->packet_size_bytes, buffer->packing_density);
|
||||
return;
|
||||
}
|
||||
*len = n;
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
* Pieusb scanner commands
|
||||
*
|
||||
* Each scanner command has its own function.
|
||||
* See the sort description preceeding each function.
|
||||
* See the sort description preceding each function.
|
||||
*
|
||||
* ========================================================================= */
|
||||
|
||||
|
@ -245,7 +245,7 @@ sanei_pieusb_cmd_slide(SANE_Int device_number, slide_action action, struct Pieus
|
|||
* @param device_number Device number
|
||||
* @param sense Sense data
|
||||
* @param status Command result status
|
||||
* @see struc Pieusb_Sense
|
||||
* @see struct Pieusb_Sense
|
||||
*/
|
||||
void
|
||||
sanei_pieusb_cmd_get_sense(SANE_Int device_number, struct Pieusb_Sense* sense, struct Pieusb_Command_Status *status, PIEUSB_Status *ret)
|
||||
|
@ -269,7 +269,7 @@ sanei_pieusb_cmd_get_sense(SANE_Int device_number, struct Pieusb_Sense* sense, s
|
|||
return;
|
||||
}
|
||||
|
||||
/* Decode data recieved */
|
||||
/* Decode data received */
|
||||
sense->errorCode = _get_byte (data, 0);
|
||||
sense->segment = _get_byte (data, 1);
|
||||
sense->senseKey = _get_byte (data, 2);
|
||||
|
@ -622,7 +622,7 @@ sanei_pieusb_cmd_get_parameters(SANE_Int device_number, struct Pieusb_Scan_Param
|
|||
* e: d7 00 available lines 215
|
||||
* 10:00 00
|
||||
*/
|
||||
/* Decode data recieved */
|
||||
/* Decode data received */
|
||||
parameters->width = _get_short(data, 0);
|
||||
parameters->lines = _get_short(data, 2);
|
||||
parameters->bytes = _get_short(data, 4);
|
||||
|
@ -675,7 +675,7 @@ sanei_pieusb_cmd_inquiry(SANE_Int device_number, struct Pieusb_Scanner_Propertie
|
|||
return;
|
||||
}
|
||||
|
||||
/* Decode data recieved */
|
||||
/* Decode data received */
|
||||
inq->deviceType = _get_byte(data, 0);
|
||||
inq->additionalLength = _get_byte(data, 4);
|
||||
_copy_bytes((SANE_Byte*)(inq->vendor), data+8, 8); /* Note: not 0-terminated */
|
||||
|
@ -859,7 +859,7 @@ sanei_pieusb_cmd_get_mode(SANE_Int device_number, struct Pieusb_Mode* mode, stru
|
|||
return;
|
||||
}
|
||||
|
||||
/* Decode data recieved */
|
||||
/* Decode data received */
|
||||
mode->resolution = _get_short (data, 2);
|
||||
mode->passes = _get_byte (data, 4);
|
||||
mode->colorDepth = _get_byte (data, 5);
|
||||
|
@ -1185,7 +1185,7 @@ sanei_pieusb_cmd_read_state(SANE_Int device_number, struct Pieusb_Scanner_State*
|
|||
data[5] = 1;
|
||||
status->pieusb_status = PIEUSB_STATUS_GOOD;
|
||||
}
|
||||
/* Decode data recieved */
|
||||
/* Decode data received */
|
||||
state->buttonPushed = _get_byte(data, 0);
|
||||
state->warmingUp = _get_byte(data, 5);
|
||||
state->scanning = _get_byte(data, 6);
|
||||
|
|
|
@ -167,7 +167,7 @@ struct Pieusb_Mode {
|
|||
SANE_Byte colorFormat;
|
||||
/* 0x04 = index, cf. INQUIRY
|
||||
* bit 7-3 : 0 (unused)
|
||||
* bit 2 : Index = scanned data are lines preceeded by a two-byte index, 'RR', 'GG', 'BB', or 'II'
|
||||
* bit 2 : Index = scanned data are lines preceded by a two-byte index, 'RR', 'GG', 'BB', or 'II'
|
||||
* bit 1 : Line = scanned data are (probably) lines in RGBI order (needs testing)
|
||||
* bit 0 : Pixel = scanned data are always RGB-pixels, i.e. 3x2 bytes at depth = 16 bits, 3 bytes
|
||||
* at depth = 8 bits, and 3 packed bytes at depth = 1. This is also the case in
|
||||
|
|
|
@ -82,7 +82,7 @@ static void pieusb_calculate_shading(struct Pieusb_Scanner *scanner, SANE_Byte*
|
|||
/* sub to sanei_pieusb_post() */
|
||||
static SANE_Status pieusb_write_pnm_file (char *filename, uint16_t *data, int depth, int channels, int pixels_per_line, int lines);
|
||||
|
||||
/* Auxilary */
|
||||
/* Auxiliary */
|
||||
static size_t max_string_size (SANE_String_Const const strings[]);
|
||||
static double getGain(int gain);
|
||||
static int getGainSetting(double gain);
|
||||
|
@ -1171,7 +1171,7 @@ sanei_pieusb_on_cancel (Pieusb_Scanner * scanner)
|
|||
}
|
||||
|
||||
/**
|
||||
* Determine maximum lengt of a set of strings.
|
||||
* Determine maximum length of a set of strings.
|
||||
*
|
||||
* @param strings Set of strings
|
||||
* @return maximum length
|
||||
|
@ -1672,7 +1672,7 @@ static void pieusb_calculate_shading(struct Pieusb_Scanner *scanner, SANE_Byte*
|
|||
SANE_Int shading_width = scanner->device->shading_parameters[0].pixelsPerLine;
|
||||
SANE_Int shading_height = scanner->device->shading_parameters[0].nLines;
|
||||
|
||||
/* Initialze all to 0 */
|
||||
/* Initialize all to 0 */
|
||||
for (k = 0; k < SHADING_PARAMETERS_INFO_COUNT; k++) {
|
||||
scanner->shading_max[k] = 0;
|
||||
scanner->shading_mean[k] = 0;
|
||||
|
@ -1862,7 +1862,7 @@ sanei_pieusb_set_mode_from_options(Pieusb_Scanner * scanner)
|
|||
* - values default (pieusb_set_default_gain_offset)
|
||||
* - values set by options
|
||||
* - values set by auto-calibration procedure
|
||||
* - values determined from preceeding preview
|
||||
* - values determined from preceding preview
|
||||
*
|
||||
* @param scanner
|
||||
* @return
|
||||
|
@ -1897,7 +1897,7 @@ sanei_pieusb_set_gain_offset(Pieusb_Scanner * scanner, const char *calibration_m
|
|||
status.pieusb_status = PIEUSB_STATUS_GOOD;
|
||||
} else if ((strcmp(calibration_mode, SCAN_CALIBRATION_PREVIEW) == 0)
|
||||
&& scanner->preview_done) {
|
||||
/* If no preview data availble, do the auto-calibration. */
|
||||
/* If no preview data available, do the auto-calibration. */
|
||||
double dg, dgi;
|
||||
DBG (DBG_info, "sanei_pieusb_set_gain_offset(): get calibration data from preview. scanner->mode.passes %d\n", scanner->mode.passes);
|
||||
switch (scanner->mode.passes) {
|
||||
|
|
Ładowanie…
Reference in New Issue