kopia lustrzana https://gitlab.com/sane-project/backends
spelling fixes for escl backend
rodzic
13b56dd122
commit
4f4278ab2d
|
@ -259,7 +259,7 @@ get_vendor(char *search)
|
|||
* \brief Function that checks if the url of the received scanner is secured or not (http / https).
|
||||
* --> if the url is not secured, our own url will be composed like "http://'ip':'port'".
|
||||
* --> else, our own url will be composed like "https://'ip':'port'".
|
||||
* AND, it's in this function that we gather all the informations of the url (that were in our list) :
|
||||
* AND, it's in this function that we gather all the information of the url (that were in our list) :
|
||||
* the model_name, the port, the ip, and the type of url.
|
||||
* SO, leaving this function, we have in memory the complete url.
|
||||
*
|
||||
|
@ -531,7 +531,7 @@ _source_size_max (SANE_String_Const * sources)
|
|||
/**
|
||||
* \fn static SANE_Status init_options(SANE_String_Const name, escl_sane_t *s)
|
||||
* \brief Function thzt initializes all the needed options of the received scanner
|
||||
* (the resolution / the color / the margins) thanks to the informations received with
|
||||
* (the resolution / the color / the margins) thanks to the information received with
|
||||
* the 'escl_capabilities' function, called just before.
|
||||
*
|
||||
* \return status (if everything is OK, status = SANE_STATUS_GOOD)
|
||||
|
@ -977,7 +977,7 @@ _go_next_page(SANE_Status status,
|
|||
|
||||
/**
|
||||
* \fn SANE_Status sane_start(SANE_Handle h)
|
||||
* \brief Function that initiates aquisition of an image from the device represented by handle 'h'.
|
||||
* \brief Function that initiates acquisition of an image from the device represented by handle 'h'.
|
||||
* This function calls the "escl_newjob" function and the "escl_scan" function.
|
||||
*
|
||||
* \return status (if everything is OK, status = SANE_STATUS_GOOD, otherwise, SANE_STATUS_NO_MEM/SANE_STATUS_INVAL)
|
||||
|
@ -1106,7 +1106,7 @@ sane_start(SANE_Handle h)
|
|||
status = get_PDF_data(handler->scanner, &w, &he, &bps);
|
||||
}
|
||||
else {
|
||||
DBG(10, "Unknow image format\n");
|
||||
DBG(10, "Unknown image format\n");
|
||||
return SANE_STATUS_INVAL;
|
||||
}
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ find_nodes_c(xmlNode *node)
|
|||
|
||||
/**
|
||||
* \fn static int find_valor_of_array_variables(xmlNode *node, capabilities_t *scanner)
|
||||
* \brief Function that searchs in the xml file if a scanner capabilitie stocked
|
||||
* \brief Function that searches in the xml file if a scanner capabilitie stocked
|
||||
* in one of the created array (character/integer array) is found.
|
||||
*
|
||||
* \return 0
|
||||
|
@ -239,7 +239,7 @@ find_valor_of_array_variables(xmlNode *node, capabilities_t *scanner, int type)
|
|||
|
||||
/**
|
||||
* \fn static int find_value_of_int_variables(xmlNode *node, capabilities_t *scanner)
|
||||
* \brief Function that searchs in the xml file if a integer scanner capabilitie is found.
|
||||
* \brief Function that searches in the xml file if a integer scanner capabilitie is found.
|
||||
* The integer scanner capabilities that are interesting are :
|
||||
* MinWidth, MaxWidth, MaxHeight, MinHeight, MaxScanRegions, MaxOpticalXResolution,
|
||||
* RiskyLeftMargin, RiskyRightMargin, RiskyTopMargin, RiskyBottomMargin.
|
||||
|
@ -285,7 +285,7 @@ find_value_of_int_variables(xmlNode *node, capabilities_t *scanner, int type)
|
|||
|
||||
/**
|
||||
* \fn static int find_true_variables(xmlNode *node, capabilities_t *scanner)
|
||||
* \brief Function that searchs in the xml file if we find a scanner capabilitie stocked
|
||||
* \brief Function that searches in the xml file if we find a scanner capabilitie stocked
|
||||
* in one of the created array (character/integer array),
|
||||
* or, if we find a integer scanner capabilitie.
|
||||
*
|
||||
|
|
|
@ -87,7 +87,7 @@ get_PNG_data(capabilities_t *scanner, int *width, int *height, int *bps)
|
|||
goto close_file;
|
||||
}
|
||||
// initialize the setjmp for returning properly after a libpng
|
||||
// error occured
|
||||
// error occurred
|
||||
if (setjmp (png_jmpbuf (png_ptr)))
|
||||
{
|
||||
png_destroy_read_struct (&png_ptr, &info_ptr, NULL);
|
||||
|
@ -107,7 +107,7 @@ get_PNG_data(capabilities_t *scanner, int *width, int *height, int *bps)
|
|||
png_read_info (png_ptr, info_ptr);
|
||||
|
||||
int bit_depth, color_type;
|
||||
// get some usefull information from header
|
||||
// get some useful information from header
|
||||
bit_depth = png_get_bit_depth (png_ptr, info_ptr);
|
||||
color_type = png_get_color_type (png_ptr, info_ptr);
|
||||
// convert index color images to RGB images
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
* \fn static size_t write_callback(void *str, size_t size, size_t nmemb, void *userp)
|
||||
* \brief Callback function that writes the image scanned into the temporary file.
|
||||
*
|
||||
* \return to_write (the result of the fwrite fonction)
|
||||
* \return to_write (the result of the fwrite function)
|
||||
*/
|
||||
static size_t
|
||||
write_callback(void *str, size_t size, size_t nmemb, void *userp)
|
||||
|
|
Ładowanie…
Reference in New Issue