diff options
Diffstat (limited to 'apps/plugins/mpegplayer/video_out_rockbox.c')
-rw-r--r-- | apps/plugins/mpegplayer/video_out_rockbox.c | 18 |
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; |