Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ubbut

#1
Camera-specific Development / Re: Canon 1100D / T3
November 22, 2012, 11:47:02 AM
Quote from: jplxpto on November 22, 2012, 12:33:37 AM
I liked your work with fonts. I'd like to test your fonts on my 40D. I suggest to you that cries an entry in the debug menu that shows all characters in TFT. This option should only be apareser mode is set DEBUG in the makefile.

good idea, will look into it when i have time...

the resolution of the 40D is 320x240, correct? what is the resolution of the buffer? Buffer resolution should be double of that, otherwise the fonts won't improve much...  edit: well ok if it is some sort of cropping + line and/or row skipping it will work, too...

Quote from: scrax on November 22, 2012, 12:40:44 AM
Thinking about how to compare, should be possible to draw two grid one with and one without AA on the same screen? Either i'll try to make a cropmark from the screenshot

Next thing I will do is to set up a proper test pattern which covers all the eventualities, test AA on icons and waveform, vectorscope and histogram.
Until then you can switch AA on and off using the 'Audio Meters' on/off selector. (just in case you havn't seen it...)
#2
Quote from: scrax on November 21, 2012, 11:20:34 PM
I have it too :D

Looking at the screenshot i don't like the lines with AA, but fonts instead are better, Locking at the LCD i see not a lot of difference maybe less contrast (not nice); is there a way to toggle the effect?

Hi, first of all thanks for the screenshots, they will help me to improve the algorithm (for some reason my cam freezes when trying to make a screenshot)

The anti aliasing is designed to work in this particular case where the vertical resolution of the image buffer is twice the one of the screen and line skipping is used to resize the image.
If it looks blurred on the screenshot, that's actually a good sign^^, because that is what was intended: reduce the vertical high frequency component to avoid aliasing after resampling (see http://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem)

For my test I switched back to the 'old' fonts, because they make a good test pattern, with the new fonts there will be no improvement.
On the screen you should see at least more horizontal lines in the test pattern when AA is enabled (see my photos).
#3
General Development / Re: Development stupid questions
November 21, 2012, 11:28:26 PM
Quote
but I've no clue how to put CONFIG_SCRAX for it to be true, in makefile I suppose but where exactly (under FLAGS probably, but also in the page), and how?

In the makefile add:  CFLAGS += -D YOURDEFINE=YOURVALUE
#4
Quote from: scrax on November 21, 2012, 08:50:43 PM
I like it,
mhm...
wait...
:o
1100D has a CRT screen??  :D  ;)

no it's just the awful lens distortion of a canon A560  :o
#5
Hi,
I am working on an anti aliasing function for the 1100D. First proof of concept results look nice, but it is still quite slow.

Basic idea is too perform some filtering on the image buffer to avoid aliasing after the line skipping takes place.

I am using a 1x3 filter kernel, which allows it to perform the filtering in place since only every second line is written.

Of course due to the fact, that we are limited to the first 80 entries of cannons palette this only works for gray scale, but I am translating color values to gray values that have the same brightness and use this to calculate intermediate values. And instead of overwriting a color pixel, nothing is done.

So let's assume the output of anti aliasing in full color space is a green pixel with a dark green pixel next to it. Here a green pixel with a dark gray pixel next to it is drawn instead. It's not quite as nice, but looks much better than without AA.

You can choose the area to be anti-aliased and you can also do stuff like: draw an icon, anti alias it and draw some not anti aliased text above it.

No AA:https://bitbucket.org/ubbut/magic-lantern/


With AA:


Please excuse the bad image quality


I believe this could be especially useful for dynamic generated graphics, such as histogram or vectorscope. (if the speed is improved)

if anyone is interested, code can be found here:
https://bitbucket.org/ubbut/magic-lantern/

Note: it is just for testing and still beta. I set up a test pattern in the audio menu - turn on meters to turn on anti aliasing. The AA is performed on the whole screen, it is of course faster if only applied to a small area.

#6
Camera-specific Development / Re: Canon 1100D / T3
November 21, 2012, 06:02:26 PM
Hey,

for some reason I can't take screenshots...after 10 seconds the cam just freezes and no screenshot is taken.
Is it just my cam? There are some screenshots in the thread, so I know it must have worked once..;-)

thx
#7
Camera-specific Development / Re: Canon 1100D / T3
November 20, 2012, 01:36:31 PM
Quote from: kainpower on November 19, 2012, 11:44:54 AM
Great, thanks.  ;D

EDIt 20/11/2012: Download, all OK. FINE JOB.

thanks :-)
and sorry about the confusion, I forgot to include numerals into the font at first  :o

and thanks for your screen shots they look much nicer then mine ;-)
#8
Camera-specific Development / Re: Canon 1100D / T3
November 18, 2012, 09:41:17 PM
new medium font



small font and medium font (not quite to scale)
small font is 3x6, medium is 5x7 (+spacing)

edit by nanomad: re-hosted on imgur to fix embedding
#9
Camera-specific Development / Re: Canon 1100D / T3
November 18, 2012, 05:43:21 PM
Yes, the idea is to create a font where every "pixel" is a 2x2 pixel square.
That's what I did for the new small font (it's almost not used, but you can see it on the audio meter).

I'm currently working on a similar medium font...

