2005-12-17 20:14:38 +02:00
|
|
|
/*
|
|
|
|
* General DV muxer/demuxer
|
2006-02-08 13:43:47 +02:00
|
|
|
* Copyright (c) 2003 Roman Shaposhnik
|
2003-09-29 20:54:07 +03:00
|
|
|
*
|
|
|
|
* Many thanks to Dan Dennedy <dan@dennedy.org> for providing wealth
|
|
|
|
* of DV technical info.
|
|
|
|
*
|
|
|
|
* Raw DV format
|
|
|
|
* Copyright (c) 2002 Fabrice Bellard.
|
|
|
|
*
|
2006-10-07 18:30:46 +03:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2003-09-29 20:54:07 +03:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 18:30:46 +03:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2003-09-29 20:54:07 +03:00
|
|
|
*
|
2006-10-07 18:30:46 +03:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2003-09-29 20:54:07 +03:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2006-10-07 18:30:46 +03:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2006-01-13 00:43:26 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2003-09-29 20:54:07 +03:00
|
|
|
*/
|
|
|
|
|
2003-11-01 00:26:26 +02:00
|
|
|
typedef struct DVDemuxContext DVDemuxContext;
|
|
|
|
DVDemuxContext* dv_init_demux(AVFormatContext* s);
|
|
|
|
int dv_get_packet(DVDemuxContext*, AVPacket *);
|
|
|
|
int dv_produce_packet(DVDemuxContext*, AVPacket*, uint8_t*, int);
|
2004-10-13 03:03:00 +03:00
|
|
|
void dv_flush_audio_packets(DVDemuxContext*);
|
2003-11-01 00:26:26 +02:00
|
|
|
|
|
|
|
typedef struct DVMuxContext DVMuxContext;
|
|
|
|
DVMuxContext* dv_init_mux(AVFormatContext* s);
|
|
|
|
int dv_assemble_frame(DVMuxContext *c, AVStream*, const uint8_t*, int, uint8_t**);
|
|
|
|
void dv_delete_mux(DVMuxContext*);
|