FFmpeg
Data Structures | Macros | Functions | Variables
pdvdec.c File Reference
#include "libavutil/mem.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  PDVDemuxContext
 

Macros

#define PDV_MAGIC   "Playdate VID\x00\x00\x00\x00"
 

Functions

static int pdv_probe (const AVProbeData *pd)
 
static int pdv_read_header (AVFormatContext *s)
 
static int pdv_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int pdv_read_close (AVFormatContext *s)
 
static int pdv_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

const FFInputFormat ff_pdv_demuxer
 

Macro Definition Documentation

◆ PDV_MAGIC

#define PDV_MAGIC   "Playdate VID\x00\x00\x00\x00"

Definition at line 27 of file pdvdec.c.

Function Documentation

◆ pdv_probe()

static int pdv_probe ( const AVProbeData pd)
static

Definition at line 35 of file pdvdec.c.

◆ pdv_read_header()

static int pdv_read_header ( AVFormatContext s)
static

Definition at line 42 of file pdvdec.c.

◆ pdv_read_packet()

static int pdv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 101 of file pdvdec.c.

◆ pdv_read_close()

static int pdv_read_close ( AVFormatContext s)
static

Definition at line 137 of file pdvdec.c.

◆ pdv_read_seek()

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

Definition at line 147 of file pdvdec.c.

Variable Documentation

◆ ff_pdv_demuxer

const FFInputFormat ff_pdv_demuxer
Initial value:
= {
.p.name = "pdv",
.p.long_name = NULL_IF_CONFIG_SMALL("PlayDate Video"),
.p.extensions = "pdv",
.priv_data_size = sizeof(PDVDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}

Definition at line 164 of file pdvdec.c.

pdv_read_header
static int pdv_read_header(AVFormatContext *s)
Definition: pdvdec.c:42
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:143
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
pdv_read_close
static int pdv_read_close(AVFormatContext *s)
Definition: pdvdec.c:137
FF_INFMT_FLAG_INIT_CLEANUP
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: demux.h:35
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
pdv_probe
static int pdv_probe(const AVProbeData *pd)
Definition: pdvdec.c:35
pdv_read_seek
static int pdv_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: pdvdec.c:147
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
pdv_read_packet
static int pdv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: pdvdec.c:101
PDVDemuxContext
Definition: pdvdec.c:29