Lines Matching refs:padding_options
88 unsigned int concurrent_stripes, unsigned int padding_options) { in wprint_image_set_output_properties() argument
119 image_info->padding_options = (padding_options & PAD_ALL); in wprint_image_set_output_properties()
554 static int _get_width(wprint_image_info_t *image_info, unsigned int padding_options) { in _get_width() argument
563 if (padding_options & PAD_LEFT) { in _get_width()
566 if (padding_options & PAD_RIGHT) { in _get_width()
573 int width = _get_width(image_info, image_info->padding_options); in wprint_image_get_width()
580 _get_width(image_info, image_info->padding_options)); in wprint_image_get_output_buff_size()
585 static int _get_height(wprint_image_info_t *image_info, unsigned int padding_options) { in _get_height() argument
592 if (padding_options & PAD_TOP) { in _get_height()
595 if (padding_options & PAD_BOTTOM) { in _get_height()
602 int height = _get_height(image_info, image_info->padding_options); in wprint_image_get_height()
612 unsigned int padding_options, unsigned char *rgb_pixels) { in _decode_stripe() argument
629 int padding_left = ((padding_options & PAD_LEFT) ? BYTES_PER_PIXEL( in _decode_stripe()
631 int padding_right = ((padding_options & PAD_RIGHT) ? BYTES_PER_PIXEL( in _decode_stripe()
782 int bytes_per_row = BYTES_PER_PIXEL(_get_width(image_info, image_info->padding_options)); in wprint_image_decode_stripe()
793 int padding_left = ((image_info->padding_options & PAD_LEFT) ? BYTES_PER_PIXEL( in wprint_image_decode_stripe()
795 int padding_right = ((image_info->padding_options & PAD_RIGHT) ? BYTES_PER_PIXEL( in wprint_image_decode_stripe()
797 int padding_top = ((image_info->padding_options & PAD_TOP) ? in wprint_image_decode_stripe()
800 if ((start_row < 0) || (start_row >= _get_height(image_info, image_info->padding_options))) { in wprint_image_decode_stripe()
803 } else if ((image_info->padding_options & PAD_TOP) && in wprint_image_decode_stripe()
813 } else if ((image_info->padding_options & PAD_BOTTOM) && in wprint_image_decode_stripe()
814 (start_row >= _get_height(image_info, image_info->padding_options & PAD_TOP))) { in wprint_image_decode_stripe()
817 _get_height(image_info, image_info->padding_options) - start_row); in wprint_image_decode_stripe()
834 if (image_info->padding_options & PAD_TOP) { in wprint_image_decode_stripe()
948 image_info->padding_options, rgb_pixels); in wprint_image_decode_stripe()
967 (image_info->padding_options & (PAD_LEFT | PAD_RIGHT)) && in wprint_image_decode_stripe()
980 if ((image_info->padding_options & PAD_BOTTOM) && (num_rows > 0) && in wprint_image_decode_stripe()
981 (start_row >= _get_height(image_info, image_info->padding_options & PAD_TOP))) { in wprint_image_decode_stripe()
983 _get_height(image_info, image_info->padding_options) - start_row); in wprint_image_decode_stripe()