libextractor  1.11
About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.
  Fossies Dox: libextractor-1.11.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

sid_extractor.c File Reference

plugin to support Scream Tracker (S3M) files More...

#include "platform.h"
#include "extractor.h"
Include dependency graph for sid_extractor.c:

Go to the source code of this file.

Data Structures

struct  header
 

Macros

#define MUSPLAYER_FLAG   0x01
 
#define PLAYSID_FLAG   0x02
 
#define PAL_FLAG   0x04
 
#define NTSC_FLAG   0x08
 
#define MOS6581_FLAG   0x10
 
#define MOS8580_FLAG   0x20
 
#define ADD(s, t)
 

Typedefs

typedef char sidwrd[2]
 
typedef char sidlongwrd[4]
 

Functions

static int sidword (const sidwrd data)
 
void EXTRACTOR_sid_extract_method (struct EXTRACTOR_ExtractContext *ec)
 

Detailed Description

plugin to support Scream Tracker (S3M) files

Author
Toni Ruottu
Christian Grothoff

Definition in file sid_extractor.c.

Macro Definition Documentation

◆ ADD

#define ADD (   s,
 
)
Value:
do { if (0 != ec->proc (ec->cls, "sid", t, \
"text/plain", s, strlen (s) \
+ 1)) return; \
} while (0)
@ EXTRACTOR_METAFORMAT_UTF8
Definition: extractor.h:102

Give metadata to LE; return if 'proc' returns non-zero.

Parameters
smetadata value as UTF8
tmetadata type to use

Definition at line 157 of file sid_extractor.c.

◆ MOS6581_FLAG

#define MOS6581_FLAG   0x10

Definition at line 36 of file sid_extractor.c.

◆ MOS8580_FLAG

#define MOS8580_FLAG   0x20

Definition at line 37 of file sid_extractor.c.

◆ MUSPLAYER_FLAG

#define MUSPLAYER_FLAG   0x01

Definition at line 32 of file sid_extractor.c.

◆ NTSC_FLAG

#define NTSC_FLAG   0x08

Definition at line 35 of file sid_extractor.c.

◆ PAL_FLAG

#define PAL_FLAG   0x04

Definition at line 34 of file sid_extractor.c.

◆ PLAYSID_FLAG

#define PLAYSID_FLAG   0x02

Definition at line 33 of file sid_extractor.c.

Typedef Documentation

◆ sidlongwrd

typedef char sidlongwrd[4]

A "SID long".

Definition at line 47 of file sid_extractor.c.

◆ sidwrd

typedef char sidwrd[2]

A "SID word".

Definition at line 42 of file sid_extractor.c.

Function Documentation

◆ EXTRACTOR_sid_extract_method()

◆ sidword()

static int sidword ( const sidwrd  data)
static

Convert a 'sidword' to an integer.

Parameters
datathe sidword
Returns
corresponding integer value

Definition at line 145 of file sid_extractor.c.

Referenced by EXTRACTOR_sid_extract_method().