vdr  2.0.6
Classes | Macros | Functions | Variables
vdr-genindex.c File Reference
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for vdr-genindex.c:

Go to the source code of this file.

Classes

struct  tIndex
 

Macros

#define BUFFER_SIZE   4096*128
 
#define SC_PICTURE   0x00
 
#define NO_PICTURE   0
 
#define I_FRAME   1
 
#define P_FRAME   2
 
#define B_FRAME   3
 
#define PROG_STREAM_MAP   0xBC
 
#define PRIVATE_STREAM1   0xBD
 
#define PADDING_STREAM   0xBE
 
#define PRIVATE_STREAM2   0xBF
 
#define AUDIO_STREAM_S   0xC0
 
#define AUDIO_STREAM_E   0xDF
 
#define VIDEO_STREAM_S   0xE0
 
#define VIDEO_STREAM_E   0xEF
 
#define ECM_STREAM   0xF0
 
#define EMM_STREAM   0xF1
 
#define DSM_CC_STREAM   0xF2
 
#define ISO13522_STREAM   0xF3
 
#define PROG_STREAM_DIR   0xFF
 

Functions

static unsigned char buf (long p)
 
static int readfile (const unsigned char number)
 
int main ()
 

Variables

static FILE * fp
 
static FILE * idx
 
static long Foffset
 
static char fname [20]
 
static unsigned char fbuffer [BUFFER_SIZE]
 

Macro Definition Documentation

#define AUDIO_STREAM_E   0xDF

Definition at line 45 of file vdr-genindex.c.

Referenced by readfile().

#define AUDIO_STREAM_S   0xC0

Definition at line 44 of file vdr-genindex.c.

Referenced by readfile().

#define B_FRAME   3

Definition at line 34 of file vdr-genindex.c.

Referenced by readfile().

#define BUFFER_SIZE   4096*128

Definition at line 27 of file vdr-genindex.c.

Referenced by buf().

#define DSM_CC_STREAM   0xF2

Definition at line 50 of file vdr-genindex.c.

Referenced by readfile().

#define ECM_STREAM   0xF0

Definition at line 48 of file vdr-genindex.c.

Referenced by readfile().

#define EMM_STREAM   0xF1

Definition at line 49 of file vdr-genindex.c.

Referenced by readfile().

#define I_FRAME   1

Definition at line 32 of file vdr-genindex.c.

Referenced by readfile().

#define ISO13522_STREAM   0xF3

Definition at line 51 of file vdr-genindex.c.

Referenced by readfile().

#define NO_PICTURE   0

Definition at line 31 of file vdr-genindex.c.

#define P_FRAME   2

Definition at line 33 of file vdr-genindex.c.

Referenced by readfile().

#define PADDING_STREAM   0xBE

Definition at line 40 of file vdr-genindex.c.

Referenced by readfile().

#define PRIVATE_STREAM1   0xBD

Definition at line 38 of file vdr-genindex.c.

Referenced by readfile().

#define PRIVATE_STREAM2   0xBF

Definition at line 42 of file vdr-genindex.c.

Referenced by readfile().

#define PROG_STREAM_DIR   0xFF

Definition at line 52 of file vdr-genindex.c.

Referenced by readfile().

#define PROG_STREAM_MAP   0xBC

Definition at line 36 of file vdr-genindex.c.

Referenced by readfile().

#define SC_PICTURE   0x00

Definition at line 29 of file vdr-genindex.c.

Referenced by readfile().

#define VIDEO_STREAM_E   0xEF

Definition at line 47 of file vdr-genindex.c.

Referenced by readfile().

#define VIDEO_STREAM_S   0xE0

Definition at line 46 of file vdr-genindex.c.

Referenced by readfile().

Function Documentation

static unsigned char buf ( long  p)
static
int main ( )

Definition at line 191 of file vdr-genindex.c.

References idx, and readfile().

static int readfile ( const unsigned char  number)
static

Variable Documentation

unsigned char fbuffer[BUFFER_SIZE]
static

Definition at line 61 of file vdr-genindex.c.

Referenced by readfile().

char fname[20]
static

Definition at line 60 of file vdr-genindex.c.

Referenced by buf(), and readfile().

long Foffset
static

Definition at line 59 of file vdr-genindex.c.

Referenced by buf(), and readfile().

FILE* fp
static

Definition at line 57 of file vdr-genindex.c.

Referenced by buf(), cHdffOsd::DrawText(), and readfile().

FILE* idx
static

Definition at line 58 of file vdr-genindex.c.

Referenced by cDvbSpuBitmap::getBitmap(), cDvbSpuPalette::getColor(), main(), and readfile().