FFmpeg
Data Structures | Functions | Variables
dhav.c File Reference
#include <time.h>
#include "libavutil/mem.h"
#include "libavutil/parseutils.h"
#include "avio_internal.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  DHAVContext
 
struct  DHAVStream
 

Functions

static int dhav_probe (const AVProbeData *p)
 
static int parse_ext (AVFormatContext *s, int length)
 
static int read_chunk (AVFormatContext *s)
 
static void get_timeinfo (unsigned date, struct tm *timeinfo)
 
static int64_t get_duration (AVFormatContext *s)
 
static int dhav_read_header (AVFormatContext *s)
 
static int64_t get_pts (AVFormatContext *s, int stream_index)
 
static int dhav_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int dhav_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

static const uint32_t sample_rates []
 
const FFInputFormat ff_dhav_demuxer
 

Function Documentation

◆ dhav_probe()

static int dhav_probe ( const AVProbeData p)
static

Definition at line 60 of file dhav.c.

◆ parse_ext()

static int parse_ext ( AVFormatContext s,
int  length 
)
static

Definition at line 82 of file dhav.c.

Referenced by read_chunk().

◆ read_chunk()

static int read_chunk ( AVFormatContext s)
static

Definition at line 172 of file dhav.c.

Referenced by dhav_read_packet(), get_duration(), and mpjpeg_read_packet().

◆ get_timeinfo()

static void get_timeinfo ( unsigned  date,
struct tm *  timeinfo 
)
static

Definition at line 216 of file dhav.c.

Referenced by get_duration(), and get_pts().

◆ get_duration()

static int64_t get_duration ( AVFormatContext s)
static

Definition at line 235 of file dhav.c.

Referenced by dhav_read_header().

◆ dhav_read_header()

static int dhav_read_header ( AVFormatContext s)
static

Definition at line 272 of file dhav.c.

◆ get_pts()

static int64_t get_pts ( AVFormatContext s,
int  stream_index 
)
static

Definition at line 315 of file dhav.c.

Referenced by dhav_read_packet().

◆ dhav_read_packet()

static int dhav_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 344 of file dhav.c.

◆ dhav_read_seek()

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

Definition at line 443 of file dhav.c.

Variable Documentation

◆ sample_rates

const uint32_t sample_rates[]
static
Initial value:
= {
8000, 4000, 8000, 11025, 16000,
20000, 22050, 32000, 44100, 48000,
96000, 192000, 64000,
}

Definition at line 76 of file dhav.c.

Referenced by parse_ext().

◆ ff_dhav_demuxer

const FFInputFormat ff_dhav_demuxer
Initial value:
= {
.p.name = "dhav",
.p.long_name = NULL_IF_CONFIG_SMALL("Video DAV"),
.p.extensions = "dav",
.priv_data_size = sizeof(DHAVContext),
}

Definition at line 472 of file dhav.c.

AVFMT_NO_BYTE_SEEK
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition: avformat.h:487
dhav_read_header
static int dhav_read_header(AVFormatContext *s)
Definition: dhav.c:272
dhav_probe
static int dhav_probe(const AVProbeData *p)
Definition: dhav.c:60
AVFMT_SEEK_TO_PTS
#define AVFMT_SEEK_TO_PTS
Seeking is based on PTS.
Definition: avformat.h:503
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
DHAVContext
Definition: dhav.c:32
dhav_read_seek
static int dhav_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: dhav.c:443
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:491
dhav_read_packet
static int dhav_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: dhav.c:344
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
AVFMT_TS_DISCONT
#define AVFMT_TS_DISCONT
Format allows timestamp discontinuities.
Definition: avformat.h:481