Evas filters: Add argument src for buffer declaration
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 5 Feb 2014 10:25:14 +0000 (19:25 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 7 Feb 2014 08:33:18 +0000 (17:33 +0900)
Basically, in an edje file, we'll declare buffers manually,
using the "buffer:buf(src=part)" syntax.

src/lib/evas/filters/evas_filter_parser.c

index d5c30c78629a120ad5cd11abf5b8455a4515841a..b361e37a3ad9164d9f57c6178f597b52858f3e40 100644 (file)
@@ -1221,6 +1221,11 @@ _instruction_buffer_parse(Evas_Filter_Program *pgm, char *command)
           alpha = EINA_FALSE;
         else if (!strcasecmp(tok2, "alpha"))
           alpha = EINA_TRUE;
+        else if (!strncasecmp("src=", tok2, 4))
+          {
+             src = tok2 + 4;
+             alpha = EINA_FALSE;
+          }
         else
           PARSE_CHECK(!"Invalid buffer type");
      }