FFmpeg
Data Structures | Functions | Variables
gdv.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio.h"
#include "demux.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 []
 
const FFInputFormat ff_gdv_demuxer
 

Function Documentation

◆ gdv_read_probe()

static int gdv_read_probe ( const AVProbeData p)
static

Definition at line 38 of file gdv.c.

◆ gdv_read_header()

static int gdv_read_header ( AVFormatContext ctx)
static

Definition at line 71 of file gdv.c.

◆ gdv_read_packet()

static int gdv_read_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 157 of file gdv.c.

Variable Documentation

◆ id

uint16_t id

Definition at line 47 of file gdv.c.

◆ width

uint16_t width

Definition at line 48 of file gdv.c.

◆ height

uint16_t height

Definition at line 49 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

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

Definition at line 198 of file gdv.c.

read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
gdv_read_probe
static int gdv_read_probe(const AVProbeData *p)
Definition: gdv.c:38
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
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
gdv_read_header
static int gdv_read_header(AVFormatContext *ctx)
Definition: gdv.c:71
GDVContext
Definition: gdv.c:29
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
gdv_read_packet
static int gdv_read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: gdv.c:157