electronicarts.c File Reference

Electronic Arts Multimedia file demuxer (WVE/UV2/etc.) by Robin Kay (komadori at gekkou.co.uk) More...

#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
Include dependency graph for electronicarts.c:

Go to the source code of this file.

Data Structures

struct  EaDemuxContext
 

Macros

#define SCHl_TAG   MKTAG('S', 'C', 'H', 'l')
 
#define SEAD_TAG   MKTAG('S', 'E', 'A', 'D') /* Sxxx header */
 
#define SNDC_TAG   MKTAG('S', 'N', 'D', 'C') /* Sxxx data */
 
#define SEND_TAG   MKTAG('S', 'E', 'N', 'D') /* Sxxx end */
 
#define SHEN_TAG   MKTAG('S', 'H', 'E', 'N') /* SxEN header */
 
#define SDEN_TAG   MKTAG('S', 'D', 'E', 'N') /* SxEN data */
 
#define SEEN_TAG   MKTAG('S', 'E', 'E', 'N') /* SxEN end */
 
#define ISNh_TAG   MKTAG('1', 'S', 'N', 'h') /* 1SNx header */
 
#define EACS_TAG   MKTAG('E', 'A', 'C', 'S')
 
#define ISNd_TAG   MKTAG('1', 'S', 'N', 'd') /* 1SNx data */
 
#define ISNe_TAG   MKTAG('1', 'S', 'N', 'e') /* 1SNx end */
 
#define PT00_TAG   MKTAG('P', 'T', 0x0, 0x0)
 
#define GSTR_TAG   MKTAG('G', 'S', 'T', 'R')
 
#define SCDl_TAG   MKTAG('S', 'C', 'D', 'l')
 
#define SCEl_TAG   MKTAG('S', 'C', 'E', 'l')
 
#define kVGT_TAG   MKTAG('k', 'V', 'G', 'T') /* TGV i-frame */
 
#define fVGT_TAG   MKTAG('f', 'V', 'G', 'T') /* TGV p-frame */
 
#define mTCD_TAG   MKTAG('m', 'T', 'C', 'D') /* MDEC */
 
#define MADk_TAG   MKTAG('M', 'A', 'D', 'k') /* MAD i-frame */
 
#define MADm_TAG   MKTAG('M', 'A', 'D', 'm') /* MAD p-frame */
 
#define MADe_TAG   MKTAG('M', 'A', 'D', 'e') /* MAD lqp-frame */
 
#define MPCh_TAG   MKTAG('M', 'P', 'C', 'h') /* MPEG2 */
 
#define TGQs_TAG   MKTAG('T', 'G', 'Q', 's') /* TGQ i-frame (appears in .TGQ files) */
 
#define pQGT_TAG   MKTAG('p', 'Q', 'G', 'T') /* TGQ i-frame (appears in .UV files) */
 
#define pIQT_TAG   MKTAG('p', 'I', 'Q', 'T') /* TQI/UV2 i-frame (.UV2/.WVE) */
 
#define MVhd_TAG   MKTAG('M', 'V', 'h', 'd')
 
#define MV0K_TAG   MKTAG('M', 'V', '0', 'K')
 
#define MV0F_TAG   MKTAG('M', 'V', '0', 'F')
 
#define MVIh_TAG   MKTAG('M', 'V', 'I', 'h') /* CMV header */
 
#define MVIf_TAG   MKTAG('M', 'V', 'I', 'f') /* CMV i-frame */
 

Typedefs

typedef struct EaDemuxContext EaDemuxContext
 

Functions

static uint32_t read_arbitary (AVIOContext *pb)
 
static int process_audio_header_elements (AVFormatContext *s)
 
static int process_audio_header_eacs (AVFormatContext *s)
 
static int process_audio_header_sead (AVFormatContext *s)
 
static int process_video_header_mdec (AVFormatContext *s)
 
static int process_video_header_vp6 (AVFormatContext *s)
 
static int process_video_header_cmv (AVFormatContext *s)
 
static int process_ea_header (AVFormatContext *s)
 
static int ea_probe (AVProbeData *p)
 
