The size of the current project in canonical coordinates. The size of a project is a sub set of the kOfxImageEffectPropProjectExtent. For example a project may be a PAL SD project, but only be a letter-box within that. The project size is the size of this sub window.
| 316 | // project may be a PAL SD project, but only be a letter-box within that. The project size is |
| 317 | // the size of this sub window. |
| 318 | void |
| 319 | OfxImageEffectInstance::getProjectSize(double & xSize, |
| 320 | double & ySize) const |
| 321 | { |
| 322 | Format f; |
| 323 | |
| 324 | _ofxEffectInstance.lock()->getApp()->getProject()->getProjectDefaultFormat(&f); |
| 325 | RectI pixelF; |
| 326 | pixelF.x1 = f.x1; |
| 327 | pixelF.x2 = f.x2; |
| 328 | pixelF.y1 = f.y1; |
| 329 | pixelF.y2 = f.y2; |
| 330 | RectD canonicalF; |
| 331 | pixelF.toCanonical_noClipping(0, f.getPixelAspectRatio(), &canonicalF); |
| 332 | xSize = canonicalF.width(); |
| 333 | ySize = canonicalF.height(); |
| 334 | } |
| 335 | |
| 336 | // The offset of the current project in canonical coordinates. |
| 337 | // The offset is related to the kOfxImageEffectPropProjectSize and is the offset from the origin |
nothing calls this directly
no test coverage detected