|
Revision 3078, 3.6 KB
(checked in by ucacoxh, 13 years ago)
|
|
- Added Id strings to all c file.
- Replaced $Date$ and $Revision$ with $Id$ in headers.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | #ifndef __PERSIST_DB_H__ |
|---|
| 18 | #define __PERSIST_DB_H__ |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | #include "channel_types.h" |
|---|
| 22 | #include "codec_types.h" |
|---|
| 23 | #include "timers.h" |
|---|
| 24 | #include "ts.h" |
|---|
| 25 | #include "render_3D.h" |
|---|
| 26 | |
|---|
| 27 | typedef struct s_pdb pdb_t; |
|---|
| 28 | |
|---|
| 29 | typedef struct { |
|---|
| 30 | uint32_t ssrc; |
|---|
| 31 | u_char first_mix:1; |
|---|
| 32 | struct s_render_3D_dbentry *render_3D_data; |
|---|
| 33 | double gain; |
|---|
| 34 | u_char mute:1; |
|---|
| 35 | struct s_time *clock; |
|---|
| 36 | uint16_t units_per_packet; |
|---|
| 37 | uint16_t inter_pkt_gap; |
|---|
| 38 | ts_t frame_dur; |
|---|
| 39 | u_char enc; |
|---|
| 40 | char* enc_fmt; |
|---|
| 41 | int enc_fmt_len; |
|---|
| 42 | uint32_t last_ts; |
|---|
| 43 | uint32_t last_seq; |
|---|
| 44 | ts_t last_arr; |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | ts_t jitter; |
|---|
| 48 | ts_t transit; |
|---|
| 49 | ts_t last_transit; |
|---|
| 50 | ts_t last_last_transit; |
|---|
| 51 | ts_t avg_transit; |
|---|
| 52 | cc_id_t channel_coder_id; |
|---|
| 53 | ts_t last_mixed; |
|---|
| 54 | ts_t playout; |
|---|
| 55 | ts_sequencer seq; |
|---|
| 56 | uint32_t spike_events; |
|---|
| 57 | uint32_t spike_toged; |
|---|
| 58 | |
|---|
| 59 | ts_t last_ui_update; |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | uint32_t received; |
|---|
| 63 | uint32_t duplicates; |
|---|
| 64 | uint32_t misordered; |
|---|
| 65 | uint32_t jit_toged; |
|---|
| 66 | |
|---|
| 67 | uint32_t magic; |
|---|
| 68 | } pdb_entry_t; |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | int pdb_create (pdb_t **p); |
|---|
| 74 | int pdb_destroy (pdb_t **p); |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | int pdb_get_first_id (pdb_t *p, uint32_t *id); |
|---|
| 80 | |
|---|
| 81 | int pdb_get_next_id (pdb_t *p, uint32_t cur_id, uint32_t *next_id); |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | int pdb_item_get (pdb_t *p, uint32_t id, pdb_entry_t **item); |
|---|
| 87 | |
|---|
| 88 | int pdb_item_create (pdb_t *p, |
|---|
| 89 | struct s_fast_time *clock, |
|---|
| 90 | uint16_t freq, |
|---|
| 91 | uint32_t id); |
|---|
| 92 | |
|---|
| 93 | int pdb_item_destroy (pdb_t *p, uint32_t id); |
|---|
| 94 | void pdb_item_validate(pdb_entry_t *item); |
|---|
| 95 | |
|---|
| 96 | uint32_t pdb_item_count (pdb_t *p); |
|---|
| 97 | |
|---|
| 98 | #endif |
|---|