Revision 965a3ddb

View differences:

libavformat/rtpdec.c
30 30
#include "network.h"
31 31

  
32 32
#include "rtpdec.h"
33
#include "rtpdec_amr.h"
34
#include "rtpdec_asf.h"
35
#include "rtpdec_h263.h"
36
#include "rtpdec_h264.h"
37
#include "rtpdec_mpeg4.h"
38
#include "rtpdec_qdm2.h"
39
#include "rtpdec_svq3.h"
40
#include "rtpdec_xiph.h"
33
#include "rtpdec_formats.h"
41 34

  
42 35
//#define DEBUG
43 36

  
libavformat/rtpdec_amr.c
20 20
 */
21 21

  
22 22
#include "avformat.h"
23
#include "rtpdec_amr.h"
23
#include "rtpdec_formats.h"
24 24
#include "libavutil/avstring.h"
25 25

  
26 26
static const uint8_t frame_sizes_nb[16] = {
libavformat/rtpdec_amr.h
1
/*
2
 * RTP AMR Depacketizer, RFC 3267
3
 * Copyright (c) 2010 Martin Storsjo
4
 *
5
 * This file is part of FFmpeg.
6
 *
7
 * FFmpeg is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 */
21

  
22
#ifndef AVFORMAT_RTPDEC_AMR_H
23
#define AVFORMAT_RTPDEC_AMR_H
24

  
25
#include "rtpdec.h"
26

  
27
extern RTPDynamicProtocolHandler ff_amr_nb_dynamic_handler;
28
extern RTPDynamicProtocolHandler ff_amr_wb_dynamic_handler;
29

  
30
#endif /* AVFORMAT_RTPDEC_AMR_H */
libavformat/rtpdec_asf.c
29 29
#include "libavutil/avstring.h"
30 30
#include "libavutil/intreadwrite.h"
31 31
#include "rtp.h"
32
#include "rtpdec_asf.h"
32
#include "rtpdec_formats.h"
33 33
#include "rtsp.h"
34 34
#include "asf.h"
35 35

  
libavformat/rtpdec_asf.h
1
/*
2
 * Microsoft RTP/ASF support.
3
 * Copyright (c) 2008 Ronald S. Bultje
4
 *
5
 * This file is part of FFmpeg.
6
 *
7
 * FFmpeg is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 */
21

  
22
#ifndef AVFORMAT_RTPDEC_ASF_H
23
#define AVFORMAT_RTPDEC_ASF_H
24

  
25
#include "avformat.h"
26
#include "rtpdec.h"
27

  
28
/**
29
 * Parse a Windows Media Server-specific SDP line
30
 *
31
 * @param s RTSP demux context
32
 */
33
int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p);
34

  
35
/**
36
 * Handlers for the x-asf-pf payloads (the payload ID for RTP/ASF).
37
 * Defined and implemented in rtp_asf.c, registered in rtpdec.c.
38
 */
39
extern RTPDynamicProtocolHandler ff_ms_rtp_asf_pfv_handler,
40
                                 ff_ms_rtp_asf_pfa_handler;
41

  
42
#endif /* AVFORMAT_RTPDEC_ASF_H */
libavformat/rtpdec_formats.h
1
/*
2
 * RTP depacketizer declarations
3
 * Copyright (c) 2010 Martin Storsjo
4
 *
5
 * This file is part of FFmpeg.
6
 *
7
 * FFmpeg is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 */
21

  
22
#ifndef AVFORMAT_RTPDEC_FORMATS_H
23
#define AVFORMAT_RTPDEC_FORMATS_H
24

  
25
#include "rtpdec.h"
26

  
27
/**
28
 * Parse a Windows Media Server-specific SDP line
29
 *
30
 * @param s RTSP demux context
31
 */
