Lines Matching refs:buff
262 static void _stream_dbg_job_data(wJob_t job_handle, const unsigned char *buff, in _stream_dbg_job_data() argument
268 bytes_written = write(jq->job_debug_fd, buff, nbytes); in _stream_dbg_job_data()
273 buff += bytes_written; in _stream_dbg_job_data()
286 static void _stream_dbg_page_data(wJob_t job_handle, const unsigned char *buff, in _stream_dbg_page_data() argument
292 bytes_written = write(jq->page_debug_fd, buff, nbytes); in _stream_dbg_page_data()
297 buff += bytes_written; in _stream_dbg_page_data()
312 } buff; in _stream_dbg_start_page() local
313 snprintf(buff.filename, MAX_PATHNAME_LENGTH, "%s/page%4.4d.ppm", jq->debug_path, in _stream_dbg_start_page()
315 buff.filename[MAX_PATHNAME_LENGTH] = 0; in _stream_dbg_start_page()
316 jq->page_debug_fd = open(buff.filename, O_CREAT | O_TRUNC | O_WRONLY, 0600); in _stream_dbg_start_page()
317 int length = snprintf(buff.ppm_header, sizeof(buff.ppm_header), "%s\n#%*c\n%d %d\n%d\n", in _stream_dbg_start_page()
319 int padding = sizeof(buff.ppm_header) - length; in _stream_dbg_start_page()
320 snprintf(buff.ppm_header, sizeof(buff.ppm_header), "%s\n#%*c\n%d %d\n%d\n", in _stream_dbg_start_page()
322 _stream_dbg_page_data(job_handle, (const unsigned char *) buff.ppm_header, in _stream_dbg_start_page()