static int ea_read_header (AVFormatContext *s)
 
static int ea_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_ea_demuxer
 

Detailed Description

Electronic Arts Multimedia file demuxer (WVE/UV2/etc.) by Robin Kay (komadori at gekkou.co.uk)

Definition in file electronicarts.c.

Macro Definition Documentation

#define EACS_TAG   MKTAG('E', 'A', 'C', 'S')

Definition at line 40 of file electronicarts.c.

Referenced by process_ea_header().

#define fVGT_TAG   MKTAG('f', 'V', 'G', 'T') /* TGV p-frame */

Definition at line 48 of file electronicarts.c.

Referenced by ea_read_packet().

#define GSTR_TAG   MKTAG('G', 'S', 'T', 'R')

Definition at line 44 of file electronicarts.c.

Referenced by process_ea_header().

#define ISNd_TAG   MKTAG('1', 'S', 'N', 'd') /* 1SNx data */

Definition at line 41 of file electronicarts.c.

Referenced by ea_read_packet().

#define ISNe_TAG   MKTAG('1', 'S', 'N', 'e') /* 1SNx end */

Definition at line 42 of file electronicarts.c.

Referenced by ea_read_packet().

#define ISNh_TAG   MKTAG('1', 'S', 'N', 'h') /* 1SNx header */

Definition at line 39 of file electronicarts.c.

Referenced by ea_probe(), ea_read_packet(), and process_ea_header().

#define kVGT_TAG   MKTAG('k', 'V', 'G', 'T') /* TGV i-frame */

Definition at line 47 of file electronicarts.c.

Referenced by ea_probe(), ea_read_packet(), and process_ea_header().

#define MADe_TAG   MKTAG('M', 'A', 'D', 'e') /* MAD lqp-frame */

Definition at line 52 of file electronicarts.c.

Referenced by ea_read_packet().

#define MADk_TAG   MKTAG('M', 'A', 'D', 'k') /* MAD i-frame */

Definition at line 50 of file electronicarts.c.

Referenced by ea_probe(), ea_read_packet(), and process_ea_header().

#define MADm_TAG   MKTAG('M', 'A', 'D', 'm') /* MAD p-frame */

Definition at line 51 of file electronicarts.c.

Referenced by ea_read_packet().

#define MPCh_TAG   MKTAG('M', 'P', 'C', 'h') /* MPEG2 */

Definition at line 53 of file electronicarts.c.

Referenced by ea_probe(), ea_read_packet(), and process_ea_header().

#define mTCD_TAG   MKTAG('m', 'T', 'C', 'D') /* MDEC */

Definition at line 49 of file electronicarts.c.

Referenced by ea_read_packet(), and process_ea_header().

#define MV0F_TAG   MKTAG('M', 'V', '0', 'F')

Definition at line 59 of file electronicarts.c.

Referenced by ea_read_packet().

#define MV0K_TAG   MKTAG('M', 'V', '0', 'K')

Definition at line 58 of file electronicarts.c.

Referenced by ea_read_packet().

#define MVhd_TAG   MKTAG('M', 'V', 'h', 'd')

Definition at line 57 of file electronicarts.c.

Referenced by ea_probe(), and process_ea_header().

#define MVIf_TAG   MKTAG('M', 'V', 'I', 'f') /* CMV i-frame */

Definition at line 61 of file electronicarts.c.

Referenced by ea_read_packet().

#define MVIh_TAG   MKTAG('M', 'V', 'I', 'h') /* CMV header */

Definition at line 60 of file electronicarts.c.

Referenced by ea_probe(), ea_read_packet(), and process_ea_header().

#define pIQT_TAG   MKTAG('p', 'I', 'Q', 'T') /* TQI/UV2 i-frame (.UV2/.WVE) */

Definition at line 56 of file electronicarts.c.

Referenced by ea_read_packet(), and process_ea_header().

#define pQGT_TAG   MKTAG('p', 'Q', 'G', 'T') /* TGQ i-frame (appears in .UV files) */

Definition at line 55 of file electronicarts.c.

