picturedisplayer.c File Reference

This implements a TCP server which pushes the raw picture stream to a connected client. More...

#include <unistd.h>
#include <libfg/capture.h>
#include <sys/resource.h>
#include "picturedisplayer.h"
#include "frameconversions.h"
#include "frametypes.h"
#include "guardmodes.h"
#include "logger.h"
#include "netfunctions.h"

Include dependency graph for picturedisplayer.c:

Go to the source code of this file.

Functions

void * pictureDisplayer (void *arg)
 This thread is responsible for listening for incoming TCP connections accepting them and pushing the picture data to the stream.

Variables

char pictureDisplayerQuitReq = 0
 Set to 1 to end the picture displayer thread.
char pictureDisplayerPrio = 10
 Picture displayer priority.
pthread_mutex_t hsvFrameMutex
 Mutex for accessing the hsvFrame.
pthread_mutex_t fgFrameMutex
 Mutex for accessing the libfg frame.
FRAMEGRABBER * fg
 Frame grabber which hides the whole V4L thing.
FRAME * frame
 The frame we get from the frame grabber.
shsv_frame_thsvFrame
 Our HSV frame.
char guardMode
 The guard's mode: running or watching.
char guardSide
 Tells if the guard is running along the left or right wall.
WINDOW * pdLogWindow = NULL
 ncurses window, where the logging output will go to.


Detailed Description

This implements a TCP server which pushes the raw picture stream to a connected client.

Version:
Id
picturedisplayer.c,v 1.17 2008/09/18 12:59:02 prokop Exp

Definition in file picturedisplayer.c.


Function Documentation

void* pictureDisplayer ( void *  arg  ) 

This thread is responsible for listening for incoming TCP connections accepting them and pushing the picture data to the stream.

Parameters:
arg Arguments for this thread. Currently unused.
Returns:
Nothing.

Definition at line 56 of file picturedisplayer.c.


Variable Documentation

FRAMEGRABBER* fg

Frame grabber which hides the whole V4L thing.

Definition at line 90 of file camServer.c.

pthread_mutex_t fgFrameMutex

Mutex for accessing the libfg frame.

Definition at line 94 of file guard.c.

FRAME* frame

The frame we get from the frame grabber.

Definition at line 92 of file camServer.c.

char guardMode

The guard's mode: running or watching.

See Possible Guard Modes

Definition at line 136 of file guard.c.

char guardSide

Tells if the guard is running along the left or right wall.

See Guard's side

Definition at line 140 of file guard.c.

Our HSV frame.

Definition at line 121 of file guard.c.

pthread_mutex_t hsvFrameMutex

Mutex for accessing the hsvFrame.

Definition at line 92 of file guard.c.

WINDOW* pdLogWindow = NULL

ncurses window, where the logging output will go to.

Definition at line 54 of file picturedisplayer.c.

Picture displayer priority.

Picture displayer has to have lower priority because network access slows down picture analysis.

Definition at line 41 of file picturedisplayer.c.

Set to 1 to end the picture displayer thread.

Definition at line 40 of file picturedisplayer.c.


Generated on Sun Sep 28 21:20:01 2008 for Guard by  doxygen 1.5.6