FFmpeg
Data Structures | Functions | Variables
gdv.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  GDVContext
 

Functions

static int gdv_read_probe (const AVProbeData *p)
 
static int gdv_read_header (AVFormatContext *ctx)
 
static int gdv_read_packet (AVFormatContext *ctx, AVPacket *pkt)
 

Variables

struct {
   uint16_t   id
 
   uint16_t   width
 
   uint16_t   height
 
FixedSize []
 
AVInputFormat ff_gdv_demuxer
 

Function Documentation

◆ gdv_read_probe()

static int gdv_read_probe ( const AVProbeData p)
static

Definition at line 37 of file gdv.c.

◆ gdv_read_header()

static int gdv_read_header ( AVFormatContext ctx)
static

Definition at line 70 of file gdv.c.

◆ gdv_read_packet()

static int gdv_read_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 155 of file gdv.c.

Variable Documentation

◆ id

uint16_t id

Definition at line 46 of file gdv.c.

◆ width

uint16_t width

Definition at line 47 of file gdv.c.

◆ height

uint16_t height

Definition at line 48 of file gdv.c.

◆ FixedSize

struct { ... } FixedSize[]
Initial value:
= {
{ 0, 320, 200},
{ 1, 640, 200},
{ 2, 320, 167},
{ 3, 320, 180},
{ 4, 320, 400},
{ 5, 320, 170},
{ 6, 160, 85},
{ 7, 160, 83},
{ 8, 160, 90},
{ 9, 280, 128},
{10, 320, 240},
{11, 320, 201},
{16, 640, 400},
{17, 640, 200},
{18, 640, 180},
{19, 640, 167},
{20, 640, 170},
{21, 320, 240}
}

Referenced by gdv_read_header().

◆ ff_gdv_demuxer

AVInputFormat ff_gdv_demuxer
Initial value:
= {
.name = "gdv",
.long_name = NULL_IF_CONFIG_SMALL("Gremlin Digital Video"),
.priv_data_size = sizeof(GDVContext),
}

Definition at line 197 of file gdv.c.

gdv_read_probe
static int gdv_read_probe(const AVProbeData *p)
Definition: gdv.c:37
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
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:188
gdv_read_header
static int gdv_read_header(AVFormatContext *ctx)
Definition: gdv.c:70
GDVContext
Definition: gdv.c:28
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
gdv_read_packet
static int gdv_read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: gdv.c:155