Evas filters: Fix inconsistency in transform API
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 22 Jan 2016 04:54:21 +0000 (13:54 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 22 Jan 2016 06:35:23 +0000 (15:35 +0900)
This is a minor change, makes 'output' the default target for
the transform filter. This is consistent with all the other
filters. This is not exactly a bug fix but it doesn't break
compatibility with the earlier explicit form and improves the API
for 1.17.

src/lib/evas/filters/evas_filter_parser.c

index 9e4bdd2..7f41234 100644 (file)
@@ -1772,7 +1772,7 @@ _transform_instruction_prepare(Evas_Filter_Program *pgm, Evas_Filter_Instruction
 
    instr->type = EVAS_FILTER_MODE_TRANSFORM;
    instr->pad.update = _transform_padding_update;
-   _instruction_param_seq_add(instr, "dst", VT_BUFFER, NULL);
+   _instruction_param_seq_add(instr, "dst", VT_BUFFER, _buffer_get(pgm, "output"));
    _instruction_param_seq_add(instr, "op", VT_STRING, "vflip");
    _instruction_param_seq_add(instr, "src", VT_BUFFER, _buffer_get(pgm, "input"));
    //_instruction_param_name_add(instr, "ox", VT_INT, 0);