hvirtual/mplexlo/mplex.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "libmpeg3.h"
#include "mpeg3protos.h"

Include dependency graph for mplex.c:

Go to the source code of this file.

Data Structures

struct  multiplexer_t
struct  track_t

Defines

#define PACKET_SIZE   2048

Functions

int write_pack_header (unsigned char *ptr, multiplexer_t *mplex, float seconds, int stream_id, int ac3)
int write_packet (track_t *track, float start_time, float end_time, multiplexer_t *mplex, int stream_id, int ac3)
void skip_frame (mpeg3_demuxer_t *demuxer)
int main (int argc, char *argv[])


Define Documentation

#define PACKET_SIZE   2048

Definition at line 8 of file mplex.c.

Referenced by write_pack_header(), and write_packet().


Function Documentation

int main ( int  argc,
char *  argv[] 
)

void skip_frame ( mpeg3_demuxer_t demuxer  ) 

int write_pack_header ( unsigned char *  ptr,
multiplexer_t mplex,
float  seconds,
int  stream_id,
int  ac3 
)

Definition at line 28 of file mplex.c.

References multiplexer_t::derivative, multiplexer_t::packet_buffer, PACKET_SIZE, and timestamp.

Referenced by write_packet().

int write_packet ( track_t track,
float  start_time,
float  end_time,
multiplexer_t mplex,
int  stream_id,
int  ac3 
)

Definition at line 89 of file mplex.c.

References track_t::bytes_decoded, fread(), ftell(), fwrite(), multiplexer_t::out_file, multiplexer_t::packet_buffer, PACKET_SIZE, track_t::raw_file, and write_pack_header().

Referenced by main().

Here is the call graph for this function:


Generated on Mon Apr 28 14:00:29 2008 for Cinelerra by  doxygen 1.5.5