#include "semaphore.h"
#include "acquisition.h"
Go to the source code of this file.
Defines | |
#define | __preview_h 1 |
#define | IMAGE_WIDTH preview_width |
#define | IMAGE_HEIGHT preview_height |
#define | WORDS_PER_PACKET 1024 |
Enumerations | |
enum | imstat_status { imstat_void, imstat_running, imstat_done } |
Functions | |
void | preview_fill_buffer (unsigned char *data, int size) |
fills previewbuf with data, without drawing anything | |
void | preview_set_max_dimensions (int x, int y) |
sets the maximum sizes of the preview (online display) | |
void | preview_set_enable (int in) |
sets the preview to enabled/disbaled | |
void | preview_send_data () |
checks whether new data is available for sending to the (G)UI and sends new data in this case. | |
void | preview_readout_finished () |
This function is called when the readout has finished. | |
void | init_imstat () |
initializes the image statisics system | |
void | ui_preview_data (unsigned char *data, unsigned long size) |
is called by preview.c whenever new data is ready for display | |
void | ui_preview_reset (int width, int height) |
is called by preview.c whenever the preview resets itself | |
void | ui_image_statistics_changed (struct image_statistics_struct input) |
called by prewiev.c and fisoutout.c whenever the image statistics have changed. | |
Variables | |
volatile int | preview_width |
volatile int | preview_height |
volatile int | preview_max_width |
volatile int | preview_max_height |
image_statistics_struct | image_statistics |
sem_t | preview_sem |
sem_t | imstat_sem |
Copyright (C) 2001-2003 Dirk Huenniger (dhun@astro.uni-bonn.de)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
initializes the image statisics system
|
|
fills previewbuf with data, without drawing anything
|
|
This function is called when the readout has finished.
|
|
checks whether new data is available for sending to the (G)UI and sends new data in this case.
|
|
sets the preview to enabled/disbaled
|
|
sets the maximum sizes of the preview (online display)
|
|
called by prewiev.c and fisoutout.c whenever the image statistics have changed.
|
|
is called by preview.c whenever new data is ready for display
|
|
is called by preview.c whenever the preview resets itself
|
|
The current image st |
|
a semaphore protecting image_statistics struct of the image staitics system (would be better to move the image statistics system to an other file) |
|
The actual height of the preview image |
|
The maximum height of the preview image |
|
The maximum width of the preview image |
|
a semaphore protecting preview_words_sent preview_words_ready and previewbuf |
|
The actual width of the preview image |