MCPcopy Create free account
hub / github.com/IENT/YUView / setFormatFromString

Method setFormatFromString

YUViewLib/src/video/FrameHandler.cpp:493–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493bool FrameHandler::setFormatFromString(QString format)
494{
495 auto split = format.split(";");
496 if (split.length() != 2)
497 return false;
498
499 bool ok;
500 auto newWidth = unsigned(split[0].toInt(&ok));
501 if (!ok)
502 return false;
503
504 auto newHeight = unsigned(split[1].toInt(&ok));
505 if (!ok)
506 return false;
507
508 this->setFrameSize(Size(newWidth, newHeight));
509 return true;
510}
511
512} // namespace video

Callers 1

playlistItemRawFileMethod · 0.45

Calls 2

setFrameSizeMethod · 0.95
SizeClass · 0.85

Tested by

no test coverage detected