Referenced by ea_read_packet(), and process_ea_header().

#define PT00_TAG   MKTAG('P', 'T', 0x0, 0x0)

Definition at line 43 of file electronicarts.c.

Referenced by process_ea_header().

#define SCDl_TAG   MKTAG('S', 'C', 'D', 'l')

Definition at line 45 of file electronicarts.c.

Referenced by ea_read_packet().

#define SCEl_TAG   MKTAG('S', 'C', 'E', 'l')

Definition at line 46 of file electronicarts.c.

Referenced by ea_read_packet().

#define SCHl_TAG   MKTAG('S', 'C', 'H', 'l')

Definition at line 32 of file electronicarts.c.

Referenced by ea_probe(), and process_ea_header().

#define SDEN_TAG   MKTAG('S', 'D', 'E', 'N') /* SxEN data */

Definition at line 37 of file electronicarts.c.

Referenced by ea_read_packet().

#define SEAD_TAG   MKTAG('S', 'E', 'A', 'D') /* Sxxx header */

Definition at line 33 of file electronicarts.c.

Referenced by ea_probe(), and process_ea_header().

#define SEEN_TAG   MKTAG('S', 'E', 'E', 'N') /* SxEN end */

Definition at line 38 of file electronicarts.c.

Referenced by ea_read_packet().

#define SEND_TAG   MKTAG('S', 'E', 'N', 'D') /* Sxxx end */

Definition at line 35 of file electronicarts.c.

Referenced by ea_read_packet().

#define SHEN_TAG   MKTAG('S', 'H', 'E', 'N') /* SxEN header */

Definition at line 36 of file electronicarts.c.

Referenced by ea_probe(), and process_ea_header().

#define SNDC_TAG   MKTAG('S', 'N', 'D', 'C') /* Sxxx data */

Definition at line 34 of file electronicarts.c.

Referenced by ea_read_packet().

#define TGQs_TAG   MKTAG('T', 'G', 'Q', 's') /* TGQ i-frame (appears in .TGQ files) */

Definition at line 54 of file electronicarts.c.

Referenced by ea_read_packet(), and process_ea_header().

Typedef Documentation

Function Documentation

static int ea_probe ( AVProbeData p)
static

Definition at line 409 of file electronicarts.c.

static int ea_read_header ( AVFormatContext s)
static

Definition at line 430 of file electronicarts.c.

static int ea_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 497 of file electronicarts.c.

static int process_audio_header_eacs ( AVFormatContext s)
static

Definition at line 225 of file electronicarts.c.

Referenced by process_ea_header().

static int process_audio_header_elements ( AVFormatContext s)
static

Definition at line 102 of file electronicarts.c.

Referenced by process_ea_header().

static int process_audio_header_sead ( AVFormatContext s)
static

Definition at line 257 of file electronicarts.c.

Referenced by process_ea_header().

static int process_ea_header ( AVFormatContext s)
static

Definition at line 319 of file electronicarts.c.

Referenced by ea_read_header().

static int process_video_header_cmv ( AVFormatContext s)
static

Definition at line 301 of file electronicarts.c.

Referenced by process_ea_header().

static int process_video_header_mdec ( AVFormatContext s)
static

Definition at line 270 of file electronicarts.c.

Referenced by process_ea_header().

static int process_video_header_vp6 ( AVFormatContext s)
static

Definition at line 282 of file electronicarts.c.

Referenced by process_ea_header().

static uint32_t read_arbitary ( AVIOContext pb)
static

Definition at line 81 of file electronicarts.c.

Referenced by process_audio_header_elements().

Variable Documentation

AVInputFormat ff_ea_demuxer
Initial value:
= {
.name = "ea",
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts Multimedia"),
.priv_data_size = sizeof(EaDemuxContext),
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct EaDemuxContext EaDemuxContext
static int read_probe(AVProbeData *pd)
static int ea_read_header(AVFormatContext *s)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
static int ea_probe(AVProbeData *p)
static int ea_read_packet(AVFormatContext *s, AVPacket *pkt)

Definition at line 633 of file electronicarts.c.