parent
34fee5ae82
commit
3b74ce2dbd
|
@ -320,7 +320,6 @@ static const char *
|
||||||
_slave_proc_path_get(const char *name)
|
_slave_proc_path_get(const char *name)
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX], cwd[PATH_MAX];
|
char buf[PATH_MAX], cwd[PATH_MAX];
|
||||||
char *ret;
|
|
||||||
|
|
||||||
if (name[0] == '/')
|
if (name[0] == '/')
|
||||||
{
|
{
|
||||||
|
@ -329,7 +328,7 @@ _slave_proc_path_get(const char *name)
|
||||||
return eina_stringshare_add(name);
|
return eina_stringshare_add(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = getcwd(cwd, sizeof(cwd));
|
getcwd(cwd, sizeof(cwd));
|
||||||
snprintf(buf, sizeof(buf), "%s/%s", cwd, name);
|
snprintf(buf, sizeof(buf), "%s/%s", cwd, name);
|
||||||
if (!access(buf, X_OK))
|
if (!access(buf, X_OK))
|
||||||
return eina_stringshare_add(buf);
|
return eina_stringshare_add(buf);
|
||||||
|
@ -454,7 +453,6 @@ static void *
|
||||||
_slave_thread_cb(void *data)
|
_slave_thread_cb(void *data)
|
||||||
{
|
{
|
||||||
ssize_t n;
|
ssize_t n;
|
||||||
int ret;
|
|
||||||
Slave_Command cmd;
|
Slave_Command cmd;
|
||||||
|
|
||||||
Slave_Thread_Data *sd = data;
|
Slave_Thread_Data *sd = data;
|
||||||
|
@ -477,7 +475,7 @@ _slave_thread_cb(void *data)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
sd->cmdanswer = sd->cb(sd, &cmd, sd->cmddata, sd->cb_data);
|
sd->cmdanswer = sd->cb(sd, &cmd, sd->cmddata, sd->cb_data);
|
||||||
ret = write(sd->write_fd, &cmd, sizeof(cmd));
|
write(sd->write_fd, &cmd, sizeof(cmd));
|
||||||
|
|
||||||
n = read(sd->read_fd, &cmd, sizeof(cmd));
|
n = read(sd->read_fd, &cmd, sizeof(cmd));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1266,7 +1266,7 @@ evas_gl_common_context_line_push(Evas_Engine_GL_Context *gc,
|
||||||
int clip, int cx, int cy, int cw, int ch,
|
int clip, int cx, int cy, int cw, int ch,
|
||||||
int r, int g, int b, int a)
|
int r, int g, int b, int a)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nt, i;
|
int pnum, nv, nc, i;
|
||||||
Eina_Bool blend = 0;
|
Eina_Bool blend = 0;
|
||||||
GLuint prog = gc->shared->shader[SHADER_RECT].prog;
|
GLuint prog = gc->shared->shader[SHADER_RECT].prog;
|
||||||
int pn = 0;
|
int pn = 0;
|
||||||
|
@ -1295,7 +1295,7 @@ evas_gl_common_context_line_push(Evas_Engine_GL_Context *gc,
|
||||||
gc->pipe[pn].array.use_texuv3 = 0;
|
gc->pipe[pn].array.use_texuv3 = 0;
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nt = pnum * 4;
|
nv = pnum * 3; nc = pnum * 4;
|
||||||
gc->pipe[pn].array.num += 2;
|
gc->pipe[pn].array.num += 2;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
@ -1321,7 +1321,7 @@ evas_gl_common_context_rectangle_push(Evas_Engine_GL_Context *gc,
|
||||||
int x, int y, int w, int h,
|
int x, int y, int w, int h,
|
||||||
int r, int g, int b, int a)
|
int r, int g, int b, int a)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nt, i;
|
int pnum, nv, nc, i;
|
||||||
Eina_Bool blend = 0;
|
Eina_Bool blend = 0;
|
||||||
GLuint prog = gc->shared->shader[SHADER_RECT].prog;
|
GLuint prog = gc->shared->shader[SHADER_RECT].prog;
|
||||||
int pn = 0;
|
int pn = 0;
|
||||||
|
@ -1447,7 +1447,7 @@ again:
|
||||||
pipe_region_expand(gc, pn, x, y, w, h);
|
pipe_region_expand(gc, pn, x, y, w, h);
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nt = pnum * 4;
|
nv = pnum * 3; nc = pnum * 4;
|
||||||
gc->pipe[pn].array.num += 6;
|
gc->pipe[pn].array.num += 6;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
@ -1473,7 +1473,7 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
|
||||||
int r, int g, int b, int a,
|
int r, int g, int b, int a,
|
||||||
Eina_Bool smooth, Eina_Bool tex_only)
|
Eina_Bool smooth, Eina_Bool tex_only)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nu2, nt, i;
|
int pnum, nv, nc, nu, i;
|
||||||
GLfloat tx1, tx2, ty1, ty2;
|
GLfloat tx1, tx2, ty1, ty2;
|
||||||
Eina_Bool blend = 1;
|
Eina_Bool blend = 1;
|
||||||
GLuint prog = gc->shared->shader[SHADER_IMG].prog;
|
GLuint prog = gc->shared->shader[SHADER_IMG].prog;
|
||||||
|
@ -1543,8 +1543,7 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
|
||||||
pipe_region_expand(gc, pn, x, y, w, h);
|
pipe_region_expand(gc, pn, x, y, w, h);
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nu2 = pnum * 2;
|
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
|
||||||
nt = pnum * 4;
|
|
||||||
gc->pipe[pn].array.num += 6;
|
gc->pipe[pn].array.num += 6;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
@ -1596,7 +1595,7 @@ evas_gl_common_context_image_mask_push(Evas_Engine_GL_Context *gc,
|
||||||
int r, int g, int b, int a,
|
int r, int g, int b, int a,
|
||||||
Eina_Bool smooth)
|
Eina_Bool smooth)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nm, nt, i;
|
int pnum, nv, nc, nu, nm, i;
|
||||||
GLfloat tx1, tx2, ty1, ty2;
|
GLfloat tx1, tx2, ty1, ty2;
|
||||||
GLfloat txm1, txm2, tym1, tym2;
|
GLfloat txm1, txm2, tym1, tym2;
|
||||||
Eina_Bool blend = 1;
|
Eina_Bool blend = 1;
|
||||||
|
@ -1649,7 +1648,6 @@ evas_gl_common_context_image_mask_push(Evas_Engine_GL_Context *gc,
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nm = pnum * 2; nu = pnum * 2;
|
nv = pnum * 3; nc = pnum * 4; nm = pnum * 2; nu = pnum * 2;
|
||||||
nt = pnum * 4;
|
|
||||||
gc->pipe[pn].array.num += 6;
|
gc->pipe[pn].array.num += 6;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
@ -1721,7 +1719,7 @@ evas_gl_common_context_font_push(Evas_Engine_GL_Context *gc,
|
||||||
int x, int y, int w, int h,
|
int x, int y, int w, int h,
|
||||||
int r, int g, int b, int a)
|
int r, int g, int b, int a)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nt, i;
|
int pnum, nv, nc, nu, i;
|
||||||
GLfloat tx1, tx2, ty1, ty2;
|
GLfloat tx1, tx2, ty1, ty2;
|
||||||
GLuint prog = gc->shared->shader[SHADER_FONT].prog;
|
GLuint prog = gc->shared->shader[SHADER_FONT].prog;
|
||||||
int pn = 0;
|
int pn = 0;
|
||||||
|
@ -1755,7 +1753,7 @@ evas_gl_common_context_font_push(Evas_Engine_GL_Context *gc,
|
||||||
pipe_region_expand(gc, pn, x, y, w, h);
|
pipe_region_expand(gc, pn, x, y, w, h);
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nt = pnum * 4;
|
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
|
||||||
gc->pipe[pn].array.num += 6;
|
gc->pipe[pn].array.num += 6;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
@ -1804,7 +1802,7 @@ evas_gl_common_context_yuv_push(Evas_Engine_GL_Context *gc,
|
||||||
int r, int g, int b, int a,
|
int r, int g, int b, int a,
|
||||||
Eina_Bool smooth)
|
Eina_Bool smooth)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nu2, nu3, nt, i;
|
int pnum, nv, nc, nu, nu2, nu3, i;
|
||||||
GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
|
GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
|
||||||
Eina_Bool blend = 0;
|
Eina_Bool blend = 0;
|
||||||
GLuint prog;
|
GLuint prog;
|
||||||
|
@ -1847,7 +1845,7 @@ evas_gl_common_context_yuv_push(Evas_Engine_GL_Context *gc,
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
|
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
|
||||||
nu2 = pnum * 2; nu3 = pnum * 2; nt = pnum * 4;
|
nu2 = pnum * 2; nu3 = pnum * 2;
|
||||||
gc->pipe[pn].array.num += 6;
|
gc->pipe[pn].array.num += 6;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
@ -1907,7 +1905,7 @@ evas_gl_common_context_yuy2_push(Evas_Engine_GL_Context *gc,
|
||||||
int r, int g, int b, int a,
|
int r, int g, int b, int a,
|
||||||
Eina_Bool smooth)
|
Eina_Bool smooth)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nu2, nu3, nt, i;
|
int pnum, nv, nc, nu, nu2, i;
|
||||||
GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
|
GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
|
||||||
Eina_Bool blend = 0;
|
Eina_Bool blend = 0;
|
||||||
GLuint prog;
|
GLuint prog;
|
||||||
|
@ -1949,7 +1947,7 @@ evas_gl_common_context_yuy2_push(Evas_Engine_GL_Context *gc,
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
|
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
|
||||||
nu2 = pnum * 2; nu3 = pnum * 2; nt = pnum * 4;
|
nu2 = pnum * 2;
|
||||||
gc->pipe[pn].array.num += 6;
|
gc->pipe[pn].array.num += 6;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
@ -2001,7 +1999,7 @@ evas_gl_common_context_nv12_push(Evas_Engine_GL_Context *gc,
|
||||||
int r, int g, int b, int a,
|
int r, int g, int b, int a,
|
||||||
Eina_Bool smooth)
|
Eina_Bool smooth)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nu2, nu3, nt, i;
|
int pnum, nv, nc, nu, nu2, i;
|
||||||
GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
|
GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
|
||||||
Eina_Bool blend = 0;
|
Eina_Bool blend = 0;
|
||||||
GLuint prog;
|
GLuint prog;
|
||||||
|
@ -2045,7 +2043,7 @@ evas_gl_common_context_nv12_push(Evas_Engine_GL_Context *gc,
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
|
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
|
||||||
nu2 = pnum * 2; nu3 = pnum * 2; nt = pnum * 4;
|
nu2 = pnum * 2;
|
||||||
gc->pipe[pn].array.num += 6;
|
gc->pipe[pn].array.num += 6;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
@ -2099,7 +2097,7 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc,
|
||||||
Eina_Bool smooth, Eina_Bool tex_only,
|
Eina_Bool smooth, Eina_Bool tex_only,
|
||||||
Evas_Colorspace cspace)
|
Evas_Colorspace cspace)
|
||||||
{
|
{
|
||||||
int pnum, nv, nc, nu, nu2, nu3, nt, i;
|
int pnum, nv, nc, nu, nu2, nu3, i;
|
||||||
const int points[6] = { 0, 1, 2, 0, 2, 3 };
|
const int points[6] = { 0, 1, 2, 0, 2, 3 };
|
||||||
int x = 0, y = 0, w = 0, h = 0, px = 0, py = 0;
|
int x = 0, y = 0, w = 0, h = 0, px = 0, py = 0;
|
||||||
GLfloat tx[4], ty[4], t2x[4], t2y[4];
|
GLfloat tx[4], ty[4], t2x[4], t2y[4];
|
||||||
|
@ -2287,7 +2285,7 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc,
|
||||||
|
|
||||||
pnum = gc->pipe[pn].array.num;
|
pnum = gc->pipe[pn].array.num;
|
||||||
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nu2 = pnum * 2;
|
nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nu2 = pnum * 2;
|
||||||
nu2 = pnum * 2; nu3 = pnum * 2; nt = pnum * 4;
|
nu2 = pnum * 2; nu3 = pnum * 2;
|
||||||
gc->pipe[pn].array.num += 6;
|
gc->pipe[pn].array.num += 6;
|
||||||
array_alloc(gc, pn);
|
array_alloc(gc, pn);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue