forked from enlightenment/efl
Get rid of trailing whitespaces (3 / 14)
Remove trailing whitespaces Differential Revision: https://phab.enlightenment.org/D12001
This commit is contained in:
parent
108ee1d485
commit
c2be0d0dba
|
@ -4,7 +4,7 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int shm_fd;
|
extern int shm_fd;
|
||||||
extern int shm_size;
|
extern int shm_size;
|
||||||
extern void *shm_addr;
|
extern void *shm_addr;
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void timeout_init(int seconds);
|
void timeout_init(int seconds);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -70,7 +70,7 @@ _gst_init(const char *filename)
|
||||||
|
|
||||||
D("Setting file %s\n", uri);
|
D("Setting file %s\n", uri);
|
||||||
|
|
||||||
descr = g_strdup_printf("uridecodebin uri=%s ! typefind ! videoconvert ! "
|
descr = g_strdup_printf("uridecodebin uri=%s ! typefind ! videoconvert ! "
|
||||||
" appsink name=sink caps=\"" CAPS "\"", uri);
|
" appsink name=sink caps=\"" CAPS "\"", uri);
|
||||||
pipeline = gst_parse_launch(descr, &error);
|
pipeline = gst_parse_launch(descr, &error);
|
||||||
free(uri);
|
free(uri);
|
||||||
|
|
|
@ -151,7 +151,7 @@ _pixcopy(DATA32 *dst, unsigned char *src, int size)
|
||||||
e = s + size;
|
e = s + size;
|
||||||
while (s < e)
|
while (s < e)
|
||||||
{
|
{
|
||||||
d[0] =
|
d[0] =
|
||||||
0xff000000 |
|
0xff000000 |
|
||||||
(s[2] << 16) |
|
(s[2] << 16) |
|
||||||
(s[1] << 8 ) |
|
(s[1] << 8 ) |
|
||||||
|
@ -250,7 +250,7 @@ main(int argc, char **argv)
|
||||||
D("page...: %d\n", page_nbr);
|
D("page...: %d\n", page_nbr);
|
||||||
|
|
||||||
timeout_init(10);
|
timeout_init(10);
|
||||||
|
|
||||||
if (!_spectre_init(file, page_nbr, size_w, size_h))
|
if (!_spectre_init(file, page_nbr, size_w, size_h))
|
||||||
return -1;
|
return -1;
|
||||||
D("_spectre_init done\n");
|
D("_spectre_init done\n");
|
||||||
|
|
|
@ -199,7 +199,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
timeout_init(5);
|
timeout_init(5);
|
||||||
|
|
||||||
if (!_svg_init(file)) return -1;
|
if (!_svg_init(file)) return -1;
|
||||||
if (!read_svg_header(scale_down, dpi, size_w, size_h)) return -1;
|
if (!read_svg_header(scale_down, dpi, size_w, size_h)) return -1;
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,7 @@ static File *
|
||||||
f_open(const char *file)
|
f_open(const char *file)
|
||||||
{
|
{
|
||||||
File *f;
|
File *f;
|
||||||
|
|
||||||
f = calloc(1, sizeof(File));
|
f = calloc(1, sizeof(File));
|
||||||
if (!f) return NULL;
|
if (!f) return NULL;
|
||||||
f->fd = open(file, O_RDONLY);
|
f->fd = open(file, O_RDONLY);
|
||||||
|
@ -304,13 +304,13 @@ f_close(File *f)
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FBUF
|
#ifdef FBUF
|
||||||
static void
|
static void
|
||||||
_f_read_pos(File *f, long pos, long bytes)
|
_f_read_pos(File *f, long pos, long bytes)
|
||||||
{
|
{
|
||||||
long i, cnum;
|
long i, cnum;
|
||||||
Chunk **cks;
|
Chunk **cks;
|
||||||
|
|
||||||
if (f->size > 0) return;
|
if (f->size > 0) return;
|
||||||
cnum = ((pos + bytes) / CHUNK_SIZE) + 1;
|
cnum = ((pos + bytes) / CHUNK_SIZE) + 1;
|
||||||
if (f->chunk_num >= cnum) return;
|
if (f->chunk_num >= cnum) return;
|
||||||
|
@ -343,19 +343,19 @@ _f_read_pos(File *f, long pos, long bytes)
|
||||||
static long
|
static long
|
||||||
f_read(File *f, unsigned char *dest, long bytes)
|
f_read(File *f, unsigned char *dest, long bytes)
|
||||||
{
|
{
|
||||||
#ifdef FBUF
|
#ifdef FBUF
|
||||||
long done = 0, off = 0;
|
long done = 0, off = 0;
|
||||||
int c;
|
int c;
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
_f_read_pos(f, f->pos, bytes);
|
_f_read_pos(f, f->pos, bytes);
|
||||||
|
|
||||||
c = f->pos / CHUNK_SIZE;
|
c = f->pos / CHUNK_SIZE;
|
||||||
off = f->pos - (c * CHUNK_SIZE);
|
off = f->pos - (c * CHUNK_SIZE);
|
||||||
p = dest;
|
p = dest;
|
||||||
while ((done < bytes) && (c < f->chunk_num))
|
while ((done < bytes) && (c < f->chunk_num))
|
||||||
{
|
{
|
||||||
long amount = bytes - done;
|
long amount = bytes - done;
|
||||||
|
|
||||||
if (!f->chunk[c]) break;
|
if (!f->chunk[c]) break;
|
||||||
if (amount > (f->chunk[c]->size - off))
|
if (amount > (f->chunk[c]->size - off))
|
||||||
amount = (f->chunk[c]->size - off);
|
amount = (f->chunk[c]->size - off);
|
||||||
|
@ -372,7 +372,7 @@ f_read(File *f, unsigned char *dest, long bytes)
|
||||||
long done = gzread(f->fp, dest, bytes);
|
long done = gzread(f->fp, dest, bytes);
|
||||||
f->pos += done;
|
f->pos += done;
|
||||||
return done;
|
return done;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -383,14 +383,14 @@ f_seek(File *f, long pos)
|
||||||
{
|
{
|
||||||
if (pos >= f->size) pos = f->size -1;
|
if (pos >= f->size) pos = f->size -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (f->pos == pos) return;
|
if (f->pos == pos) return;
|
||||||
f->pos = pos;
|
f->pos = pos;
|
||||||
#ifdef FBUF
|
#ifdef FBUF
|
||||||
_f_read_pos(f, f->pos, 1);
|
_f_read_pos(f, f->pos, 1);
|
||||||
#else
|
#else
|
||||||
gzseek(f->fp, f->pos, SEEK_SET);
|
gzseek(f->fp, f->pos, SEEK_SET);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1696,12 +1696,12 @@ main(int argc, char **argv)
|
||||||
// int size_h = atoi(argv[i]);
|
// int size_h = atoi(argv[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
timeout_init(8);
|
timeout_init(8);
|
||||||
|
|
||||||
D("xcf_file_init\n");
|
D("xcf_file_init\n");
|
||||||
if (!xcf_file_init(file)) return -1;
|
if (!xcf_file_init(file)) return -1;
|
||||||
|
|
||||||
D("size %i %i\n", image->width, image->height);
|
D("size %i %i\n", image->width, image->height);
|
||||||
if (!head_only)
|
if (!head_only)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue