FFmpeg
Loading...
Searching...
No Matches
dhav.c File Reference
#include <time.h>
#include "libavutil/intreadwrite.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
 

Macros

#define MAX_DURATION_BUFFER_SIZE   (1024*1024)
 

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
 

Macro Definition Documentation

◆ MAX_DURATION_BUFFER_SIZE

#define MAX_DURATION_BUFFER_SIZE   (1024*1024)

Definition at line 236 of file dhav.c.

Referenced by get_duration().

Function Documentation

◆ dhav_probe()

static int dhav_probe ( const AVProbeData * p)
static

Definition at line 61 of file dhav.c.

◆ parse_ext()

static int parse_ext ( AVFormatContext * s,
int length )
static

Definition at line 83 of file dhav.c.

Referenced by read_chunk().

◆ read_chunk()

static int read_chunk ( AVFormatContext * s)
static

Definition at line 173 of file dhav.c.

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

◆ get_timeinfo()

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

Definition at line 217 of file dhav.c.

Referenced by get_duration(), and get_pts().

◆ get_duration()

static int64_t get_duration ( AVFormatContext * s)
static

Definition at line 238 of file dhav.c.

◆ dhav_read_header()

static int dhav_read_header ( AVFormatContext * s)
static

Definition at line 296 of file dhav.c.

◆ get_pts()

static int64_t get_pts ( AVFormatContext * s,
int stream_index )
static

Definition at line 341 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 370 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 469 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 77 of file dhav.c.

◆ 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),
}
#define AVFMT_TS_DISCONT
Format allows timestamp discontinuities.
Definition avformat.h:500
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition avformat.h:506
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition avformat.h:507
#define AVFMT_SEEK_TO_PTS
Seeking is based on PTS.
Definition avformat.h:520
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int dhav_probe(const AVProbeData *p)
Definition dhav.c:61
static int dhav_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition dhav.c:370
static int dhav_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition dhav.c:469
static int dhav_read_header(AVFormatContext *s)
Definition dhav.c:296
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151

Definition at line 497 of file dhav.c.