The extent of the current project in canonical coordinates. The extent is the size of the 'output' for the current project. See ProjectCoordinateSystems for more information on the project extent. The extent is in canonical coordinates and only returns the top right position, as the extent is always rooted at 0,0. For example a PAL SD project would have an extent of 768, 576.
| 362 | // returns the top right position, as the extent is always rooted at 0,0. For example a PAL SD |
| 363 | // project would have an extent of 768, 576. |
| 364 | void |
| 365 | OfxImageEffectInstance::getProjectExtent(double & xSize, |
| 366 | double & ySize) const |
| 367 | { |
| 368 | Format f; |
| 369 | |
| 370 | _ofxEffectInstance.lock()->getApp()->getProject()->getProjectDefaultFormat(&f); |
| 371 | RectI pixelF; |
| 372 | pixelF.x1 = f.x1; |
| 373 | pixelF.x2 = f.x2; |
| 374 | pixelF.y1 = f.y1; |
| 375 | pixelF.y2 = f.y2; |
| 376 | RectD canonicalF; |
| 377 | pixelF.toCanonical_noClipping(0, f.getPixelAspectRatio(), &canonicalF); |
| 378 | xSize = canonicalF.right(); |
| 379 | ySize = canonicalF.top(); |
| 380 | } |
| 381 | |
| 382 | // The pixel aspect ratio of the current project |
| 383 | double |
nothing calls this directly
no test coverage detected