summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/xinevideowidget.cpp
Side-by-side diff
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinevideowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinevideowidget.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.cpp b/noncore/multimedia/opieplayer2/xinevideowidget.cpp
index e46c4df..8e8f139 100644
--- a/noncore/multimedia/opieplayer2/xinevideowidget.cpp
+++ b/noncore/multimedia/opieplayer2/xinevideowidget.cpp
@@ -57,2 +57,6 @@ static inline void memcpy_step ( void *dst, void *src, size_t len, size_t step )
while ( len-- ) {
+// *((char *) dst ) = *((char *) src + 1);
+// *((char *) dst + 1) = *((char *) src );
+// ((char *) dst ) += 2;
+
*((short int *) dst )++ = *((short int *) src );
@@ -71,2 +75,6 @@ static inline void memcpy_step_rev ( void *dst, void *src, size_t len, size_t st
*((short int *) dst )++ = *((short int *) src );
+
+// *((char *) dst ) = *((char *) src + 1);
+// *((char *) dst + 1) = *((char *) src );
+// ((char *) dst ) += 2;
}
@@ -103,3 +111,3 @@ void XineVideoWidget::paintEvent ( QPaintEvent * )
{
- qWarning( "painting" );
+ qWarning( "painting <<<" );
if ( m_buff == 0 ) {
@@ -111,3 +119,3 @@ void XineVideoWidget::paintEvent ( QPaintEvent * )
else {
- qWarning ( "paintevent\n" );
+// qWarning ( "paintevent\n" );
@@ -118,2 +126,4 @@ void XineVideoWidget::paintEvent ( QPaintEvent * )
+ int rot = dp. transformOrientation ( );
+
uchar *fb = dp. frameBuffer ( );
@@ -130,4 +140,2 @@ void XineVideoWidget::paintEvent ( QPaintEvent * )
- int rot = dp. transformOrientation ( );
-
if ( rot == 0 || rot == 180 ) {
@@ -178,3 +186,3 @@ void XineVideoWidget::paintEvent ( QPaintEvent * )
if ( rot == 270 )
- src += (( framerect. height ( ) - 1 ) * m_bytes_per_line_frame );
+ src += (( framerect. height ( ) - 1 ) * m_bytes_per_pixel );
@@ -202,5 +210,5 @@ void XineVideoWidget::paintEvent ( QPaintEvent * )
if ( rot == 90 )
- memcpy_step ( dst + leftfill, src, framefill, m_bytes_per_line_frame );
- else
memcpy_step_rev ( dst + leftfill, src, framefill, m_bytes_per_line_frame );
+ else
+ memcpy_step ( dst + leftfill, src, framefill, m_bytes_per_line_frame );
}
@@ -211,3 +219,3 @@ void XineVideoWidget::paintEvent ( QPaintEvent * )
dst += m_bytes_per_line_fb;
- src += ( rot == 90 ? +1 : -1 ); // m_bytes_per_line_frame : -m_bytes_per_line_frame );
+ src += ( rot == 270 ? -m_bytes_per_pixel : m_bytes_per_pixel );
}
@@ -225,2 +233,3 @@ void XineVideoWidget::paintEvent ( QPaintEvent * )
}
+ qWarning( "painting >>>" );
}