811 qreal cx = (w - cw) / 2.0; |
811 qreal cx = (w - cw) / 2.0; |
812 |
812 |
813 qreal step = ANIMATION_MAX_FRAME; |
813 qreal step = ANIMATION_MAX_FRAME; |
814 qreal cy = m_filmstripFlowData->m_centerTopSpace; |
814 qreal cy = m_filmstripFlowData->m_centerTopSpace; |
815 |
815 |
816 qreal stepx = cx / step; |
|
817 qreal stepy = cy / step; |
816 qreal stepy = cy / step; |
818 qreal stepx2 = -stepx; |
|
819 qreal stepy2 = (cy + ch - h) / step; |
|
820 |
817 |
821 QRectF startRect = QRectF(0, 0, w, h); |
818 QRectF startRect = QRectF(0, 0, w, h); |
822 QRectF endRect = QRectF(cx, cy, cw, ch); |
819 QRectF endRect = QRectF(cx, cy, cw, ch); |
823 |
820 |
824 addRectByFrame(movie, startRect, endRect, 0, stepy, 0, stepy); |
821 addRectByFrame(movie, startRect, endRect, 0, stepy, 0, stepy); |
1204 SAFE_DELETE(d->m_titleBuffer); |
1201 SAFE_DELETE(d->m_titleBuffer); |
1205 int w = s.width(); |
1202 int w = s.width(); |
1206 int h = s.height() * FILM_HEIGHT; |
1203 int h = s.height() * FILM_HEIGHT; |
1207 |
1204 |
1208 qreal ix; |
1205 qreal ix; |
1209 qreal ratio = ((qreal) w) / h; |
|
1210 |
1206 |
1211 d->m_buffer = new QImage (w, h , QImage::Format_RGB32); |
1207 d->m_buffer = new QImage (w, h , QImage::Format_RGB32); |
1212 d->m_titleBuffer = new QImage(w, s.height() * TITLE_HEIGHT , QImage::Format_RGB32); |
1208 d->m_titleBuffer = new QImage(w, s.height() * TITLE_HEIGHT , QImage::Format_RGB32); |
1213 |
1209 |
1214 QPainter painter(d->m_titleBuffer); |
1210 QPainter painter(d->m_titleBuffer); |