FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
dv.c File Reference
#include <time.h>
#include "avformat.h"
#include "internal.h"
#include "libavcodec/dv_profile.h"
#include "libavcodec/dv.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/timecode.h"
#include "dv.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Data Structures

struct  DVDemuxContext
 
struct  RawDVContext
 

Functions

static uint16_t dv_audio_12to16 (uint16_t sample)
 
static const uint8_tdv_extract_pack (const uint8_t *frame, enum dv_pack_type t)
 
static int dv_extract_audio (const uint8_t *frame, uint8_t **ppcm, const AVDVProfile *sys)
 
static int dv_extract_audio_info (DVDemuxContext *c, const uint8_t *frame)
 
static int dv_extract_video_info (DVDemuxContext *c, const uint8_t *frame)
 
static int dv_extract_timecode (DVDemuxContext *c, const uint8_t *frame, char *tc)
 
DVDemuxContextavpriv_dv_init_demux (AVFormatContext *s)
 
int avpriv_dv_get_packet (DVDemuxContext *c, AVPacket *pkt)
 
int avpriv_dv_produce_packet (DVDemuxContext *c, AVPacket *pkt, uint8_t *buf, int buf_size, int64_t pos)
 
static int64_t dv_frame_offset (AVFormatContext *s, DVDemuxContext *c, int64_t timestamp, int flags)
 
void ff_dv_offset_reset (DVDemuxContext *c, int64_t frame_offset)
 
static int dv_read_timecode (AVFormatContext *s)
 
static int dv_read_header (AVFormatContext *s)
 
static int dv_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int dv_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 
static int dv_read_close (AVFormatContext *s)
 
static int dv_probe (AVProbeData *p)
 

Variables

static const int dv_audio_frequency [3]
 
AVInputFormat ff_dv_demuxer
 

Function Documentation

static uint16_t dv_audio_12to16 ( uint16_t  sample)
inlinestatic

Definition at line 55 of file dv.c.

Referenced by dv_extract_audio().

static const uint8_t* dv_extract_pack ( const uint8_t frame,
enum dv_pack_type  t 
)
static
static int dv_extract_audio ( const uint8_t frame,
uint8_t **  ppcm,
const AVDVProfile sys 
)
static

Definition at line 119 of file dv.c.

Referenced by avpriv_dv_produce_packet().

static int dv_extract_audio_info ( DVDemuxContext c,
const uint8_t frame 
)
static

Definition at line 222 of file dv.c.

Referenced by avpriv_dv_produce_packet().

static int dv_extract_video_info ( DVDemuxContext c,
const uint8_t frame 
)
static

Definition at line 282 of file dv.c.

Referenced by avpriv_dv_produce_packet().

static int dv_extract_timecode ( DVDemuxContext c,
const uint8_t frame,
char *  tc 
)
static

Definition at line 310 of file dv.c.

Referenced by dv_read_timecode().

DVDemuxContext* avpriv_dv_init_demux ( AVFormatContext s)
int avpriv_dv_get_packet ( DVDemuxContext c,
AVPacket pkt 
)
int avpriv_dv_produce_packet ( DVDemuxContext c,
AVPacket pkt,
uint8_t buf,
int  buf_size,
int64_t  pos 
)

Definition at line 368 of file dv.c.

Referenced by dv1394_read_packet(), dv_read_packet(), iec61883_parse_queue_dv(), and mov_read_packet().

static int64_t dv_frame_offset ( AVFormatContext s,
DVDemuxContext c,
int64_t  timestamp,
int  flags 
)
static

Definition at line 421 of file dv.c.

Referenced by dv_read_seek().

void ff_dv_offset_reset ( DVDemuxContext c,
int64_t  frame_offset 
)

Definition at line 441 of file dv.c.

Referenced by avi_read_seek(), and dv_read_seek().

static int dv_read_timecode ( AVFormatContext s)
static

Definition at line 464 of file dv.c.

static int dv_read_header ( AVFormatContext s)
static

Definition at line 499 of file dv.c.

static int dv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 548 of file dv.c.

static int dv_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 569 of file dv.c.

static int dv_read_close ( AVFormatContext s)
static

Definition at line 583 of file dv.c.

static int dv_probe ( AVProbeData p)
static

Definition at line 590 of file dv.c.

Variable Documentation

const int dv_audio_frequency[3]
static
Initial value:
= {
48000, 44100, 32000,
}

Definition at line 107 of file dv.c.

Referenced by dv_extract_audio(), and dv_extract_audio_info().

AVInputFormat ff_dv_demuxer
Initial value:
= {
.name = "dv",
.long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"),
.priv_data_size = sizeof(RawDVContext),
.extensions = "dv,dif",
}

Definition at line 632 of file dv.c.