summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/video_out_rockbox.c
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2007-10-21 16:44:13 +0000
committerRobert Kukla <roolku@rockbox.org>2007-10-21 16:44:13 +0000
commitd4f382252d01102d997281a1f2cb58ffd6b33f97 (patch)
tree92fa67f93ab784c81f30d69d3b22293b0ffb6043 /apps/plugins/mpegplayer/video_out_rockbox.c
parent8941d2bfa26fd51bf230d5146e48929619df0608 (diff)
downloadrockbox-d4f382252d01102d997281a1f2cb58ffd6b33f97.tar.gz
rockbox-d4f382252d01102d997281a1f2cb58ffd6b33f97.zip
FS#7997 - mpegplayer - enable/disable start menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15250 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/video_out_rockbox.c')
-rw-r--r--apps/plugins/mpegplayer/video_out_rockbox.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/mpegplayer/video_out_rockbox.c b/apps/plugins/mpegplayer/video_out_rockbox.c
index 490f04411f..9dd8d6a467 100644
--- a/apps/plugins/mpegplayer/video_out_rockbox.c
+++ b/apps/plugins/mpegplayer/video_out_rockbox.c
@@ -78,9 +78,9 @@ void vo_draw_frame_thumb (uint8_t * const * buf)
78 for (c=0;c<image_height/4;c++) 78 for (c=0;c<image_height/4;c++)
79 { 79 {
80 *(tmpbuf[1]+c*image_width/4+r) = 80 *(tmpbuf[1]+c*image_width/4+r) =
81 *(buf[1]+2*c*image_width/2+2*r); 81 *(buf[1]+c*image_width+2*r);
82 *(tmpbuf[2]+c*image_width/4+r) = 82 *(tmpbuf[2]+c*image_width/4+r) =
83 *(buf[2]+2*c*image_width/2+2*r); 83 *(buf[2]+c*image_width+2*r);
84 } 84 }
85#else 85#else
86 for (r=0;r<image_width/2;r++) 86 for (r=0;r<image_width/2;r++)
@@ -92,9 +92,9 @@ void vo_draw_frame_thumb (uint8_t * const * buf)
92 for (c=0;c<image_height/4;c++) 92 for (c=0;c<image_height/4;c++)
93 { 93 {
94 *(tmpbuf[1]+(image_width/4-1-r)*image_height/4+c) = 94 *(tmpbuf[1]+(image_width/4-1-r)*image_height/4+c) =
95 *(buf[1]+2*c*image_width/2+2*r); 95 *(buf[1]+c*image_width+2*r);
96 *(tmpbuf[2]+(image_width/4-1-r)*image_height/4+c) = 96 *(tmpbuf[2]+(image_width/4-1-r)*image_height/4+c) =
97 *(buf[2]+2*c*image_width/2+2*r); 97 *(buf[2]+c*image_width+2*r);
98 } 98 }
99#endif 99#endif
100 100
@@ -148,12 +148,12 @@ void vo_setup(const mpeg2_sequence_t * sequence)
148 image_width=sequence->width; 148 image_width=sequence->width;
149 image_height=sequence->height; 149 image_height=sequence->height;
150 150
151 tmpbufa = (uint8_t*)mpeg2_malloc(sizeof(uint8_t)*image_width/2* 151 tmpbufa = (uint8_t*)mpeg2_malloc(sizeof(uint8_t)*image_width*
152 image_height/2, -2);
153 tmpbufb = (uint8_t*)mpeg2_malloc(sizeof(uint8_t)*image_width/4*
154 image_height/4, -2);
155 tmpbufc = (uint8_t*)mpeg2_malloc(sizeof(uint8_t)*image_width/4*
156 image_height/4, -2); 152 image_height/4, -2);
153 tmpbufb = (uint8_t*)mpeg2_malloc(sizeof(uint8_t)*image_width*
154 image_height/16, -2);
155 tmpbufc = (uint8_t*)mpeg2_malloc(sizeof(uint8_t)*image_width*
156 image_height/16, -2);
157 tmpbuf[0] = tmpbufa; 157 tmpbuf[0] = tmpbufa;
158 tmpbuf[1] = tmpbufb; 158 tmpbuf[1] = tmpbufb;
159 tmpbuf[2] = tmpbufc; 159 tmpbuf[2] = tmpbufc;