| 422 | } |
| 423 | |
| 424 | void playlistItemRawFile::setFormatFromFileName() |
| 425 | { |
| 426 | auto fileFormat = this->dataSource.guessFormatFromFilename(); |
| 427 | if (fileFormat.frameSize.isValid()) |
| 428 | { |
| 429 | this->video->setFrameSize(fileFormat.frameSize); |
| 430 | |
| 431 | // We were able to extract width and height from the file name using |
| 432 | // regular expressions. Try to get the pixel format by checking with the file size. |
| 433 | this->video->setFormatFromSizeAndName(fileFormat.frameSize, |
| 434 | fileFormat.bitDepth, |
| 435 | fileFormat.packed ? video::DataLayout::Packed |
| 436 | : video::DataLayout::Planar, |
| 437 | dataSource.getFileSize(), |
| 438 | dataSource.getFileInfo()); |
| 439 | if (fileFormat.frameRate != -1) |
| 440 | this->prop.frameRate = fileFormat.frameRate; |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | void playlistItemRawFile::createPropertiesWidget() |
| 445 | { |
nothing calls this directly
no test coverage detected