|
|
@ -232,7 +232,7 @@ void VideoWindow::correctByAspectRatio( TQSize& frame )
|
|
|
|
case FOURBYTHREE: factor = 4.0 / 3.0; break;
|
|
|
|
case FOURBYTHREE: factor = 4.0 / 3.0; break;
|
|
|
|
case ANAMORPHIC: factor = 16.0 / 9.0; break;
|
|
|
|
case ANAMORPHIC: factor = 16.0 / 9.0; break;
|
|
|
|
case DVB: factor = 2.11; break;
|
|
|
|
case DVB: factor = 2.11; break;
|
|
|
|
case STQUARE: factor = 1.0; break;
|
|
|
|
case SQUARE: factor = 1.0; break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
float frameAspect = (float)frame.width() / (float)frame.height();
|
|
|
|
float frameAspect = (float)frame.width() / (float)frame.height();
|
|
|
@ -291,7 +291,7 @@ void VideoWindow::slotAspectRatioDVB()
|
|
|
|
|
|
|
|
|
|
|
|
void VideoWindow::slotAspectRatioSquare()
|
|
|
|
void VideoWindow::slotAspectRatioSquare()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_aspectRatio = STQUARE;
|
|
|
|
m_aspectRatio = SQUARE;
|
|
|
|
TQSize frame = getFrameSize();
|
|
|
|
TQSize frame = getFrameSize();
|
|
|
|
correctByAspectRatio( frame );
|
|
|
|
correctByAspectRatio( frame );
|
|
|
|
emit signalNewFrameSize( frame );
|
|
|
|
emit signalNewFrameSize( frame );
|
|
|
|