Get file extension
| 559 | |
| 560 | // Get file extension |
| 561 | std::string Clip::get_file_extension(std::string path) |
| 562 | { |
| 563 | // Return last part of path safely (handle filenames without a dot) |
| 564 | const auto dot_pos = path.find_last_of('.'); |
| 565 | if (dot_pos == std::string::npos || dot_pos + 1 >= path.size()) { |
| 566 | return std::string(); |
| 567 | } |
| 568 | |
| 569 | return path.substr(dot_pos + 1); |
| 570 | } |
| 571 | |
| 572 | // Adjust the audio and image of a time mapped frame |
| 573 | void Clip::apply_timemapping(std::shared_ptr<Frame> frame) |
nothing calls this directly
no outgoing calls
no test coverage detected