FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pva.c File Reference
#include "avformat.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 (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

AVInputFormat ff_pva_demuxer
 

Macro Definition Documentation

#define PVA_MAX_PAYLOAD_LENGTH   0x17f8

Definition at line 26 of file pva.c.

Referenced by pva_check(), pva_read_timestamp(), and read_part_of_packet().

#define PVA_VIDEO_PAYLOAD   0x01

Definition at line 27 of file pva.c.

Referenced by read_part_of_packet().

#define PVA_AUDIO_PAYLOAD   0x02

Definition at line 28 of file pva.c.

Referenced by read_part_of_packet().

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

Definition at line 29 of file pva.c.

Referenced by pva_check(), and read_part_of_packet().

#define pva_log   if (read_packet) av_log

Definition at line 80 of file pva.c.

Referenced by read_part_of_packet().

Function Documentation

static int pva_check ( const uint8_t p)
static

Definition at line 35 of file pva.c.

Referenced by pva_probe().

static int pva_probe ( AVProbeData pd)
static

Definition at line 43 of file pva.c.

static int pva_read_header ( AVFormatContext s)
static

Definition at line 57 of file pva.c.

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

Definition at line 82 of file pva.c.

Referenced by pva_read_packet(), and pva_read_timestamp().

static int pva_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 182 of file pva.c.

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

Definition at line 197 of file pva.c.

Variable Documentation

AVInputFormat ff_pva_demuxer
Initial value:
= {
.name = "pva",
.long_name = NULL_IF_CONFIG_SMALL("TechnoTrend PVA"),
.priv_data_size = sizeof(PVAContext),
.read_timestamp = pva_read_timestamp,
}
static int pva_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: pva.c:182
static int pva_read_header(AVFormatContext *s)
Definition: pva.c:57
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
Definition: pva.c:31
static int64_t pva_read_timestamp(struct AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit)
Definition: pva.c:197
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:514
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int pva_probe(AVProbeData *pd)
Definition: pva.c:43

Definition at line 226 of file pva.c.