libavformat/psxstr.c File Reference

PSX STR file demuxer by Mike Melanson (melanson@pcisys.net) This module handles streams that have been ripped from Sony Playstation CD games. More...

#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  StrChannel
struct  StrDemuxContext

Defines

#define RIFF_TAG   MKTAG('R', 'I', 'F', 'F')
#define CDXA_TAG   MKTAG('C', 'D', 'X', 'A')
#define RAW_CD_SECTOR_SIZE   2352
#define RAW_CD_SECTOR_DATA_SIZE   2304
#define VIDEO_DATA_CHUNK_SIZE   0x7E0
#define VIDEO_DATA_HEADER_SIZE   0x38
#define RIFF_HEADER_SIZE   0x2C
#define CDXA_TYPE_MASK   0x0E
#define CDXA_TYPE_DATA   0x08
#define CDXA_TYPE_AUDIO   0x04
#define CDXA_TYPE_VIDEO   0x02
#define STR_MAGIC   (0x80010160)
#define STR_AUDIO   0
#define STR_VIDEO   1

Functions

static int str_probe (AVProbeData *p)
static int str_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int str_read_packet (AVFormatContext *s, AVPacket *ret_pkt)
static int str_read_close (AVFormatContext *s)

Variables

static const char sync_header [12] = {0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00}
AVInputFormat str_demuxer


Detailed Description

PSX STR file demuxer by Mike Melanson (melanson@pcisys.net) This module handles streams that have been ripped from Sony Playstation CD games.

This demuxer can handle either raw STR files (which are just concatenations of raw compact disc sectors) or STR files with 0x2C-byte RIFF headers, followed by CD sectors.

Definition in file psxstr.c.


Define Documentation

#define CDXA_TAG   MKTAG('C', 'D', 'X', 'A')

Definition at line 37 of file psxstr.c.

Referenced by str_probe().

#define CDXA_TYPE_AUDIO   0x04

Definition at line 47 of file psxstr.c.

Referenced by str_read_header(), and str_read_packet().

#define CDXA_TYPE_DATA   0x08

Definition at line 46 of file psxstr.c.

Referenced by str_read_header(), and str_read_packet().

#define CDXA_TYPE_MASK   0x0E

Definition at line 45 of file psxstr.c.

Referenced by str_read_header(), and str_read_packet().

#define CDXA_TYPE_VIDEO   0x02

Definition at line 48 of file psxstr.c.

Referenced by str_read_header(), and str_read_packet().

#define RAW_CD_SECTOR_DATA_SIZE   2304

Definition at line 40 of file psxstr.c.

#define RAW_CD_SECTOR_SIZE   2352

Definition at line 39 of file psxstr.c.

Referenced by str_read_header(), and str_read_packet().

#define RIFF_HEADER_SIZE   0x2C

Definition at line 43 of file psxstr.c.

Referenced by str_probe(), and str_read_header().

#define RIFF_TAG   MKTAG('R', 'I', 'F', 'F')

Definition at line 36 of file psxstr.c.

#define STR_AUDIO   0

Definition at line 55 of file psxstr.c.

Referenced by str_read_header().

#define STR_MAGIC   (0x80010160)

Definition at line 50 of file psxstr.c.

Referenced by str_read_header().

#define STR_VIDEO   1

Definition at line 56 of file psxstr.c.

Referenced by str_read_header().

#define VIDEO_DATA_CHUNK_SIZE   0x7E0

Definition at line 41 of file psxstr.c.

Referenced by str_read_packet().

#define VIDEO_DATA_HEADER_SIZE   0x38

Definition at line 42 of file psxstr.c.

Referenced by str_read_packet().


Function Documentation

static int str_probe ( AVProbeData p  )  [static]

Definition at line 87 of file psxstr.c.

static int str_read_close ( AVFormatContext s  )  [static]

Definition at line 358 of file psxstr.c.

static int str_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 125 of file psxstr.c.

static int str_read_packet ( AVFormatContext s,
AVPacket ret_pkt 
) [static]

Definition at line 249 of file psxstr.c.


Variable Documentation

Initial value:

 {
    "psxstr",
    "Sony Playstation STR format",
    sizeof(StrDemuxContext),
    str_probe,
    str_read_header,
    str_read_packet,
    str_read_close,
}

Definition at line 367 of file psxstr.c.

const char sync_header[12] = {0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00} [static]

Definition at line 85 of file psxstr.c.

Referenced by str_probe().


Generated on Wed Feb 9 19:10:13 2011 for ffmpeg by  doxygen 1.5.6