comparison rm.h @ 2889:60275d3b2e42 libavformat

Make three rm demuxer functions non static. Patch by Ronald S. Bultje rsbultje gmail com Original thread: [FFmpeg-devel] [PATCH] Realmedia / RTSP (RDT) Date: 12/28/2007 10:19 PM
author benoit
date Fri, 04 Jan 2008 13:00:47 +0000
parents 7671acabd99c
children bf39ed8d3d69
comparison
equal deleted inserted replaced
2888:fa2156303c3f 2889:60275d3b2e42
61 int audio_pkt_cnt; ///< Output packet counter 61 int audio_pkt_cnt; ///< Output packet counter
62 int audio_framesize; /// Audio frame size from container 62 int audio_framesize; /// Audio frame size from container
63 int sub_packet_lengths[16]; /// Length of each aac subpacket 63 int sub_packet_lengths[16]; /// Length of each aac subpacket
64 } RMContext; 64 } RMContext;
65 65
66 /**
67 * Read the MDPR chunk, which contains stream-specific codec initialization
68 * parameters.
69 *
70 * @param s context containing RMContext and ByteIOContext for stream reading
71 * @param st the stream that the MDPR chunk belongs to and where to store the
72 * parameters read from the chunk into
73 * @return 0 on success, errno codes on error
74 */
75 int ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVStream *st);
76
77 /**
78 * Parse one rm-stream packet from the input bytestream.
79 *
80 * @param s context containing RMContext and ByteIOContext for stream reading
81 * @param st stream to which the packet to be read belongs
82 * @param len packet length to read from the input
83 * @param pkt packet location to store the parsed packet data
84 * @param seq pointer to an integer containing the sequence number, may be
85 * updated
86 * @param flags pointer to an integer containing the packet flags, may be
87 updated
88 * @param ts pointer to timestamp, may be updated
89 * @return 0 on success, errno codes on error
90 */
91 int ff_rm_parse_packet (AVFormatContext *s, AVStream *st, int len,
92 AVPacket *pkt, int *seq, int *flags, int64_t *ts);
93
94 /**
95 * Retrieve one cached packet from the rm-context. The real container can
96 * store several packets (as interpreted by the codec) in a single container
97 * packet, which means the demuxer holds some back when the first container
98 * packet is parsed and returned. The result is that rm->audio_pkt_cnt is
99 * a positive number, the amount of cached packets. Using this function, each
100 * of those packets can be retrieved sequentially.
101 *
102 * @param s context containing RMContext and ByteIOContext for stream reading
103 * @param st stream that this packet belongs to
104 * @param pkt location to store the packet data
105 */
106 void ff_rm_retrieve_cache (AVFormatContext *s, AVStream *st, AVPacket *pkt);
107
66 #endif /* FFMPEG_RM_H */ 108 #endif /* FFMPEG_RM_H */