#include <time.h>#include "avformat.h"#include "internal.h"#include "libavcodec/dvdata.h"#include "libavutil/intreadwrite.h"#include "libavutil/mathematics.h"#include "dv.h"Go to the source code of this file.
Data Structures | |
| struct | DVDemuxContext |
| struct | RawDVContext |
Typedefs | |
| typedef struct RawDVContext | RawDVContext |
Functions | |
| static uint16_t | dv_audio_12to16 (uint16_t sample) |
| static const uint8_t * | dv_extract_pack (uint8_t *frame, enum dv_pack_type t) |
| static int | dv_extract_audio (uint8_t *frame, uint8_t *ppcm[4], const DVprofile *sys) |
| static int | dv_extract_audio_info (DVDemuxContext *c, uint8_t *frame) |
| static int | dv_extract_video_info (DVDemuxContext *c, uint8_t *frame) |
| 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) |
| static int64_t | dv_frame_offset (AVFormatContext *s, DVDemuxContext *c, int64_t timestamp, int flags) |
| void | dv_offset_reset (DVDemuxContext *c, int64_t frame_offset) |
| static int | dv_read_header (AVFormatContext *s, AVFormatParameters *ap) |
| 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 | |
| AVInputFormat | ff_dv_demuxer |
| typedef struct RawDVContext RawDVContext |
| int avpriv_dv_get_packet | ( | DVDemuxContext * | c, | |
| AVPacket * | pkt | |||
| ) |
Definition at line 317 of file dv.c.
Referenced by avi_read_packet(), dv1394_read_packet(), dv_read_packet(), and mov_read_packet().
| DVDemuxContext* avpriv_dv_init_demux | ( | AVFormatContext * | s | ) |
Definition at line 288 of file dv.c.
Referenced by avi_read_header(), dv1394_read_header(), dv_read_header(), and ff_mov_read_stsd_entries().
| int avpriv_dv_produce_packet | ( | DVDemuxContext * | c, | |
| AVPacket * | pkt, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
Definition at line 334 of file dv.c.
Referenced by dv1394_read_packet(), dv_read_packet(), and mov_read_packet().
| static uint16_t dv_audio_12to16 | ( | uint16_t | sample | ) | [inline, static] |
Definition at line 51 of file dv.c.
Referenced by dv_extract_audio().
| static int dv_extract_audio | ( | uint8_t * | frame, | |
| uint8_t * | ppcm[4], | |||
| const DVprofile * | sys | |||
| ) | [static] |
Definition at line 105 of file dv.c.
Referenced by avpriv_dv_produce_packet().
| static int dv_extract_audio_info | ( | DVDemuxContext * | c, | |
| uint8_t * | frame | |||
| ) | [static] |
Definition at line 193 of file dv.c.
Referenced by avpriv_dv_produce_packet().
| static const uint8_t* dv_extract_pack | ( | uint8_t * | frame, | |
| enum dv_pack_type | t | |||
| ) | [static] |
Definition at line 76 of file dv.c.
Referenced by dv_extract_audio(), dv_extract_audio_info(), and dv_extract_video_info().
| static int dv_extract_video_info | ( | DVDemuxContext * | c, | |
| uint8_t * | frame | |||
| ) | [static] |
Definition at line 252 of file dv.c.
Referenced by avpriv_dv_produce_packet().
| static int64_t dv_frame_offset | ( | AVFormatContext * | s, | |
| DVDemuxContext * | c, | |||
| int64_t | timestamp, | |||
| int | flags | |||
| ) | [static] |
Definition at line 384 of file dv.c.
Referenced by dv_read_seek().
| void dv_offset_reset | ( | DVDemuxContext * | c, | |
| int64_t | frame_offset | |||
| ) |
Definition at line 401 of file dv.c.
Referenced by avi_read_seek(), and dv_read_seek().
| static int dv_probe | ( | AVProbeData * | p | ) | [static] |
| static int dv_read_close | ( | AVFormatContext * | s | ) | [static] |
| static int dv_read_header | ( | AVFormatContext * | s, | |
| AVFormatParameters * | ap | |||
| ) | [static] |
| static int dv_read_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
| static int dv_read_seek | ( | AVFormatContext * | s, | |
| int | stream_index, | |||
| int64_t | timestamp, | |||
| int | flags | |||
| ) | [static] |
{
.name = "dv",
.long_name = NULL_IF_CONFIG_SMALL("DV video format"),
.priv_data_size = sizeof(RawDVContext),
.read_probe = dv_probe,
.read_header = dv_read_header,
.read_packet = dv_read_packet,
.read_close = dv_read_close,
.read_seek = dv_read_seek,
.extensions = "dv,dif",
}