summaryrefslogtreecommitdiff
path: root/elements/gstqtvideosink/utils/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'elements/gstqtvideosink/utils/utils.h')
-rw-r--r--elements/gstqtvideosink/utils/utils.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/elements/gstqtvideosink/utils/utils.h b/elements/gstqtvideosink/utils/utils.h
index a2924a9..6e16c45 100644
--- a/elements/gstqtvideosink/utils/utils.h
+++ b/elements/gstqtvideosink/utils/utils.h
@@ -42,15 +42,22 @@ struct Fraction
struct PaintAreas
{
- void calculate(const QRectF & targetArea, const QSize & frameSize,
- const Fraction & pixelAspectRatio, const Fraction & displayAspectRatio);
+ void calculate(const QRectF & targetArea,
+ const QSize & videoSize,
+ const Fraction & pixelAspectRatio,
+ const Fraction & displayAspectRatio,
+ Qt::AspectRatioMode aspectRatioMode);
// the area that we paint on
QRectF targetArea;
-
- // the area where the video should be painted on (subrect of or equal to targetArea)
+ // the area where the video should be painted on
+ // (subrect of or equal to targetArea)
QRectF videoArea;
+ // the part of the video rectangle that we are going to blit on the videoArea
+ // in the normalized (0,1] range (texture coordinates)
+ QRectF sourceRect;
+
// these are small subrects of targetArea that are not
// covered by videoArea to keep the video's aspect ratio
QRectF blackArea1;