|
|
@@ -131,6 +131,12 @@ int pipi_command(pipi_context_t *ctx, char const *cmd, ...) |
|
|
|
pipi_free(src); |
|
|
|
ctx->images[ctx->nimages - 1] = dst; |
|
|
|
} |
|
|
|
else if(!strcmp(cmd, "gray")) |
|
|
|
{ |
|
|
|
if(ctx->nimages <= 0) |
|
|
|
return -1; |
|
|
|
pipi_getpixels(ctx->images[ctx->nimages - 1], PIPI_PIXELS_Y_F); |
|
|
|
} |
|
|
|
else if(!strcmp(cmd, "free")) |
|
|
|
{ |
|
|
|
if(ctx->nimages <= 0) |
|
|
|