- _format = Format::from_id (c.get ());
- }
- }
-
- {
- optional<string> c = f.optional_string_child ("TrimType");
- if (!c || c.get() == "CPL") {
- _trim_type = CPL;
- } else if (c && c.get() == "Encode") {
- _trim_type = ENCODE;
- }
- }
-
- _crop.left = f.number_child<int> ("LeftCrop");
- _crop.right = f.number_child<int> ("RightCrop");
- _crop.top = f.number_child<int> ("TopCrop");
- _crop.bottom = f.number_child<int> ("BottomCrop");
-
- {
- list<shared_ptr<cxml::Node> > c = f.node_children ("Filter");
- for (list<shared_ptr<cxml::Node> >::iterator i = c.begin(); i != c.end(); ++i) {
- _filters.push_back (Filter::from_id ((*i)->content ()));