~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/rtp_internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20081226001006-wd8cuqn8d81smkdp
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 */
21
21
 
22
22
// this is a bit of a misnomer, because rtp & rtsp internal structures and prototypes are in here.
23
 
#ifndef RTP_INTERNAL_H
24
 
#define RTP_INTERNAL_H
 
23
#ifndef FFMPEG_RTP_INTERNAL_H
 
24
#define FFMPEG_RTP_INTERNAL_H
 
25
 
 
26
#include <stdint.h>
 
27
#include "avcodec.h"
 
28
#include "rtp.h"
25
29
 
26
30
// these statistics are used for rtcp receiver reports...
27
31
typedef struct {
37
41
    uint32_t jitter;            ///< estimated jitter.
38
42
} RTPStatistics;
39
43
 
40
 
 
 
44
/**
 
45
 * Packet parsing for "private" payloads in the RTP specs.
 
46
 *
 
47
 * @param s stream context
 
48
 * @param pkt packet in which to write the parsed data
 
49
 * @param timestamp pointer in which to write the timestamp of this RTP packet
 
50
 * @param buf pointer to raw RTP packet data
 
51
 * @param len length of buf
 
52
 * @param flags flags from the RTP packet header (PKT_FLAG_*)
 
53
 */
41
54
typedef int (*DynamicPayloadPacketHandlerProc) (struct RTPDemuxContext * s,
42
55
                                                AVPacket * pkt,
43
56
                                                uint32_t *timestamp,
44
57
                                                const uint8_t * buf,
45
 
                                                int len);
 
58
                                                int len, int flags);
46
59
 
47
60
typedef struct RTPDynamicProtocolHandler_s {
48
61
    // fields from AVRtpDynamicPayloadType_s
101
114
    /* dynamic payload stuff */
102
115
    DynamicPayloadPacketHandlerProc parse_packet;     ///< This is also copied from the dynamic protocol handler structure
103
116
    void *dynamic_protocol_context;        ///< This is a copy from the values setup from the sdp parsing, in rtsp.c don't free me.
 
117
    int max_frames_per_packet;
104
118
};
105
119
 
106
120
extern RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler;
107
121
 
108
122
int rtsp_next_attr_and_value(const char **p, char *attr, int attr_size, char *value, int value_size); ///< from rtsp.c, but used by rtp dynamic protocol handlers.
109
 
#endif /* RTP_INTERNAL_H */
 
123
 
 
124
void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m);
 
125
const char *ff_rtp_enc_name(int payload_type);
 
126
enum CodecID ff_rtp_codec_id(const char *buf, enum CodecType codec_type);
 
127
 
 
128
void av_register_rtp_dynamic_payload_handlers(void);
 
129
 
 
130
#endif /* FFMPEG_RTP_INTERNAL_H */
110
131