32
int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p);
33

  
34
extern RTPDynamicProtocolHandler ff_amr_nb_dynamic_handler;
35
extern RTPDynamicProtocolHandler ff_amr_wb_dynamic_handler;
36
extern RTPDynamicProtocolHandler ff_h263_1998_dynamic_handler;
37
extern RTPDynamicProtocolHandler ff_h263_2000_dynamic_handler;
38
extern RTPDynamicProtocolHandler ff_h264_dynamic_handler;
39
extern RTPDynamicProtocolHandler ff_mp4v_es_dynamic_handler;
40
extern RTPDynamicProtocolHandler ff_mpeg4_generic_dynamic_handler;
41
extern RTPDynamicProtocolHandler ff_ms_rtp_asf_pfa_handler;
42
extern RTPDynamicProtocolHandler ff_ms_rtp_asf_pfv_handler;
43
extern RTPDynamicProtocolHandler ff_qdm2_dynamic_handler;
44
extern RTPDynamicProtocolHandler ff_svq3_dynamic_handler;
45
extern RTPDynamicProtocolHandler ff_theora_dynamic_handler;
46
extern RTPDynamicProtocolHandler ff_vorbis_dynamic_handler;
47

  
48
#endif /* AVFORMAT_RTPDEC_FORMATS_H */
libavformat/rtpdec_h263.c
20 20
 */
