| 26 | using namespace openshot; |
| 27 | |
| 28 | static std::string temp_png_path(const std::string& base) { |
| 29 | std::stringstream path; |
| 30 | path << QDir::tempPath().toStdString() << "/libopenshot_" << base << "_" |
| 31 | << getpid() << "_" << rand() << ".png"; |
| 32 | return path.str(); |
| 33 | } |
| 34 | |
| 35 | static std::string create_mask_png(const std::vector<int>& gray_values) { |
| 36 | const std::string path = temp_png_path("mask_effect"); |