Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
52
sdk/app/spook/stream.h
Normal file
52
sdk/app/spook/stream.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Nathan Lutchansky <lutchann@litech.org>
|
||||
*
|
||||
* 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; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#ifndef __STREAM_H
|
||||
#define __STREAM_H
|
||||
#include "frame.h"
|
||||
|
||||
struct stream_destination {
|
||||
struct stream_destination *next;
|
||||
struct stream_destination *prev;
|
||||
struct stream *stream;
|
||||
int waiting;
|
||||
frame_deliver_func process_frame;
|
||||
frame_disconnect_func disconnect_frame;
|
||||
void *d;
|
||||
};
|
||||
|
||||
struct stream {
|
||||
struct stream *next;
|
||||
struct stream *prev;
|
||||
const char *name;
|
||||
int format;
|
||||
struct stream_destination *dest_list;
|
||||
void (*get_framerate)( struct stream *s, int *fincr, int *fbase );
|
||||
void (*set_running)( struct stream *s, int running );
|
||||
void *private;
|
||||
};
|
||||
|
||||
struct stream *new_stream( const char *name, int format, void *d );
|
||||
void deliver_frame_to_stream( struct frame *f, void *d );
|
||||
struct stream_destination *connect_to_stream( const char *name,
|
||||
frame_deliver_func process_frame, void *d );
|
||||
void del_stream( struct stream *s );
|
||||
void set_waiting( struct stream_destination *dest, int waiting );
|
||||
void disconnect_stream(struct stream_destination *dest,frame_disconnect_func disconnect_frame);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user