#include "camera_info.h"
#include "conf.h"
#include "keyboard.h"
#include "modes.h"
#include "viewport.h"
#include "properties.h"
#include "gui.h"
#include "gui_draw.h"
#include "gui_lang.h"
#include "gui_osd.h"
#include "gui_mbox.h"
#include "gui_batt.h"
#include "gui_space.h"
#include "histogram.h"
#include "zebra.h"
#include "gui_grid.h"
#include "module_def.h"
gehe zum Quellcode dieser Datei
int _module_can_unload |
( |
) | |
|
unsigned char clip8 |
( |
signed short |
x) | |
|
Definiert in Zeile 115 der Datei zebra.c.
115 {
if (
x<0)
x=0;
else if (
x>255)
x=255;
return x; }
static void disp_zebra |
( |
) | |
|
|
static |
Definiert in Zeile 192 der Datei zebra.c.
195 int has_disappeared=0;
200 return has_disappeared;
static void draw_pixel_buffered |
( |
unsigned int |
offset, |
|
|
color |
cl |
|
) |
| |
|
static |
static int draw_zebra_aspect_adjust |
( |
int |
mrec, |
|
|
unsigned int |
f, |
|
|
color * |
cls |
|
) |
| |
|
static |
Definiert in Zeile 241 der Datei zebra.c.
243 int v,
s,
x,
y, over;
244 static int need_restore=0;
247 int viewport_image_offset;
248 int viewport_row_offset;
262 if (viewport_yoffset > 0) {
266 int step_x, step_v, sy, sx;
269 for (y=viewport_yoffset, v=viewport_image_offset; y<viewport_yoffset+
viewport_height; ++
y) {
272 if (viewport_xoffset > 0) {
276 for (x=viewport_xoffset; x<viewport_xoffset+
viewport_width; x+=step_x, sx+=step_x, v+=step_v) {
285 vv = (
signed char)
img_buf[v+2];
288 if (
clip8(((yy<<12) + vv*5743 + 2048)>>12)>over) sel = 4;
289 if (
clip8(((yy<<12) - uu*1411 - vv*2925 + 2048)>>12)>over) sel |= 2;
290 if (
clip8(((yy<<12) + uu*7258 + 2048)>>12)>over) sel |= 1;
293 buf[s+2] =
buf[s+3] = cls[sel];
304 v += viewport_row_offset;
306 if (!zebra_drawn) f=0;
static int draw_zebra_no_aspect_adjust |
( |
int |
mrec, |
|
|
unsigned int |
f, |
|
|
color * |
cls |
|
) |
| |
|
static |
Definiert in Zeile 350 der Datei zebra.c.
351 int v,
s,
x,
y, over;
352 static int need_restore=0;
357 unsigned aspOffset = 0;
379 register int yy, uu, vv;
387 vv = (
signed char)
img_buf[v+2];
390 if (
clip8(((yy<<12) + vv*5743 + 2048)>>12)>over) sel = 4;
391 if (
clip8(((yy<<12) - uu*1411 - vv*2925 + 2048)>>12)>over) sel |= 2;
392 if (
clip8(((yy<<12) + uu*7258 + 2048)>>12)>over) sel |= 1;
411 if (!zebra_drawn) f=0;
static unsigned char get_cur_buf |
( |
unsigned int |
idx) | |
|
|
static |
int gui_osd_draw_zebra |
( |
int |
show) | |
|
static void gui_osd_draw_zebra_osd |
( |
) | |
|
|
static |
static void gui_osd_zebra_free |
( |
) | |
|
|
static |
static int gui_osd_zebra_init |
( |
int |
show) | |
|
|
static |
Initialisierung:
Definiert in Zeile 777 der Datei zebra.c.
Initialisierung:
Definiert in Zeile 786 der Datei zebra.c.
unsigned char* buf = NULL |
|
static |
unsigned char * cur_buf_bot |
|
static |
unsigned char* cur_buf_top |
|
static |