Commit graph

15 commits

Author SHA1 Message Date
Thomas Martitz
a1842c04f9 lcd-24bit: Introduce a 24-bit mid-level LCD driver
With LCD driver all calculation will be performed on RGB888 and the hardware/OS
can display from our 24bit framebuffer.

It is not yet as performance optimized as the existing drivers but should be
good enough.The vast number of small changes is due to the fact that
fb_data can be a struct type now, while most of the code expected a scalar type.

lcd-as-memframe ASM code does not work with 24bit currently so the with 24bit
it enforces the generic C code.

All plugins are ported over. Except for rockpaint. It uses so much memory that
it wouldnt fit into the 512k plugin buffer anymore (patches welcome).

Change-Id: Ibb1964545028ce0d8ff9833ccc3ab66be3ee0754
2014-06-21 00:15:53 +02:00
Tomer Shalev
4da92e3785 Fractals: Remove redundant assignment to a variable (y_delta)
Also some cosmetics


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25373 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 18:58:43 +00:00
Rafaël Carré
442084bce9 mandelbrot: start with bright colors on greyscale
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24378 a1c6a512-1295-4272-9138-f99709370657
2010-01-30 08:35:16 +00:00
Rafaël Carré
82fafb2d55 mandelbrot: use correct colors on greyscale targets (FS#10935)
Tested on Clipv1 (sim/target) and Ipod3g (sim)
Each color would be calculated as 0

Note the iteration over the whole range of colors is quite weird, and I
can not really sense what max_iter represents (except it's a number of
different colors, right?)

It should be backported to branch after tomers check if color range is
correct (FS#10935 mentions much smaller range for color targets as well)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24377 a1c6a512-1295-4272-9138-f99709370657
2010-01-30 07:16:16 +00:00
Teruaki Kawashima
576d0721d6 fractals: set svn:keywords property.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24310 a1c6a512-1295-4272-9138-f99709370657
2010-01-21 13:18:27 +00:00
Teruaki Kawashima
e0dfa22cad Fractals: this should fix bugs on simulator for greyscale LCD targets.
* moved #define USEGSLIB to fractal_sets.h and include only needed header file.
* include plugin.h so that LCD_DEPTH is defined.
* explicitly include fractal_sets.h in mandelbrot_set.c


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24309 a1c6a512-1295-4272-9138-f99709370657
2010-01-21 12:27:07 +00:00
Tomer Shalev
2f78fa114d Fractals: No need to have globals under ctx struct
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24285 a1c6a512-1295-4272-9138-f99709370657
2010-01-19 20:05:19 +00:00
Tomer Shalev
d812362905 Fractals: Use more colors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24265 a1c6a512-1295-4272-9138-f99709370657
2010-01-17 21:21:52 +00:00
Tomer Shalev
ab450a81ec Fractals: Prevent zooming more than deepest possible zoom
This prevent the mandelbrost set from being trashed if zooming too much


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24264 a1c6a512-1295-4272-9138-f99709370657
2010-01-17 21:15:56 +00:00
Tomer Shalev
55240a2e85 Fractals: Use constants for screen panning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24258 a1c6a512-1295-4272-9138-f99709370657
2010-01-17 15:32:17 +00:00
Tomer Shalev
569bc33101 Fractals: Use defines for colors
This makes the code a bit more readable, and will allow me in the near future
to introduce support of more colors


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24236 a1c6a512-1295-4272-9138-f99709370657
2010-01-15 12:00:57 +00:00
Tomer Shalev
da41706f65 Fractals: Fix yellow
- Have USEGSLIB be defined in fractals.h
- BTW the plugin name was renamed to fractals from mandelbrot, because it now
  provide the basis to use other fractals set, such as the Julia set.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24235 a1c6a512-1295-4272-9138-f99709370657
2010-01-15 11:48:21 +00:00
Tomer Shalev
fafbfbc56c Mandelbrot: Another try at fixing reds
- A one letter type cause it :-(


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24232 a1c6a512-1295-4272-9138-f99709370657
2010-01-15 06:26:34 +00:00
Tomer Shalev
4794891c97 Fractals: Fix red
- Define painting buffer inside fractal set implementation
- Add missing USEGLIB define
- Removed mandelbrot.c that was forgotten in last commit


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24231 a1c6a512-1295-4272-9138-f99709370657
2010-01-15 06:17:56 +00:00
Tomer Shalev
7719d297f2 FS#10911 - Plugins: Fractals (formerly Mandelbrot)
- Rename the mandelbrot plugin to fractals
- Update manual accordingly
- Separate plugin's functionality into separate files
- Lay the ground for having fractals sets other than the Mandelbrot set.
  For that the following will need to be implemented:
  - Create a new file for the new fracral set
  - Provide key mapping to switch between sets


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24230 a1c6a512-1295-4272-9138-f99709370657
2010-01-15 05:53:15 +00:00