#10
Camera-specific Development / Re: Canon 1100D / T3
November 18, 2012, 04:58:10 PM
Yes I would like to create a new medium font, too. I am currently looking for a font which looks similar to the used helvecia but which renders nicely at a hight of 7px. (because that would mean the same hight than the current med font after upscaling)

Should also be GPL licensed, I believe. 

So far I couldn't find anything, but I will be more than happy to create the font-med.in file, If anyone points me to a suitable font :-)


Oh btw. I noticed, that there is no '?' character in font-med.in, font-large.in or font-small.in even though it seems to be created by generate-font...
maybe one has to run generate font once more ?

#11
Camera-specific Development / Re: Canon 1100D / T3
November 18, 2012, 01:28:51 PM
Hi, just updated the pull request:

Quotelowered minimum timer A,B values to achive higher maximum framerates of up to 35fps and restricted menu selection to 35fps. In zoom fps is restricted to 32.

QuoteCreated new small fonts for 1100D and changed to static fonts. To make the shadow fonts work I introduced a new struct 'sfont' which is always dynamically generated (not depending on CONFIG_STATIC_FONT)

Maybe there is a way around this, but I could not come up with one.
depending on CONFIG_STATIC_FONTS font is:

struct font
{
        unsigned        height;
        unsigned        width;
#ifdef CONFIG_STATIC_FONTS
        unsigned        bitmap[];
#else
        unsigned*       bitmap;
#endif
};


however it needs to be
unsigned*       bitmap;
for the shadow fonts.
So I introduced a new struct sfont:

struct sfont
{
        unsigned        height;
        unsigned        width;
        unsigned*       bitmap;
};


How could this be avoided?
#12
Camera-specific Development / Re: Canon 1100D / T3
November 17, 2012, 04:58:34 PM
Something else:

I created a new small font, which should look much better on the low-res screen of the 1100D. It is basically what a1ex suggested some time ago, a small font of 6x3 scaled to 12x6. After downscaling in the camera by nearest neighbor this could look just fine.

To create the font I changed the font-small.in and ran mkfont to get the corresponding font-small.c. Worked, but can't see any changes on the cam.
Do I have to create a new FONTS.DAT?

thanks
#13
Camera-specific Development / Re: Canon 1100D / T3
November 16, 2012, 10:47:10 PM
Hi, good news I think...   :-)

I played with timer values A and B, first thing I did was changing the minimum values to the minimum original values used for 30p, so you could select framerates up to 30fps no matter if you select 25p or 30p (in 25p mode fps was restricted to 25)

minimum values are:

25p : A= 1000 B=1280
30p:  A= 960   B=1112

I than tried to find the minimum working value for timer A, which seems to be 872, lower values first result in vertical purple stripes and even lower ones in a completely black screen.
This changed the maximum possible fps to 33 :-)

Minimum value for timer B seems to be 1040, below that you get a nasty ERR70 ;-)

This further improved the maximum fps to 35 :-)


I noticed that the algorithm tends to choose a lower timerA value then the original minimum even for framerates below 30. Is this a problem, or does it help to reduce yellow?


I would upload the code to the repository but I have to admit that I don't know how to do so...(I tried the pull request button, but it says "access denied")
#14
General Development / Re: problems installing arm-elf-gcc
November 16, 2012, 08:54:09 PM
Thanks!!

Using the pre-build toolchain I finally managed to compile ML :-)
#15
General Development / Re: problems installing arm-elf-gcc
November 15, 2012, 06:45:54 PM
what I did was: (ubuntu)

I downloaded prepare.ubuntu.sh and summon-arm and put them in home/[myuserame]/

I ran sudo prepare.ubuntu.sh  (works)

and then

sudo bash summon-arm  (produces the above error)

I can't see any directory called patches and ~/arm-toolchain462/ is not created ...


#16
General Development / problems installing arm-elf-gcc
November 15, 2012, 03:04:04 PM
Hi,

I am trying to follow the build instructions but when running summon-arm I get the error message:


******************************************************************
* Patching gcc to add multilib support
******************************************************************
patch: **** Can't open patch file ../patches/patch-gcc-4.6.2-config-arm-t-arm-elf.diff : No such file or directory


I changed SUDO= to SUDO=sudo, but no difference...

thanks :-)
#17
Camera-specific Development / Re: Canon 1100D / T3
November 15, 2012, 01:07:49 AM
Hi,

in FPS override the frame rate won't go above 25.054 (30.041) since the timer minimum values are restricted to the original values in fps-engio.c for 1100D:


#undef FPS_TIMER_A_MIN
#define FPS_TIMER_A_MIN fps_timer_a_orig


I guess there is a reason for that so I am not going to change anything here, but
I thought I might disable the frame rates higher than 25 (30) in the menu as a first contribution to ML if that's desirable...
#18
Camera-specific Development / Re: Canon 1100D / T3
November 14, 2012, 09:05:22 PM
Hi, first of all thanks for ML and thanks for finally porting it to the 1100D (I just found out;-)

I know ML for the 1100D is still in dev, but just for the record I wanted to report, that some image effects in movie mode don't seem to work (nothing happens), these were:

cartoon (weak)
oil painting
sharpness

can someone confirm this?

My cam also freezed the first time I tried cartoon (weak) but I can't reproduce this...