Lines Matching refs:nwrite
595 static void sixel_advance(sixel_output_t *context, int nwrite) in sixel_advance() argument
597 if ((context->pos += nwrite) >= SIXEL_OUTPUT_PACKET_SIZE) { in sixel_advance()
608 int nwrite; in sixel_put_flash() local
612 nwrite = spritf((char *)context->buffer + context->pos, "!255%c", context->save_pixel); in sixel_put_flash()
613 if (nwrite <= 0) { in sixel_put_flash()
616 sixel_advance(context, nwrite); in sixel_put_flash()
623 …nwrite = sprintf((char *)context->buffer + context->pos, "!%d%c", context->save_count, context->sa… in sixel_put_flash()
624 if (nwrite <= 0) { in sixel_put_flash()
627 sixel_advance(context, nwrite); in sixel_put_flash()
683 int nwrite; in sixel_put_node() local
688 nwrite = sprintf((char *)context->buffer + context->pos, in sixel_put_node()
690 sixel_advance(context, nwrite); in sixel_put_node()
724 int nwrite; in sixel_encode_impl() local
741 nwrite = sprintf((char *)context->buffer, "\x90" "0;0;0" "q"); in sixel_encode_impl()
743 nwrite = sprintf((char *)context->buffer, "\x1bP" "0;0;0" "q"); in sixel_encode_impl()
745 if (nwrite <= 0) { in sixel_encode_impl()
748 sixel_advance(context, nwrite); in sixel_encode_impl()
749 …nwrite = sprintf((char *)context->buffer + context->pos, "\"1;1;%d;%d", (int) width, (int) height); in sixel_encode_impl()
750 if (nwrite <= 0) { in sixel_encode_impl()
754 sixel_advance(context, nwrite); in sixel_encode_impl()
759 nwrite = sprintf((char *)context->buffer + context->pos, "#%d;2;%d;%d;%d", in sixel_encode_impl()
764 if (nwrite <= 0) { in sixel_encode_impl()
768 sixel_advance(context, nwrite); in sixel_encode_impl()
769 if (nwrite <= 0) { in sixel_encode_impl()
872 if (nwrite <= 0) { in sixel_encode_impl()
889 if (nwrite <= 0) { in sixel_encode_impl()