mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
syntax-check: Don't use tabs for indentation
This commit is contained in:
parent
8dd21e5820
commit
31eb8eeecb
@ -42,7 +42,7 @@ void glz_encoder_destroy(GlzEncoderContext *opaque_encoder);
|
||||
|
||||
return: the number of bytes in the compressed data and sets o_enc_dict_context
|
||||
|
||||
NOTE : currently supports only rgb images in which width*bytes_per_pixel = stride OR
|
||||
NOTE : currently supports only rgb images in which width*bytes_per_pixel = stride OR
|
||||
palette images in which stride equals the min number of bytes to hold a line.
|
||||
The stride should be > 0
|
||||
*/
|
||||
|
||||
@ -274,9 +274,9 @@ static void pixel_rgb16bpp_to_24(void *src, uint8_t *dest)
|
||||
typedef struct {
|
||||
struct jpeg_destination_mgr pub; /* public fields */
|
||||
|
||||
unsigned char ** outbuffer; /* target buffer */
|
||||
unsigned char ** outbuffer; /* target buffer */
|
||||
size_t * outsize;
|
||||
uint8_t * buffer; /* start of buffer */
|
||||
uint8_t * buffer; /* start of buffer */
|
||||
size_t bufsize;
|
||||
} mem_destination_mgr;
|
||||
|
||||
@ -334,15 +334,15 @@ spice_jpeg_mem_dest(j_compress_ptr cinfo,
|
||||
unsigned char ** outbuffer, size_t * outsize)
|
||||
{
|
||||
mem_destination_mgr *dest;
|
||||
#define OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */
|
||||
#define OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */
|
||||
|
||||
if (outbuffer == NULL || outsize == NULL) /* sanity check */
|
||||
if (outbuffer == NULL || outsize == NULL) /* sanity check */
|
||||
ERREXIT(cinfo, JERR_BUFFER_SIZE);
|
||||
|
||||
/* The destination object is made permanent so that multiple JPEG images
|
||||
* can be written to the same buffer without re-executing jpeg_mem_dest.
|
||||
*/
|
||||
if (cinfo->dest == NULL) { /* first time for this JPEG object? */
|
||||
if (cinfo->dest == NULL) { /* first time for this JPEG object? */
|
||||
cinfo->dest = spice_malloc(sizeof(mem_destination_mgr));
|
||||
}
|
||||
|
||||
|
||||
@ -11862,7 +11862,7 @@ static RedWorker* red_worker_new(WorkerInitData *init_data)
|
||||
if (worker->record_fd == NULL) {
|
||||
spice_error("failed to open recording file %s\n", record_filename);
|
||||
}
|
||||
if (fwrite(header, sizeof(header)-1, 1, worker->record_fd) != 1) {
|
||||
if (fwrite(header, sizeof(header)-1, 1, worker->record_fd) != 1) {
|
||||
spice_error("failed to write replay header");
|
||||
}
|
||||
}
|
||||
|
||||
@ -448,16 +448,16 @@ static void async_read_handler(G_GNUC_UNUSED int fd,
|
||||
break;
|
||||
default:
|
||||
async_read_clear_handlers(async);
|
||||
if (async->error) {
|
||||
if (async->error) {
|
||||
async->error(async->opaque, errno);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
async_read_clear_handlers(async);
|
||||
if (async->error) {
|
||||
async->error(async->opaque, 0);
|
||||
}
|
||||
if (async->error) {
|
||||
async->error(async->opaque, 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user