#include <assert.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <pthread.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rtp_api.h"
#include "rtp_highlevel.h"
Go to the source code of this file.
Data Structures | |
struct | evt_queue_elt |
Defines | |
#define | tv2dbl(tv) ((tv).tv_sec + (tv).tv_usec / 1000000.0) |
#define | RAW_BUF_SIZE (10240) |
Enumerations | |
enum | { PAL_FORMAT, NTSC_FORMAT, AVI_DV1_FORMAT, AVI_DV2_FORMAT, QT_FORMAT, RAW_FORMAT, TEST_FORMAT, UNDEFINED } |
Functions | |
void | insert_in_evt_queue (struct evt_queue_elt *elt) |
void | RTPSchedule (context cid, rtp_opaque_t opaque, struct timeval *tp) |
void | getargs (int argc, char *argv[]) |
void | signal_handler (int sig) |
int | main (int argc, char *argv[]) |
Variables | |
int | g_buffer_underrun |
volatile int | g_reader_active |
volatile int | g_alldone |
int | g_filedone |
char * | g_dst_file_name |
int | g_frame_size |
int | g_autosplit |
int | g_timestamp |
int | g_card |
int | g_channel |
int | g_file_format |
int | g_index_type |
int | g_frame_count |
int | g_frame_every |
int | g_frame_to_skip |
int | g_progress |
int | g_testmode |
pthread_mutex_t | g_mutex |
pthread_t | g_thread |
char | addr [20] |
int | port = 12000 |
context | cid |
int | dump_fd |
int | flags_dump = 0 |
unsigned char | ttl = 255 |
rtperror | status |
evt_queue_elt * | evt_queue = NULL |
|
|
|
Definition at line 27 of file dvsend.c. Referenced by RTPSchedule(). |
|
|
|
Definition at line 117 of file dvsend.c. References addr, flags_dump, g_autosplit, g_card, g_channel, g_dst_file_name, g_file_format, g_frame_count, g_frame_every, g_progress, g_testmode, g_timestamp, port, and RAW_FORMAT. Referenced by main(). |
|
Definition at line 80 of file dvsend.c. References evt_queue_elt::event_time, evt_queue, and evt_queue_elt::next. Referenced by RTPSchedule(). |
|
Definition at line 222 of file dvsend.c. References addr, cid, dump_fd, flags_dump, getargs(), port, RTP_OK, RTPCreate(), RTPOpenConnection(), RTPSessionAddSendAddr(), RTPSessionSetReceiveAddr(), RTPStrError(), signal_handler(), status, and ttl. |
|
Definition at line 99 of file dvsend.c. References cid, context, insert_in_evt_queue(), rtp_opaque_t, and tv2dbl. |
|
Definition at line 195 of file dvsend.c. References cid, g_alldone, g_reader_active, RTP_OK, RTPCloseConnection(), RTPDestroy(), RTPStrError(), and status. Referenced by main(). |
|
|
|
Definition at line 63 of file dvsend.c. Referenced by main(), RTPSchedule(), and signal_handler(). |
|
Definition at line 65 of file dvsend.c. Referenced by main(). |
|
Definition at line 78 of file dvsend.c. Referenced by insert_in_evt_queue(). |
|
|
|
Definition at line 36 of file dvsend.c. Referenced by signal_handler(). |
|
Definition at line 41 of file dvsend.c. Referenced by getargs(). |
|
|
|
Definition at line 43 of file dvsend.c. Referenced by getargs(). |
|
Definition at line 44 of file dvsend.c. Referenced by getargs(). |
|
Definition at line 38 of file dvsend.c. Referenced by getargs(). |
|
Definition at line 45 of file dvsend.c. Referenced by getargs(). |
|
|
|
Definition at line 47 of file dvsend.c. Referenced by getargs(). |
|
Definition at line 48 of file dvsend.c. Referenced by getargs(). |
|
|
|
|
|
|
|
|
|
Definition at line 50 of file dvsend.c. Referenced by getargs(). |
|
Definition at line 35 of file dvsend.c. Referenced by signal_handler(). |
|
Definition at line 51 of file dvsend.c. Referenced by getargs(). |
|
|
|
Definition at line 42 of file dvsend.c. Referenced by getargs(). |
|
|
|
Definition at line 69 of file dvsend.c. Referenced by main(), and signal_handler(). |
|
Definition at line 68 of file dvsend.c. Referenced by main(). |