FFmpeg
Data Structures | Macros | Functions | Variables
pva.c File Reference
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "mpeg.h"

Go to the source code of this file.

Data Structures

struct  PVAContext
 

Macros

#define PVA_MAX_PAYLOAD_LENGTH   0x17f8
 
#define PVA_VIDEO_PAYLOAD   0x01
 
#define PVA_AUDIO_PAYLOAD   0x02
 
#define PVA_MAGIC   (('A' << 8) + 'V')
 
#define pva_log   if (read_packet) av_log
 

Functions

static int pva_check (const uint8_t *p)
 
static int pva_probe (const AVProbeData *pd)
 
static int pva_read_header (AVFormatContext *s)
 
static int read_part_of_packet (AVFormatContext *s, int64_t *pts, int *len, int *strid, int read_packet)
 
static int pva_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int64_t pva_read_timestamp (struct AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit)
 

Variables

const AVInputFormat ff_pva_demuxer
 

Macro Definition Documentation

◆ PVA_MAX_PAYLOAD_LENGTH

#define PVA_MAX_PAYLOAD_LENGTH   0x17f8

Definition at line 27 of file pva.c.

◆ PVA_VIDEO_PAYLOAD

#define PVA_VIDEO_PAYLOAD   0x01

Definition at line 28 of file pva.c.

◆ PVA_AUDIO_PAYLOAD

#define PVA_AUDIO_PAYLOAD   0x02

Definition at line 29 of file pva.c.

◆ PVA_MAGIC

#define PVA_MAGIC   (('A' << 8) + 'V')

Definition at line 30 of file pva.c.

◆ pva_log

#define pva_log   if (read_packet) av_log

Definition at line 81 of file pva.c.

Function Documentation

◆ pva_check()

static int pva_check ( const uint8_t *  p)
static

Definition at line 36 of file pva.c.

Referenced by pva_probe().

◆ pva_probe()

static int pva_probe ( const AVProbeData pd)
static

Definition at line 44 of file pva.c.

◆ pva_read_header()

static int pva_read_header ( AVFormatContext s)
static

Definition at line 58 of file pva.c.

◆ read_part_of_packet()

static int read_part_of_packet ( AVFormatContext s,
int64_t *  pts,
int len,
int strid,
int  read_packet 
)
static

Definition at line 83 of file pva.c.

Referenced by pva_read_packet(), and pva_read_timestamp().

◆ pva_read_packet()

static int pva_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 187 of file pva.c.

◆ pva_read_timestamp()

static int64_t pva_read_timestamp ( struct AVFormatContext s,
int  stream_index,
int64_t *  pos,
int64_t  pos_limit 
)
static

Definition at line 202 of file pva.c.

Variable Documentation

◆ ff_pva_demuxer

const AVInputFormat ff_pva_demuxer
Initial value:
= {
.name = "pva",
.long_name = NULL_IF_CONFIG_SMALL("TechnoTrend PVA"),
.priv_data_size = sizeof(PVAContext),
}

Definition at line 231 of file pva.c.

pva_probe
static int pva_probe(const AVProbeData *pd)
Definition: pva.c:44
pva_read_header
static int pva_read_header(AVFormatContext *s)
Definition: pva.c:58
pva_read_packet
static int pva_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: pva.c:187
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
PVAContext
Definition: pva.c:32
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:106
pva_read_timestamp
static int64_t pva_read_timestamp(struct AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit)
Definition: pva.c:202
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:29
read_timestamp
static int64_t read_timestamp(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit, int64_t(*read_timestamp)(struct AVFormatContext *, int, int64_t *, int64_t))
Definition: seek.c:279