Revision 1afe09d5 libavformat/rtp.h

View differences:

libavformat/rtp.h
24 24
#include "libavcodec/avcodec.h"
25 25
#include "avformat.h"
26 26

  
27
/** Structure listing useful vars to parse RTP packet payload*/
28
typedef struct rtp_payload_data_s
29
{
30
    int sizelength;
31
    int indexlength;
32
    int indexdeltalength;
33
    int profile_level_id;
34
    int streamtype;
35
    int objecttype;
36
    char *mode;
37

  
38
    /** mpeg 4 AU headers */
39
    struct AUHeaders {
40
        int size;
41
        int index;
42
        int cts_flag;
43
        int cts;
44
        int dts_flag;
45
        int dts;
46
        int rap_flag;
47
        int streamstate;
48
    } *au_headers;
49
    int nb_au_headers;
50
    int au_headers_length_bytes;
51
    int cur_au_index;
52
} rtp_payload_data_t;
53

  
27 54
typedef struct PayloadContext PayloadContext;
28 55
typedef struct RTPDynamicProtocolHandler_s RTPDynamicProtocolHandler;
29 56

  
......
36 63
int rtp_get_payload_type(AVCodecContext *codec);
37 64

  
38 65
typedef struct RTPDemuxContext RTPDemuxContext;
39
typedef struct rtp_payload_data_s rtp_payload_data_s;
40
RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, rtp_payload_data_s *rtp_payload_data);
66
RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, rtp_payload_data_t *rtp_payload_data);
41 67
void rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx,
42 68
                                    RTPDynamicProtocolHandler *handler);
43 69
int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
......
63 89
#define RTCP_TX_RATIO_NUM 5
64 90
#define RTCP_TX_RATIO_DEN 1000
65 91

  
66
/** Structure listing useful vars to parse RTP packet payload*/
67
typedef struct rtp_payload_data_s
68
{
69
    int sizelength;
70
    int indexlength;
71
    int indexdeltalength;
72
    int profile_level_id;
73
    int streamtype;
74
    int objecttype;
75
    char *mode;
76

  
77
    /** mpeg 4 AU headers */
78
    struct AUHeaders {
79
        int size;
80
        int index;
81
        int cts_flag;
82
        int cts;
83
        int dts_flag;
84
        int dts;
85
        int rap_flag;
86
        int streamstate;
87
    } *au_headers;
88
    int nb_au_headers;
89
    int au_headers_length_bytes;
90
    int cur_au_index;
91
} rtp_payload_data_t;
92

  
93 92
#endif /* AVFORMAT_RTP_H */

Also available in: Unified diff