- screen_buf = cbs->pl_vout_set_mode(w0, h1, isRGB24 ? 24 : 16);
- }
- dest = (u8 *)screen_buf;
-
- if (isRGB24)
- {
-#ifndef MAEMO
- for (; h1-- > 0; dest += w0 * 3, srcs += 1024)
- {
- bgr888_to_rgb888(dest, srcs, w0 * 3);
- }
-#else
- for (; h1-- > 0; dest += w0 * 2, srcs += 1024)
- {
- bgr888_to_rgb565(dest, srcs, w0 * 3);
- }
-#endif
- }
- else
- {
- for (; h1-- > 0; dest += w0 * 2, srcs += 1024)
- {
- bgr555_to_rgb565(dest, srcs, w0 * 2);
- }