+
+ if (examiner->rotation()) {
+ auto rot = *examiner->rotation ();
+ if (fabs (rot - 180) < 1.0) {
+ _filters.push_back(*Filter::from_id("vflip"));
+ _filters.push_back(*Filter::from_id("hflip"));
+ } else if (fabs (rot - 90) < 1.0) {
+ _filters.push_back(*Filter::from_id("90clock"));
+ video->rotate_size();
+ } else if (fabs (rot - 270) < 1.0) {
+ _filters.push_back(*Filter::from_id("90anticlock"));
+ video->rotate_size();
+ }
+ }
+ if (examiner->has_alpha()) {
+ _filters.push_back(*Filter::from_id("premultiply"));
+ }