Create a new effect instance
| 25 | |
| 26 | // Create a new effect instance |
| 27 | EffectBase* EffectInfo::CreateEffect(std::string effect_type) { |
| 28 | // Init the matching effect object |
| 29 | if (effect_type == "AnalogTape") |
| 30 | return new AnalogTape(); |
| 31 | |
| 32 | if (effect_type == "Bars") |
| 33 | return new Bars(); |
| 34 | |
| 35 | if (effect_type == "Blur") |
| 36 | return new Blur(); |
| 37 | |
| 38 | else if (effect_type == "Brightness") |
| 39 | return new Brightness(); |
| 40 | |
| 41 | else if (effect_type == "Caption") |
| 42 | return new Caption(); |
| 43 | |
| 44 | else if (effect_type == "ChromaKey") |
| 45 | return new ChromaKey(); |
| 46 | |
| 47 | else if (effect_type == "ColorMap") |
| 48 | return new ColorMap(); |
| 49 | |
| 50 | else if (effect_type == "ColorShift") |
| 51 | return new ColorShift(); |
| 52 | |
| 53 | else if (effect_type == "Crop") |
| 54 | return new Crop(); |
| 55 | |
| 56 | else if (effect_type == "Deinterlace") |
| 57 | return new Deinterlace(); |
| 58 | |
| 59 | else if (effect_type == "Hue") |
| 60 | return new Hue(); |
| 61 | |
| 62 | else if (effect_type == "LensFlare") |
| 63 | return new LensFlare(); |
| 64 | |
| 65 | else if (effect_type == "Mask") |
| 66 | return new Mask(); |
| 67 | |
| 68 | else if (effect_type == "Negate") |
| 69 | return new Negate(); |
| 70 | |
| 71 | else if (effect_type == "Pixelate") |
| 72 | return new Pixelate(); |
| 73 | |
| 74 | else if (effect_type == "Saturation") |
| 75 | return new Saturation(); |
| 76 | |
| 77 | else if (effect_type == "Sharpen") |
| 78 | return new Sharpen(); |
| 79 | |
| 80 | else if (effect_type == "Shift") |
| 81 | return new Shift(); |
| 82 | |
| 83 | else if (effect_type == "SphericalProjection") |
| 84 | return new SphericalProjection(); |
no outgoing calls
no test coverage detected