comparison rtp_internal.h @ 3975:44561554cb7e libavformat

Rename RTP payload contexts to PayloadContext, suggested by Luca in "RDT/Realmedia patches #2" thread on ML.
author rbultje
date Sat, 04 Oct 2008 04:11:12 +0000
parents f936c4b8b96d
children 64056a0c38ce
comparison
equal deleted inserted replaced
3974:a8383d02c686 3975:44561554cb7e
39 int received_prior; ///< packets received in last interval 39 int received_prior; ///< packets received in last interval
40 uint32_t transit; ///< relative transit time for previous packet 40 uint32_t transit; ///< relative transit time for previous packet
41 uint32_t jitter; ///< estimated jitter. 41 uint32_t jitter; ///< estimated jitter.
42 } RTPStatistics; 42 } RTPStatistics;
43 43
44 typedef struct PayloadContext PayloadContext;
44 /** 45 /**
45 * Packet parsing for "private" payloads in the RTP specs. 46 * Packet parsing for "private" payloads in the RTP specs.
46 * 47 *
47 * @param s stream context 48 * @param s stream context
48 * @param pkt packet in which to write the parsed data 49 * @param pkt packet in which to write the parsed data
63 enum CodecType codec_type; 64 enum CodecType codec_type;
64 enum CodecID codec_id; 65 enum CodecID codec_id;
65 66
66 // may be null 67 // may be null
67 int (*parse_sdp_a_line) (AVStream * stream, 68 int (*parse_sdp_a_line) (AVStream * stream,
68 void *protocol_data, 69 PayloadContext *priv_data,
69 const char *line); ///< Parse the a= line from the sdp field 70 const char *line); ///< Parse the a= line from the sdp field
70 void *(*open) (); ///< allocate any data needed by the rtp parsing for this dynamic data. 71 PayloadContext *(*open) (); ///< allocate any data needed by the rtp parsing for this dynamic data.
71 void (*close)(void *protocol_data); ///< free any data needed by the rtp parsing for this dynamic data. 72 void (*close)(PayloadContext *protocol_data); ///< free any data needed by the rtp parsing for this dynamic data.
72 DynamicPayloadPacketHandlerProc parse_packet; ///< parse handler for this dynamic packet. 73 DynamicPayloadPacketHandlerProc parse_packet; ///< parse handler for this dynamic packet.
73 74
74 struct RTPDynamicProtocolHandler_s *next; 75 struct RTPDynamicProtocolHandler_s *next;
75 } RTPDynamicProtocolHandler; 76 } RTPDynamicProtocolHandler;
76 77
111 /* special infos for au headers parsing */ 112 /* special infos for au headers parsing */
112 rtp_payload_data_t *rtp_payload_data; // TODO: Move into dynamic payload handlers 113 rtp_payload_data_t *rtp_payload_data; // TODO: Move into dynamic payload handlers
113 114
114 /* dynamic payload stuff */ 115 /* dynamic payload stuff */
115 DynamicPayloadPacketHandlerProc parse_packet; ///< This is also copied from the dynamic protocol handler structure 116 DynamicPayloadPacketHandlerProc parse_packet; ///< This is also copied from the dynamic protocol handler structure
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 PayloadContext *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; 118 int max_frames_per_packet;
118 }; 119 };
119 120
120 extern RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler; 121 extern RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler;
121 void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler); 122 void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler);