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

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 PACKET_SIZE 2048 |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 137 of file mplex.c.
References mpeg3_t::atrack, track_t::bytes_decoded, mpeg3_atrack_t::demuxer, mpeg3_vtrack_t::demuxer, multiplexer_t::derivative, track_t::end_of_data, fclose(), track_t::file, fopen(), frame_rate, track_t::frames_decoded, mpeg3_close(), mpeg3_end_of_audio(), mpeg3_end_of_video(), mpeg3_frame_rate(), mpeg3_has_audio(), mpeg3_has_video(), mpeg3_open(), mpeg3_read_audio(), mpeg3_sample_rate(), mpeg3_set_cpus(), mpeg3demux_movie_size(), mpeg3demux_tell_byte(), multiplexer_t::out_file, track_t::raw_file, track_t::samples_decoded, skip_frame, track_t::stream_number, mpeg3_t::vtrack, and write_packet().

| void skip_frame | ( | mpeg3_demuxer_t * | demuxer | ) |
Definition at line 119 of file mplex.c.
References mpeg3_demuxer_t::current_title, mpeg3_demuxer_t::file, mpeg3_title_t::fs, header, MPEG3_PICTURE_START_CODE, mpeg3io_eof, mpeg3io_read_char(), and mpeg3_demuxer_t::titles.

| 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().

1.5.5