Logo Search packages:      
Sourcecode: blender version File versions

psxstr.c File Reference

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.

#include "avformat.h"

Go to the source code of this file.


struct  StrChannel
struct  StrDemuxContext


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


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


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

Generated by  Doxygen 1.6.0   Back to index