File: source.h

package info (click to toggle)
rat 4.2.22-2.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,896 kB
  • ctags: 3,717
  • sloc: ansic: 36,542; tcl: 2,740; sh: 2,675; makefile: 295
file content (74 lines) | stat: -rw-r--r-- 2,466 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * FILE:      source.h
 * AUTHOR(S): Orion Hodson 
 *	
 *
 * Copyright (c) 1999-2001 University College London
 * All rights reserved.
 *
 * $Id: source.h,v 1.43 2001/01/08 20:30:10 ucaccsp Exp $
 */

#ifndef __SOURCE_H__
#define __SOURCE_H__

#include "converter.h"
#include "ts.h"
#include "rtp.h"

struct s_source;
struct s_source_list;
struct s_rtcp_dbentry;
struct s_mixer;
struct s_pb;
struct s_session;

int              source_list_create  (struct s_source_list **pplist);

void             source_list_destroy (struct s_source_list **pplist);

void             source_list_clear   (struct s_source_list *plist);

uint32_t         source_list_source_count(struct s_source_list *plist);

struct s_source* source_list_get_source_no (struct s_source_list *plist,
                                            uint32_t              src_no);

struct s_source* source_get_by_ssrc (struct s_source_list  *list,
                                     uint32_t               ssrc);

struct s_source* source_create             (struct s_source_list  *list, 
                                            uint32_t               ssrc,
					    pdb_t		  *pdb);

void             source_remove             (struct s_source_list *list,
                                            struct s_source      *src);

int              source_add_packet         (struct s_source *src, 
                                            rtp_packet      *p);

int              source_check_buffering    (struct s_source   *src);

void             source_process            (struct s_session  *sp,
                                            struct s_source   *src,
                                            timestamp_t               start_ts,
                                            timestamp_t               end_ts);

int              source_relevant           (struct s_source *src,
                                            timestamp_t             now);

int              source_audit              (struct s_source *src);

timestamp_t             source_get_audio_buffered (struct s_source *src);

timestamp_t             source_get_playout_delay  (struct s_source *src);

double           source_get_bps            (struct s_source *src);
double           source_get_skew_rate      (struct s_source *src);

struct s_pb*
                 source_get_decoded_buffer (struct s_source *src);

uint32_t         source_get_ssrc           (struct s_source *src);

#endif /* __SOURCE_H__ */