Lines Matching defs:frame

297  * Read the scan frame with the specified index. This requires two
301 * @param frame Scan frame
306 sanei_pieusb_cmd_get_scan_frame(SANE_Int device_number, SANE_Int index, struct Pieusb_Scan_Frame* frame, struct Pieusb_Command_Status *status)
309 #define FRAME_SIZE 256 /* Assumed maximum frame size */
316 /* Ask scanner to prepare the scan frame with the given index. Only SCSI_COMMAND_LEN bytes of data. */
329 /* Read scan frame */
336 frame->index = _get_byte (data, 4);
337 frame->x0 = _get_short (data, 6);
338 frame->y0 = _get_short (data, 8);
339 frame->x1 = _get_short (data, 10);
340 frame->y1 = _get_short (data, 12);
343 DBG (DBG_info_scan, " x0,y0 = %d,%d\n", frame->x0, frame->y0);
344 DBG (DBG_info_scan, " x1,y1 = %d,%d\n", frame->x1, frame->y1);
345 DBG (DBG_info_scan, " index = %d\n", frame->index);
397 /* Ask scanner to prepare the scan frame with the given index. Only SCSI_COMMAND_LEN bytes of data. */
471 * Set the scan frame with the given index to the frame. The command is a SCSI
476 * @param frame Scan frame
481 sanei_pieusb_cmd_set_scan_frame(SANE_Int device_number, SANE_Int index, struct Pieusb_Scan_Frame* frame, struct Pieusb_Command_Status *status)
492 DBG (DBG_info_scan, " x0,y0 = %d,%d\n", frame->x0, frame->y0);
493 DBG (DBG_info_scan, " x1,y1 = %d,%d\n", frame->x1, frame->y1);
499 _set_short (size-4, data, 2); /* size: one frame, 5 shorts */
501 _set_short (frame->x0, data, 6);
502 _set_short (frame->y0, data, 8);
503 _set_short (frame->x1, data, 10);
504 _set_short (frame->y1, data, 12);
810 * The mask begins with a number of 0x70 bytes equal to the scan frame x0-value