mpeg_parse.h File Reference

#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  mpeg_stream_info_t
struct  mpeg_shdr_t
struct  mpeg_packet_t
struct  mpeg_pack_t
struct  mpeg_demux_t

Defines

#define MPEG_PARSE_H   1
#define MPEG_DEMUX_BUFFER   4096
#define MPEG_END_CODE   0x01b9
#define MPEG_PACK_START   0x01ba
#define MPEG_SYSTEM_HEADER   0x01bb
#define MPEG_PACKET_START   0x0001

Functions

mpeg_demux_tmpegd_open_fd (mpeg_demux_t *mpeg, int fd, int close_file)
mpeg_demux_tmpegd_open (mpeg_demux_t *mpeg, const char *fname)
void mpegd_close (mpeg_demux_t *mpeg)
void mpegd_reset_stats (mpeg_demux_t *mpeg)
unsigned long mpegd_get_bits (mpeg_demux_t *mpeg, unsigned i, unsigned n)
int mpegd_skip (mpeg_demux_t *mpeg, unsigned n)
unsigned mpegd_read (mpeg_demux_t *mpeg, void *buf, unsigned n)
 Read from the mpeg stream.
int mpegd_set_offset (mpeg_demux_t *mpeg, unsigned long long ofs)
int mpegd_parse (mpeg_demux_t *mpeg)

Define Documentation

#define MPEG_DEMUX_BUFFER   4096

Definition at line 35 of file mpeg_parse.h.

#define MPEG_END_CODE   0x01b9

Definition at line 37 of file mpeg_parse.h.

#define MPEG_PACK_START   0x01ba

Definition at line 38 of file mpeg_parse.h.

#define MPEG_PACKET_START   0x0001

Definition at line 40 of file mpeg_parse.h.

#define MPEG_PARSE_H   1

Definition at line 30 of file mpeg_parse.h.

#define MPEG_SYSTEM_HEADER   0x01bb

Definition at line 39 of file mpeg_parse.h.


Function Documentation

void mpegd_close ( mpeg_demux_t mpeg  ) 
unsigned long mpegd_get_bits ( mpeg_demux_t mpeg,
unsigned  i,
unsigned  n 
)
mpeg_demux_t* mpegd_open ( mpeg_demux_t mpeg,
const char *  fname 
)
mpeg_demux_t* mpegd_open_fd ( mpeg_demux_t mpeg,
int  fd,
int  close_file 
)
int mpegd_parse ( mpeg_demux_t mpeg  ) 
unsigned mpegd_read ( mpeg_demux_t mpeg,
void *  buf,
unsigned  n 
)

Read from the mpeg stream.

***************************************************************************

Returns:
The number of bytes read
void mpegd_reset_stats ( mpeg_demux_t mpeg  ) 
int mpegd_set_offset ( mpeg_demux_t mpeg,
unsigned long long  ofs 
)
int mpegd_skip ( mpeg_demux_t mpeg,
unsigned  n 
)

Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1