21 21

  
22 22
#include "avformat.h"
23
#include "rtpdec_h263.h"
23
#include "rtpdec_formats.h"
24 24
#include "libavutil/intreadwrite.h"
25 25

  
26 26
static int h263_handle_packet(AVFormatContext *ctx,
libavformat/rtpdec_h263.h
1
/*
2
 * RTP H.263 Depacketizer, RFC 4629
3
 * Copyright (c) 2010 Martin Storsjo
4
 *
5
 * This file is part of FFmpeg.
6
 *
7
 * FFmpeg is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 */
21

  
22
#ifndef AVFORMAT_RTPDEC_H263_H
23
#define AVFORMAT_RTPDEC_H263_H
24

  
25
#include "rtpdec.h"
26

  
27
extern RTPDynamicProtocolHandler ff_h263_1998_dynamic_handler;
28
extern RTPDynamicProtocolHandler ff_h263_2000_dynamic_handler;
29

  
30
#endif /* AVFORMAT_RTPDEC_H263_H */
libavformat/rtpdec_h264.c
47 47
#include <assert.h>
48 48

  
49 49
#include "rtpdec.h"
50
#include "rtpdec_h264.h"
50
#include "rtpdec_formats.h"
51 51

  
52 52
/**
53 53
    RTP/H264 specific private data.
libavformat/rtpdec_h264.h
1
/*
2
 * RTP H264 Protocol (RFC3984)
3
 * Copyright (c) 2006 Ryan Martell
4
 *
5
 * This file is part of FFmpeg.
6
 *
7
 * FFmpeg is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 */
21

  
22
#ifndef AVFORMAT_RTPDEC_H264_H
23
#define AVFORMAT_RTPDEC_H264_H
24

  
25
#include "rtpdec.h"
26

  
27
extern RTPDynamicProtocolHandler ff_h264_dynamic_handler;
28

  
29
#endif /* AVFORMAT_RTPDEC_H264_H */
libavformat/rtpdec_mpeg4.c
27 27
 * @author Romain Degez
28 28
 */
29 29

  
30
#include "rtpdec_mpeg4.h"
30
#include "rtpdec_formats.h"
31 31
#include "internal.h"
32 32
#include "libavutil/avstring.h"
33 33
#include "libavcodec/get_bits.h"
libavformat/rtpdec_mpeg4.h
1
/**
2
 * Common code for the RTP depacketization of MPEG-4 formats.
3
 * Copyright (c) 2010 Fabrice Bellard
4
 *                    Romain Degez
5
 *
6
 * This file is part of FFmpeg.
7
 *
8
 * FFmpeg is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU Lesser General Public
10
 * License as published by the Free Software Foundation; either
11
 * version 2.1 of the License, or (at your option) any later version.
12
 *
13
 * FFmpeg is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 * Lesser General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU Lesser General Public
19
 * License along with FFmpeg; if not, write to the Free Software
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
 */
22

  
23
#ifndef AVFORMAT_RTPDEC_MPEG4_H
24
#define AVFORMAT_RTPDEC_MPEG4_H
25

  
26
#include "rtpdec.h"
27

  
28
/**
29
 * MPEG-4 Video RTP callbacks. (RFC 3016)
30
 */
31
extern RTPDynamicProtocolHandler ff_mp4v_es_dynamic_handler;
32

  
33
/**
34
 * AAC RTP callbacks. (RFC 3640)
35
 */
36
extern RTPDynamicProtocolHandler ff_mpeg4_generic_dynamic_handler;
37

  
38
#endif /* AVFORMAT_RTPDEC_MPEG4_H */
39

  
libavformat/rtpdec_qdm2.c
30 30
#include "libavcodec/avcodec.h"
31 31
#include "rtp.h"
32 32
#include "rtpdec.h"
33
#include "rtpdec_qdm2.h"
33
#include "rtpdec_formats.h"
34 34

  
35 35
struct PayloadContext {
36 36
    /** values read from the config header, used as packet headers */
libavformat/rtpdec_qdm2.h
1
/*
2
 * QDesign Music 2 (QDM2) payload for RTP
3
 * Copyright (c) 2010 Ronald S. Bultje
4
 *
5
 * This file is part of FFmpeg.
6
 *
7
 * FFmpeg is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 */
21

  
22
#ifndef AVFORMAT_RTPDEC_QDM2_H
23
#define AVFORMAT_RTPDEC_QDM2_H
24

  
25
#include "rtpdec.h"
26

  
27
/**
28
 * QMD2 RTP callbacks.
29
 */
30
extern RTPDynamicProtocolHandler ff_qdm2_dynamic_handler;
31

  
32
#endif /* AVFORMAT_RTPDEC_QDM2_H */
libavformat/rtpdec_svq3.c
30 30
#include "libavutil/intreadwrite.h"
31 31
#include "rtp.h"
32 32
#include "rtpdec.h"
33
#include "rtpdec_svq3.h"
33
#include "rtpdec_formats.h"
34 34

  
35 35
struct PayloadContext {
36 36
    ByteIOContext *pktbuf;
libavformat/rtpdec_svq3.h
1
/*
2
 * Sorenson-3 (SVQ3/SV3V) payload for RTP
3
 * Copyright (c) 2010 Ronald S. Bultje
4
 *
5
 * This file is part of FFmpeg.
6
 *
7
 * FFmpeg is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 */
21

  
22
#ifndef AVFORMAT_RTPDEC_SVQ3_H
23
#define AVFORMAT_RTPDEC_SVQ3_H
24

  
25
#include "libavcodec/avcodec.h"
26
#include "rtpdec.h"
27

  
28
/**
29
 * Sorenson-3 RTP callbacks.
30
 */
31
extern RTPDynamicProtocolHandler ff_svq3_dynamic_handler;
32

  
33
#endif /* AVFORMAT_RTPDEC_SVQ3_H */
libavformat/rtpdec_xiph.c
34 34
#include <assert.h>
35 35

  
36 36
#include "rtpdec.h"
37
#include "rtpdec_xiph.h"
37
#include "rtpdec_formats.h"
38 38

  
39 39
/**
40 40
 * RTP/Xiph specific private data.
libavformat/rtpdec_xiph.h
1
/*
2
 * Xiph RTP Protocols
3
 * Based off RFC 5215 (Vorbis RTP) and the Theora RTP draft.
4
 * Copyright (c) 2009 Colin McQuillian
5
 * Copyright (c) 2010 Josh Allmann
6
 *
7
 * This file is part of FFmpeg.
8
 *
9
 * FFmpeg is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU Lesser General Public
11
 * License as published by the Free Software Foundation; either
12
 * version 2.1 of the License, or (at your option) any later version.
13
 *
14
 * FFmpeg is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 * Lesser General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU Lesser General Public
20
 * License along with FFmpeg; if not, write to the Free Software
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
 */
23

  
24
#ifndef AVFORMAT_RTPDEC_XIPH_H
25
#define AVFORMAT_RTPDEC_XIPH_H
26

  
27
#include "libavcodec/avcodec.h"
28
#include "rtpdec.h"
29

  
30
/**
31
 * Theora RTP callbacks.
32
 */
33
extern RTPDynamicProtocolHandler ff_theora_dynamic_handler;
34

  
35
/**
36
 * Vorbis RTP callbacks.
37
 */
38
extern RTPDynamicProtocolHandler ff_vorbis_dynamic_handler;
39

  
40
#endif /* AVFORMAT_RTPDEC_XIPH_H */
libavformat/rtsp.c
38 38

  
39 39
#include "rtpdec.h"
40 40
#include "rdt.h"
41
#include "rtpdec_asf.h"
41
#include "rtpdec_formats.h"
42 42

  
43 43
//#define DEBUG
44 44
//#define DEBUG_RTP_TCP

Also available in: Unified diff