annotate dv.h @ 3902:5f9bec099c69 libavformat

Add dynamic payload handlers to rdt.c. These follow the same API as the ones in rtpdec.c, so that they can be shared and used in the same way in rtsp.c. The handlers, since they are specific for RDT, are registered in rdt.c and a new registration function is thus called from allformats.c. The dynamic payload handler also implements RDT-specific SDP-line parsing for OpaqueData and StartTime, which are specific for RDT and needed for proper playback. OpaqueData contains one or a list ("MLTI") of "MDPR" chunks that can be parsed by the rmdec.c function ff_rm_read_mdpr_codecdata(). To use this function, we create a new rdt_demuxer, which has the same private data as the rm_demuxer. The resulting AVFormatContext created with _open_stream() can thus be used to call functions in the RM demuxer. See discussion in "Realmedia patch" thread on ML.
author rbultje
date Sun, 07 Sep 2008 01:21:24 +0000
parents 1b6245500d8c
children d9dede8fe890
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
885
da1d5db0ce5c COSMETICS: Remove all trailing whitespace.
diego
parents: 562
diff changeset
1 /*
da1d5db0ce5c COSMETICS: Remove all trailing whitespace.
diego
parents: 562
diff changeset
2 * General DV muxer/demuxer
933
diego
parents: 896
diff changeset
3 * Copyright (c) 2003 Roman Shaposhnik
262
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
4 *
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
5 * Many thanks to Dan Dennedy <dan@dennedy.org> for providing wealth
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
6 * of DV technical info.
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
7 *
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
8 * Raw DV format
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
9 * Copyright (c) 2002 Fabrice Bellard.
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
10 *
1358
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 933
diff changeset
11 * This file is part of FFmpeg.
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 933
diff changeset
12 *
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 933
diff changeset
13 * FFmpeg is free software; you can redistribute it and/or
262
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
14 * modify it under the terms of the GNU Lesser General Public
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
15 * License as published by the Free Software Foundation; either
1358
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 933
diff changeset
16 * version 2.1 of the License, or (at your option) any later version.
262
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
17 *
1358
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 933
diff changeset
18 * FFmpeg is distributed in the hope that it will be useful,
262
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
21 * Lesser General Public License for more details.
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
22 *
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
23 * You should have received a copy of the GNU Lesser General Public
1358
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 933
diff changeset
24 * License along with FFmpeg; if not, write to the Free Software
896
edbe5c3717f9 Update licensing information: The FSF changed postal address.
diego
parents: 885
diff changeset
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
262
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
26 */
f174d9c00bce * DV handling was streamlined for both muxing/demuxing and
romansh
parents:
diff changeset
27
3852
1b6245500d8c Globally rename the header inclusion guard names.
stefano
parents: 2620
diff changeset
28 #ifndef AVFORMAT_DV_H
1b6245500d8c Globally rename the header inclusion guard names.
stefano
parents: 2620
diff changeset
29 #define AVFORMAT_DV_H
2172
92f61ed53965 add multiple inclusion guards to headers
mru
parents: 2171
diff changeset
30
2171
a6d6b2b19341 include all prerequisites in header files
mru
parents: 1629
diff changeset
31 #include "avformat.h"
a6d6b2b19341 include all prerequisites in header files
mru
parents: 1629
diff changeset
32
296
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
33 typedef struct DVDemuxContext DVDemuxContext;
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
34 DVDemuxContext* dv_init_demux(AVFormatContext* s);
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
35 int dv_get_packet(DVDemuxContext*, AVPacket *);
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
36 int dv_produce_packet(DVDemuxContext*, AVPacket*, uint8_t*, int);
1629
aedce96c28ff * Fixing seeking with DV-AVI (by Jeff Downs <heydowns at borg dot com>)
romansh
parents: 1358
diff changeset
37 void dv_offset_reset(DVDemuxContext *c, int64_t frame_offset);
296
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
38
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
39 typedef struct DVMuxContext DVMuxContext;
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
40 DVMuxContext* dv_init_mux(AVFormatContext* s);
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
41 int dv_assemble_frame(DVMuxContext *c, AVStream*, const uint8_t*, int, uint8_t**);
252946de6d3f * DV demuxer is now capable of decoding auxilary audio stream. So,
romansh
parents: 262
diff changeset
42 void dv_delete_mux(DVMuxContext*);
2172
92f61ed53965 add multiple inclusion guards to headers
mru
parents: 2171
diff changeset
43
3852
1b6245500d8c Globally rename the header inclusion guard names.
stefano
parents: 2620
diff changeset
44 #endif /* AVFORMAT_DV_H */