Zebra mode...condition of start?! - General Discussion and Assistance - CHDK Forum supplierdeeply

Zebra mode...condition of start?!

  • 3 Replies
  • 2533 Views
*

Offline muttley

  • **
  • 51
  • + pilu x tutti!
    • A550 Porting
Zebra mode...condition of start?!
« on: 10 / February / 2008, 12:20:15 »
Advertisements
I search the way to solve my problem with a550 porting and zembra mode, when active it the mask of zembra mode shift to right and the edge is cut off and looped to the other side of the screen.

Is it maybe the vid_get_bitmap_fb(), vid_get_viewport_fb(), vid_get_viewport_fb_d() address wrong!?

btw, th question is another...while a I search the solution to my problem i find in gui.c this line of code:

 
Code: [Select]
mode_photo = (m&MODE_MASK) == MODE_PLAY || !((m&MODE_SHOOTING_MASK)
==MODE_VIDEO_STD || (m&MODE_SHOOTING_MASK)==MODE_VIDEO_SPEED || (m
&MODE_SHOOTING_MASK)==MODE_VIDEO_COMPACT || (m&MODE_SHOOTING_MASK)
==MODE_VIDEO_MY_COLORS || (m&MODE_SHOOTING_MASK)
==MODE_VIDEO_COLOR_ACCENT || (m&MODE_SHOOTING_MASK)==MODE_STITCH);
if (conf.zebra_draw && gui_mode==GUI_MODE_NONE && kbd_is_key_pressed(KEY_SHOOT_HALF) && mode_photo)  <--- ???
{
if (!zebra_init)
{
zebra_init = 1;
gui_osd_zebra_init();
}
zebra = gui_osd_draw_zebra();
}
[...]

I don't understand, I think that if condition execute zebra also when is it in MODE_PLAY!!??  ???

but in MODE_PLAY when i click half shoot button (in if condition) i return in MODE_REC  :blink:

is it an error of my porting?  :o

thanks

*

Offline muttley

  • **
  • 51
  • + pilu x tutti!
    • A550 Porting
Re: Zebra mode...condition of start?!
« Reply #1 on: 10 / February / 2008, 13:41:48 »
my Zebra mode problem is solved...It was vid_get_viewport_fb() bad address  ::)

but...if condition  ???

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Zebra mode...condition of start?!
« Reply #2 on: 10 / February / 2008, 16:28:35 »
I don't understand, I think that if condition execute zebra also when is it in MODE_PLAY!!??  ???

but in MODE_PLAY when i click half shoot button (in if condition) i return in MODE_REC  :blink:

1) Not all cameras returns to MODE_REC by half-shutter.
2) In Play mode: enter to <Alt> mode and half-press the shutter button. If keyboard mask is correct it will prevent the camera to switch to rec mode. In this case the zebra could be shown.
CHDK Developer.

*

Offline muttley

  • **
  • 51
  • + pilu x tutti!
    • A550 Porting
Re: Zebra mode...condition of start?!
« Reply #3 on: 10 / February / 2008, 17:31:41 »
first of all, thank for answer...but also how you say: nothing!

Quote
2) In Play mode: enter to <Alt> mode and half-press the shutter button. If keyboard mask is correct it will prevent the camera to switch to rec mode. In this case the zebra could be shown.

I see histogram but nothing else => for this, keyboard mask should to be right  :blink:

Histogram condition:
Code: [Select]
conf.show_histo && (gui_mode==GUI_MODE_NONE || gui_mode==GUI_MODE_ALT) [...]
I'm not understending...but the IF condition is:

Zebra condition:
Code: [Select]
conf.zebra_draw && [color=red]gui_mode==GUI_MODE_NONE[/color] && kbd_is_key_pressed(KEY_SHOOT_HALF) && mode_photo
this mean that only view zebra in GUI_MODE_NONE...and not in GUI_MODE_ALT  :blink:

sorry, this is not important, it's only to learn something  :xmas

I'm sure there is zebra mode in MODE_PLAY also for this code in gui_osd_draw_zebra():

Code: [Select]
img_buf=((mode_get()&MODE_MASK) == MODE_PLAY)?[color=red]vid_get_viewport_fb_d()[/color]:vid_get_viewport_fb();
vid_get_viewport_fb_d() should be viewport buffer in MODE_PLAY...

thank...for all support and this fantastic CHDK!!
« Last Edit: 10 / February / 2008, 17:33:38 by muttley »


 

Related Topics