FFmpeg
Macros | Functions | Variables
txd.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define TXD_FILE   0x16
 
#define TXD_INFO   0x01
 
#define TXD_EXTRA   0x03
 
#define TXD_TEXTURE   0x15
 
#define TXD_TEXTURE_DATA   0x01
 
#define TXD_MARKER   0x1803ffff
 
#define TXD_MARKER2   0x1003ffff
 

Functions

static int txd_probe (const AVProbeData *pd)
 
static int txd_read_header (AVFormatContext *s)
 
static int txd_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const AVInputFormat ff_txd_demuxer
 

Macro Definition Documentation

◆ TXD_FILE

#define TXD_FILE   0x16

Definition at line 26 of file txd.c.

◆ TXD_INFO

#define TXD_INFO   0x01

Definition at line 27 of file txd.c.

◆ TXD_EXTRA

#define TXD_EXTRA   0x03

Definition at line 28 of file txd.c.

◆ TXD_TEXTURE

#define TXD_TEXTURE   0x15

Definition at line 29 of file txd.c.

◆ TXD_TEXTURE_DATA

#define TXD_TEXTURE_DATA   0x01

Definition at line 30 of file txd.c.

◆ TXD_MARKER

#define TXD_MARKER   0x1803ffff

Definition at line 31 of file txd.c.

◆ TXD_MARKER2

#define TXD_MARKER2   0x1003ffff

Definition at line 32 of file txd.c.

Function Documentation

◆ txd_probe()

static int txd_probe ( const AVProbeData pd)
static

Definition at line 34 of file txd.c.

◆ txd_read_header()

static int txd_read_header ( AVFormatContext s)
static

Definition at line 41 of file txd.c.

◆ txd_read_packet()

static int txd_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 56 of file txd.c.

Variable Documentation

◆ ff_txd_demuxer

const AVInputFormat ff_txd_demuxer
Initial value:
= {
.name = "txd",
.long_name = NULL_IF_CONFIG_SMALL("Renderware TeXture Dictionary"),
.read_probe = txd_probe,
.read_header = txd_read_header,
.read_packet = txd_read_packet,
}

Definition at line 95 of file txd.c.

txd_probe
static int txd_probe(const AVProbeData *pd)
Definition: txd.c:34
txd_read_packet
static int txd_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: txd.c:56
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:116
txd_read_header
static int txd_read_header(AVFormatContext *s)
Definition: txd.c:41